diff options
author | AlexSm <alex@ydb.tech> | 2025-02-27 19:45:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-27 18:45:39 +0000 |
commit | 9ac8b042c59b36d9aca6c78113bf1e5e6ac04157 (patch) | |
tree | 4e64c293cb69dec9c90a7c2801a15f3b0ca2313f | |
parent | f43e9dddc0145e2e003e6ee32eaf0cfc543d258d (diff) | |
download | ydb-9ac8b042c59b36d9aca6c78113bf1e5e6ac04157.tar.gz |
build: refresh Embedded UI (v8.12.0) (#15103)
Co-authored-by: Raubzeug <Raubzeug@users.noreply.github.com>
44 files changed, 84 insertions, 84 deletions
diff --git a/ydb/core/viewer/monitoring/asset-manifest.json b/ydb/core/viewer/monitoring/asset-manifest.json index 272a1ef0f9..0e07c0cc3b 100644 --- a/ydb/core/viewer/monitoring/asset-manifest.json +++ b/ydb/core/viewer/monitoring/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { - "main.css": "./static/css/main.c06e6faa.css", - "main.js": "./static/js/main.390bccbb.js", + "main.css": "./static/css/main.bc1b7571.css", + "main.js": "./static/js/main.9d6586d0.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/3872.a25d87b5.chunk.js": "./static/js/3872.a25d87b5.chunk.js", @@ -151,28 +151,28 @@ "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/2512.19e3e12f.chunk.css": "./static/css/2512.19e3e12f.chunk.css", - "static/js/2512.732a0e0c.chunk.js": "./static/js/2512.732a0e0c.chunk.js", - "static/css/4187.cac9847e.chunk.css": "./static/css/4187.cac9847e.chunk.css", - "static/js/4187.ab11fc96.chunk.js": "./static/js/4187.ab11fc96.chunk.js", - "static/css/371.01f04f12.chunk.css": "./static/css/371.01f04f12.chunk.css", - "static/js/371.adb771f2.chunk.js": "./static/js/371.adb771f2.chunk.js", - "static/css/684.90fbb646.chunk.css": "./static/css/684.90fbb646.chunk.css", - "static/js/684.7c31509b.chunk.js": "./static/js/684.7c31509b.chunk.js", - "static/css/6030.fd13e90a.chunk.css": "./static/css/6030.fd13e90a.chunk.css", - "static/js/6030.95d317e6.chunk.js": "./static/js/6030.95d317e6.chunk.js", + "static/css/5652.261c3a7a.chunk.css": "./static/css/5652.261c3a7a.chunk.css", + "static/js/5652.6c4f054d.chunk.js": "./static/js/5652.6c4f054d.chunk.js", + "static/css/3456.a5760e03.chunk.css": "./static/css/3456.a5760e03.chunk.css", + "static/js/3456.72251ae0.chunk.js": "./static/js/3456.72251ae0.chunk.js", + "static/css/4905.028ad14b.chunk.css": "./static/css/4905.028ad14b.chunk.css", + "static/js/4905.8121426d.chunk.js": "./static/js/4905.8121426d.chunk.js", + "static/css/7145.90fbb646.chunk.css": "./static/css/7145.90fbb646.chunk.css", + "static/js/7145.7676c06d.chunk.js": "./static/js/7145.7676c06d.chunk.js", + "static/css/8155.fd13e90a.chunk.css": "./static/css/8155.fd13e90a.chunk.css", + "static/js/8155.654c40b5.chunk.js": "./static/js/8155.654c40b5.chunk.js", "static/css/3812.440ff245.chunk.css": "./static/css/3812.440ff245.chunk.css", - "static/js/3812.325f3251.chunk.js": "./static/js/3812.325f3251.chunk.js", + "static/js/3812.368eb751.chunk.js": "./static/js/3812.368eb751.chunk.js", "static/css/535.c6fb8cd9.chunk.css": "./static/css/535.c6fb8cd9.chunk.css", - "static/js/535.ee345954.chunk.js": "./static/js/535.ee345954.chunk.js", + "static/js/535.688ceefb.chunk.js": "./static/js/535.688ceefb.chunk.js", "static/css/3779.66c0ef83.chunk.css": "./static/css/3779.66c0ef83.chunk.css", - "static/js/3779.9f31a4d0.chunk.js": "./static/js/3779.9f31a4d0.chunk.js", + "static/js/3779.31972bdb.chunk.js": "./static/js/3779.31972bdb.chunk.js", "static/css/5438.615bd68a.chunk.css": "./static/css/5438.615bd68a.chunk.css", "static/js/5438.179dc201.chunk.js": "./static/js/5438.179dc201.chunk.js", "static/css/99.7cffb936.chunk.css": "./static/css/99.7cffb936.chunk.css", "static/js/99.dd803d0d.chunk.js": "./static/js/99.dd803d0d.chunk.js", "static/js/2308.9e3a980c.chunk.js": "./static/js/2308.9e3a980c.chunk.js", - "static/js/4024.021c61dd.chunk.js": "./static/js/4024.021c61dd.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", @@ -270,15 +270,15 @@ "static/js/4872.2eea7e0a.chunk.js": "./static/js/4872.2eea7e0a.chunk.js", "static/js/7341.6e678529.chunk.js": "./static/js/7341.6e678529.chunk.js", "static/js/6820.73ff230e.chunk.js": "./static/js/6820.73ff230e.chunk.js", - "static/css/985.8e5e0423.chunk.css": "./static/css/985.8e5e0423.chunk.css", - "static/js/985.86fef64d.chunk.js": "./static/js/985.86fef64d.chunk.js", + "static/css/114.1e565ac5.chunk.css": "./static/css/114.1e565ac5.chunk.css", + "static/js/114.7d7ab57f.chunk.js": "./static/js/114.7d7ab57f.chunk.js", "static/js/1836.f49bfd4f.chunk.js": "./static/js/1836.f49bfd4f.chunk.js", "static/js/856.78147a4f.chunk.js": "./static/js/856.78147a4f.chunk.js", "static/js/8452.551c16c8.chunk.js": "./static/js/8452.551c16c8.chunk.js", "static/css/9796.828f7385.chunk.css": "./static/css/9796.828f7385.chunk.css", - "static/js/9796.7afb9492.chunk.js": "./static/js/9796.7afb9492.chunk.js", - "static/js/1329.de2ec2cf.chunk.js": "./static/js/1329.de2ec2cf.chunk.js", - "static/js/9300.277e4f3f.chunk.js": "./static/js/9300.277e4f3f.chunk.js", + "static/js/9796.47d2388f.chunk.js": "./static/js/9796.47d2388f.chunk.js", + "static/js/5168.5c3dfc04.chunk.js": "./static/js/5168.5c3dfc04.chunk.js", + "static/js/1434.b8423300.chunk.js": "./static/js/1434.b8423300.chunk.js", "ts.worker.js": "./ts.worker.js", "css.worker.js": "./css.worker.js", "html.worker.js": "./html.worker.js", @@ -291,7 +291,7 @@ "index.html": "./index.html" }, "entrypoints": [ - "static/css/main.c06e6faa.css", - "static/js/main.390bccbb.js" + "static/css/main.bc1b7571.css", + "static/js/main.9d6586d0.js" ] }
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/index.html b/ydb/core/viewer/monitoring/index.html index 4a9033f340..d2f047a5c4 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.userSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined"</script><script defer="defer" src="./static/js/main.390bccbb.js"></script><link href="./static/css/main.c06e6faa.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.userSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined"</script><script defer="defer" src="./static/js/main.9d6586d0.js"></script><link href="./static/css/main.bc1b7571.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/114.1e565ac5.chunk.css b/ydb/core/viewer/monitoring/static/css/114.1e565ac5.chunk.css new file mode 100644 index 0000000000..fc2cf1d3d8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/114.1e565ac5.chunk.css @@ -0,0 +1,9 @@ +@charset "UTF-8";.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}.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}.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)}.chartkit-loader{align-items:center;display:flex;justify-content:center}.chartkit,.chartkit-loader{height:100%;width:100%}.chartkit_mobile .chartkit-scrollable-node{max-height:3000px}.chartkit-theme_common{--highcarts-navigator-border:var(--g-color-line-generic);--highcarts-navigator-track:var(--g-color-base-generic);--highcarts-navigator-body:var(--g-color-scroll-handle);--highcharts-series-border:var(--g-color-base-background);--highcharts-grid-line:var(--g-color-line-generic);--highcharts-axis-line:var(--g-color-line-generic);--highcharts-tick:var(--g-color-line-generic);--highcharts-title:var(--g-color-text-primary);--highcharts-axis-labels:var(--g-color-text-secondary);--highcharts-data-labels:var(--g-color-text-secondary);--highcharts-plot-line-label:var(--g-color-text-secondary);--highcharts-legend-item:var(--g-color-text-secondary);--highcharts-legend-item-hover:var(--g-color-text-primary);--highcharts-legend-item-hidden:var(--g-color-text-hint);--highcharts-floating-bg:var(--g-color-infographics-tooltip-bg);--highcharts-tooltip-text:var(--g-color-text-primary);--highcharts-tooltip-bg:var(--highcharts-floating-bg);--highcharts-tooltip-alternate-bg:var(--g-color-base-generic);--highcharts-tooltip-text-complementary:var(--g-color-text-secondary);--highcharts-holiday-band:var(--g-color-base-generic)}.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}.g-card{--_--background-color:#0000;--_--border-color:#0000;--_--border-width:0;--_--box-shadow:none;background-color:var(--g-card-background-color,var(--_--background-color));border:var(--g-card-border-width,var(--_--border-width)) solid var(--g-card-border-color,var(--_--border-color));border-radius:var(--g-card-border-radius,var(--_--border-radius));box-shadow:var(--g-card-box-shadow,var(--_--box-shadow));box-sizing:border-box;outline:none}.g-card_theme_normal{--_--border-color:var(--g-color-line-generic);--_--background-color:var(--g-color-base-generic)}.g-card_theme_info{--_--border-color:var(--g-color-line-info);--_--background-color:var(--g-color-base-info-light)}.g-card_theme_success{--_--border-color:var(--g-color-line-positive);--_--background-color:var(--g-color-base-positive-light)}.g-card_theme_warning{--_--border-color:var(--g-color-line-warning);--_--background-color:var(--g-color-base-warning-light)}.g-card_theme_danger{--_--border-color:var(--g-color-line-danger);--_--background-color:var(--g-color-base-danger-light)}.g-card_theme_utility{--_--border-color:var(--g-color-line-utility);--_--background-color:var(--g-color-base-utility-light)}.g-card_view_clear,.g-card_view_outlined{--_--background-color:#0000}.g-card_view_outlined{--_--border-width:1px}.g-card_type_action{--_--background-color:var(--g-color-base-float);--_--box-shadow:0px 1px 5px var(--g-color-sfx-shadow)}.g-card_type_action:after{border-radius:var(--g-card-border-radius,var(--_--border-radius));inset:0;pointer-events:none;position:absolute}.g-card_type_action.g-card_clickable{cursor:pointer;position:relative}.g-card_type_action.g-card_clickable:hover{--_--box-shadow:0px 3px 10px var(--g-color-sfx-shadow)}.g-card_type_action.g-card_clickable:focus-visible:after{content:"";outline:2px solid var(--g-color-line-focus)}.g-card_type_selection{--_--border-width:1px;--_--border-color:var(--g-color-line-generic);position:relative}.g-card_type_selection:before{inset:-1px}.g-card_type_selection:after,.g-card_type_selection:before{border-radius:var(--g-card-border-radius,var(--_--border-radius));pointer-events:none;position:absolute}.g-card_type_selection:after{inset:0}.g-card_type_selection.g-card_clickable{cursor:pointer}.g-card_type_selection.g-card_clickable:hover{--_--border-color:#0000}.g-card_type_selection.g-card_clickable:hover:not(.g-card_selected):before{border:2px solid var(--g-color-line-brand);content:"";opacity:.5}.g-card_type_selection.g-card_clickable:hover:focus-visible:before{border-color:#0000}.g-card_type_selection.g-card_clickable:focus-visible:after{content:"";outline:2px solid var(--g-color-line-focus)}.g-card_type_selection.g-card_selected:not(.g-card_disabled){--_--border-color:#0000}.g-card_type_selection.g-card_selected:not(.g-card_disabled):before{border:2px solid var(--g-color-line-brand);content:""}.g-card_type_selection.g-card_view_clear{--_--border-color:#0000}.g-card_type_container.g-card_view_raised{--_--background-color:var(--g-color-base-float)}.g-card_type_container.g-card_view_raised.g-card_size_m{--_--box-shadow:0px 1px 5px var(--g-color-sfx-shadow)}.g-card_type_container.g-card_view_raised.g-card_size_l{--_--box-shadow:0px 1px 6px var(--g-color-sfx-shadow-light),1px 3px 13px var(--g-color-sfx-shadow-light)}.g-card_size_m{--_--border-radius:8px}.g-card_size_l{--_--border-radius:16px}.g-date-relative-range-date-picker-control__input{caret-color:#0000}.g-date-relative-range-date-picker-control__input_mobile{pointer-events:none}.g-date-relative-range-date-picker-control__mobile-trigger{--_--g-date-mobile-trigger-clear-width:0px;--_--g-date-mobile-trigger-errors-width:0px;--_--g-date-mobile-trigger-button-width:24px;inset:0;inset-inline-end:calc(var(--g-spacing-2) + var(--_--g-date-mobile-trigger-button-width) + var(--_--g-date-mobile-trigger-clear-width) + var(--_--g-date-mobile-trigger-errors-width));opacity:0;position:absolute}.g-date-relative-range-date-picker-control__mobile-trigger_size_s{--_--g-date-mobile-trigger-button-width:20px}.g-date-relative-range-date-picker-control__mobile-trigger_size_l{--_--g-date-mobile-trigger-button-width:28px}.g-date-relative-range-date-picker-control__mobile-trigger_size_xl{--_--g-date-mobile-trigger-button-width:36px}.g-date-relative-range-date-picker-control__mobile-trigger_has-clear{--_--g-date-mobile-trigger-clear-width:calc(var(--_--g-date-mobile-trigger-button-width) + 2px)}.g-date-relative-range-date-picker-control__mobile-trigger_has-errors{--_--g-date-mobile-trigger-errors-width:calc(var(--_--g-date-mobile-trigger-button-width) + 2px)}.g-date-relative-range-date-picker-presets-doc__button{--g-button-background-color-hover:#0000}.g-date-relative-range-date-picker-presets-doc__content{--g-popover-max-width:"none"}.g-date-relative-range-date-picker-presets-doc__table_size_xl{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-date-relative-range-date-picker-presets-doc__table>table{width:100%}.g-table,.g-table__scroll-container{overflow:auto;position:relative}.g-table__scroll-container{-ms-overflow-style:none;scrollbar-width:none}.g-table__scroll-container::-webkit-scrollbar{display:none}.g-table__horizontal-scroll-bar{margin-block-start:-1px;overflow-x:auto}.g-table__horizontal-scroll-bar-inner{height:1px;position:relative}.g-table__horizontal-scroll-bar-inner:before{background-color:#ffffff03;content:"";height:1px;inset-block-start:0;inset-inline-start:0;position:absolute;width:1px}.g-table__horizontal-scroll-bar_sticky-horizontal-scroll{position:sticky;z-index:3}.g-table__table{border-collapse:initial;border-spacing:0}.g-table__table_width_max{width:100%}.g-table__cell{border-block-end:1px solid var(--g-color-line-generic);box-sizing:initial;line-height:18px;overflow-wrap:break-word;padding:11px var(--g-spacing-2) 10px;text-align:start}.g-table__cell:first-child{padding-inline-start:0}.g-table__cell:last-child{padding-inline-end:0}.g-table__cell:not(.g-table__cell_word-wrap){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-table__cell_align_center{text-align:center}.g-table__cell_align_end{text-align:end}.g-table .g-table__cell_sticky_end,.g-table .g-table__cell_sticky_start{background:var(--g-color-base-background);position:sticky;z-index:2}.g-table__cell_border_right{border-inline-end:1px solid var(--g-color-line-generic)}.g-table__cell_edge-padding:first-child{padding-inline-start:var(--g-spacing-3)}.g-table__cell_edge-padding:last-child{padding-inline-end:var(--g-spacing-3)}.g-table__row_vertical-align_top{vertical-align:top}.g-table__row_vertical-align_middle{vertical-align:middle}.g-table__row_empty .g-table__cell{text-align:center}.g-table__body .g-table__row:last-child .g-table__cell{border-block-end-color:#0000}.g-table__head .g-table__cell{font-weight:var(--g-text-accent-font-weight)}.g-table__body .g-table__row_interactive:hover{background-color:var(--g-color-base-simple-hover-solid);cursor:pointer}.g-table__body .g-table__row_interactive:hover .g-table__cell_sticky_end,.g-table__body .g-table__row_interactive:hover .g-table__cell_sticky_start{background:var(--g-color-base-simple-hover-solid)}.g-table__body .g-table__row_disabled{opacity:.3}.g-table_with-primary .g-table__body .g-table__cell{color:var(--g-color-text-secondary)}.g-table_with-primary .g-table__body .g-table__cell_primary{color:var(--g-color-text-primary)}.g-table_with-sticky-scroll{overflow:visible}.g-date-relative-range-date-picker-presets{--g-list-item-padding:0 var(--_--g-date-picker-presets-padding,0)}.g-date-relative-range-date-picker-presets__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px var(--g-color-line-generic);display:flex;gap:var(--g-spacing-2);padding-inline:var(--_--g-date-picker-presets-padding,0)}.g-date-relative-range-date-picker-presets__list-container{outline:none}.g-date-relative-range-date-picker-presets__doc{margin-inline-start:auto}.g-date-relative-range-date-picker-presets__content{height:128px;overflow:auto}.g-date-relative-range-date-picker-presets_size_l .g-date-relative-range-date-picker-presets__content{height:144px}.g-date-relative-range-date-picker-presets_size_xl .g-date-relative-range-date-picker-presets__content{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:162px;line-height:var(--g-text-body-2-line-height)}.g-date-relative-range-date-picker-zones__control{--g-button-background-color-hover:#0000}.g-date-relative-range-date-picker-dialog__content{--_--popup-content-padding:var(--g-spacing-2);--_--g-date-picker-presets-padding:var(--_--popup-content-padding);padding:var(--_--popup-content-padding)}.g-date-relative-range-date-picker-dialog__content_mobile{--_--popup-content-padding:var(--g-spacing-5)}.g-date-relative-range-date-picker-dialog__content:not(.g-date-relative-range-date-picker-dialog__content_mobile){width:310px}.g-date-relative-range-date-picker-dialog__content_size_xl:not(.g-date-relative-range-date-picker-dialog__content_mobile){width:380px}.g-date-relative-range-date-picker-dialog__pickers{display:flex;flex-direction:column;gap:var(--g-spacing-2)}.g-date-relative-range-date-picker-dialog__pickers .g-text-input__label{width:40px}.g-date-relative-range-date-picker-dialog__content_size_xl .g-date-relative-range-date-picker-dialog__pickers .g-text-input__label{width:50px}.g-date-relative-range-date-picker-dialog__apply{margin-block-start:var(--g-spacing-2)}.g-date-relative-range-date-picker-dialog__zone{border-block-start:1px solid var(--g-color-line-generic);margin-block:var(--g-spacing-2) calc(var(--_--popup-content-padding)*-1)}.g-date-relative-range-date-picker-dialog__presets,.g-date-relative-range-date-picker-dialog__zone{margin-inline:calc(var(--_--popup-content-padding)*-1)}.g-date-mobile-calendar{border:none;box-sizing:border-box;cursor:pointer;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;min-width:100%;opacity:0;padding:0;position:absolute;z-index:1}.g-date-mobile-calendar::-webkit-calendar-picker-indicator{cursor:pointer;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;min-width:100%;padding:0;position:absolute}.g-date-stub-button{display:inline-block;height:24px;position:relative;width:24px}.g-date-stub-button_size_xs{height:20px;width:20px}.g-date-stub-button_size_m{height:28px;width:28px}.g-date-stub-button_size_l{height:36px;width:36px}.g-date-stub-button__icon{align-items:center;color:var(--g-color-text-secondary);display:flex;inset:0;justify-content:center;position:absolute}.g-date-relative-date-picker{display:inline-flex;outline:none;position:relative}.g-date-relative-date-picker__input_mobile{pointer-events:none}.g-date-relative-date-picker__field{width:100%}.g-date-relative-date-picker__popup-content{outline:none}.g-date-relative-date-picker__time-field{width:100%}.g-date-relative-date-picker__time-field-wrapper{padding:10px}.g-date-calendar{--_--calendar-padding:var(--g-date-calendar-padding,8px);--_--calendar-day-size:var(--g-date-calendar-day-size,28px);--_--calendar-days-gap:var(--g-date-calendar-days-gap,2px);--_--calendar-width:calc(var(--_--calendar-day-size)*7 + var(--_--calendar-days-gap)*6 + var(--_--calendar-padding)*2);--_--calendar-grid-height:calc(var(--_--calendar-day-size)*7 + var(--_--calendar-days-gap)*5 + var(--_--calendar-padding));display:inline-block;width:var(--_--calendar-width)}.g-date-calendar_size_l{--g-date-calendar-day-size:36px}.g-date-calendar_size_xl{--g-date-calendar-day-size:42px;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-date-calendar__header{display:flex;padding:var(--_--calendar-padding) var(--_--calendar-padding) 0}.g-date-calendar__years-label{color:var(--g-color-text-secondary)}.g-date-calendar__controls{margin-inline-start:auto}.g-date-calendar__control-icon{transform:scaleX(var(--g-flow-direction))}.g-date-calendar__grid{height:var(--_--calendar-grid-height);overflow:hidden;position:relative;-webkit-user-select:none;user-select:none;width:100%}.g-date-calendar__content{box-sizing:border-box;display:grid;grid-template-rows:var(--_--calendar-day-size) 1fr;height:100%;inset-block-start:0;inset-inline-start:0;padding:0 var(--_--calendar-padding) var(--_--calendar-padding);position:absolute;width:100%}@keyframes calendar-forward{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes calendar-backward{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes calendar-zoom-in-showing{0%{opacity:0;transform:scale(2)}to{opacity:1;transform:scale(1)}}@keyframes calendar-zoom-in-hiding{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes calendar-zoom-out-showing{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes calendar-zoom-out-hiding{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.g-date-calendar__content_animation_forward{animation:calendar-forward .25s ease forwards;transform:translateX(-100%)}.g-date-calendar__content_animation_forward.g-date-calendar__current-state{inset-inline-start:calc(var(--g-flow-direction)*-100%)}.g-date-calendar__content_animation_backward{animation:calendar-backward .25s ease forwards;transform:translateX(0)}.g-date-calendar__content_animation_backward.g-date-calendar__current-state{inset-inline-start:calc(var(--g-flow-direction)*100%)}.g-date-calendar__content_animation_zoom-in{transform:scale()}.g-date-calendar__content_animation_zoom-in.g-date-calendar__previous-state{animation:calendar-zoom-in-hiding .25s ease forwards}.g-date-calendar__content_animation_zoom-in.g-date-calendar__current-state{animation:calendar-zoom-in-showing .25s ease forwards}.g-date-calendar__content_animation_zoom-out{transform:scale()}.g-date-calendar__content_animation_zoom-out.g-date-calendar__current-state{animation:calendar-zoom-out-showing .25s ease forwards}.g-date-calendar__content_animation_zoom-out.g-date-calendar__previous-state{animation:calendar-zoom-out-hiding .25s ease forwards}@media (update:slow),screen and (prefers-reduced-motion:reduce){.g-date-calendar__content[class]{animation-duration:.001ms}}.g-date-calendar__grid-rowgroup{display:grid;gap:var(--_--calendar-days-gap)}.g-date-calendar__grid-rowgroup_mode_months,.g-date-calendar__grid-rowgroup_mode_quarters,.g-date-calendar__grid-rowgroup_mode_years{grid-row:1/-1;padding:12px 0 0}.g-date-calendar__grid-rowgroup-header{align-self:center}.g-date-calendar__grid-row{display:grid;gap:var(--_--calendar-days-gap);grid-auto-columns:1fr;grid-auto-flow:column}.g-date-calendar__weekday{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.g-date-calendar__weekday_weekend{color:var(--g-color-text-danger)}.g-date-calendar__button{align-items:center;border-radius:4px;cursor:pointer;display:flex;font-weight:var(--g-text-subheader-font-weight);height:100%;justify-content:center;outline:none;position:relative;width:100%}.g-date-calendar__button:focus{box-shadow:0 0 0 2px var(--g-color-line-misc)}.g-date-calendar__button:focus:not(:focus-visible){box-shadow:none}.g-date-calendar__button:hover{background-color:var(--g-color-base-generic)}.g-date-calendar__button_selected[class]{background-color:var(--g-color-base-selection)}.g-date-calendar__button_selected.g-date-calendar__button_selection-end,.g-date-calendar__button_selected.g-date-calendar__button_selection-start{background-color:var(--g-color-base-brand)}.g-date-calendar__button_weekend{color:var(--g-color-text-danger)}.g-date-calendar__button_out-of-boundary{font-weight:var(--g-text-body-font-weight);opacity:.6}.g-date-calendar__button_current:before{background-color:currentColor;border-radius:50%;content:"";display:block;height:4px;inset-block-start:50%;position:absolute;transform:translateY(8px);width:4px}.g-date-calendar__button_disabled{font-weight:var(--g-text-body-font-weight);opacity:.6;pointer-events:none}.g-date-calendar__button_unavailable:not(.g-date-calendar__button_disabled){background-color:var(--g-color-base-generic);cursor:default;font-weight:var(--g-text-body-font-weight);opacity:.5}.g-date-date-field{display:inline-block;width:auto}.g-date-relative-range-date-picker{display:inline-flex;position:relative}.g-date-relative-range-date-picker__value-label{display:flex;width:100%}.g-date-relative-range-date-picker__value-label>div{flex:1 0}.g-date-relative-range-date-picker__value-label-content{display:flex;flex-direction:column}.g-date-relative-range-date-picker__value-label-tooltip{--g-popover-max-width:"none"}.g-date-relative-range-date-picker__value-label-item,.g-date-relative-range-date-picker__value-label-to,.g-date-relative-range-date-picker__value-label-tz{text-align:center}.g-date-relative-range-date-picker__value-label-tz{color:var(--g-color-text-hint);margin-block-start:5px}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.g-spin{animation:g-spin 1s linear infinite;backface-visibility:hidden;display:inline-block}.g-spin__inner{border:2px solid var(--g-color-line-brand);border-end-end-radius:25px;border-inline-start:none;border-start-end-radius:25px;box-sizing:border-box;height:100%;margin-inline-start:50%;width:50%}.g-spin_size_xs{height:16px;width:16px}.g-spin_size_s{height:24px;width:24px}.g-spin_size_m{height:28px;width:28px}.g-spin_size_l{height:32px;width:32px}.g-spin_size_xl{height:36px;width:36px}@keyframes g-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.g-alert_corners_square{--g-card-border-radius:0}.g-alert__text-content{width:100%}.g-alert__actions_minContent{width:min-content}.g-alert__close-btn{flex-shrink:0}.monaco-editor .rendered-markdown kbd{border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-width:1px}@font-face{font-display:block;font-family:codicon;src:url(../../static/media/codicon.f6283f7ccaed1249d9eb.ttf) format("truetype")}.context-view-block,.context-view-pointerBlock{cursor:auto;height:100%;left:0;position:fixed;top:0;width:100%}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-width:1px}.monaco-editor,.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{box-sizing:border-box;display:block;height:100%;left:0;position:absolute;top:0}.monaco-editor .mtkw,.monaco-editor .mtkz{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .codelens-decoration>a:hover,.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.colorpicker-body .hue-strip{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename,.monaco-editor .peekview-widget .head .peekview-title .meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hc-black .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-editor .movedModified,.monaco-editor .movedOriginal{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:#0000}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-diff-editor .gutter{&>div{position:absolute}.gutterItem{opacity:0;transition:opacity .7s;&.showAlways{opacity:1}&.noTransition,&.showAlways{transition:none}}&:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.gutterItem{.background{border-left:2px solid var(--vscode-menu-border);height:100%;left:50%;position:absolute;width:1px}.buttons{align-items:center;display:flex;justify-content:center;position:absolute;width:100%;.monaco-toolbar{height:fit-content;.monaco-action-bar{line-height:1;.actions-container{background:var(--vscode-editorGutter-commentRangeForeground);border-radius:4px;width:fit-content;.action-item{&:hover{background:var(--vscode-toolbar-hoverBackground)}.action-label{padding:1px 2px}}}}}}}}.monaco-diff-editor .diff-hidden-lines-compact{.line-left,.line-right{border-top:1px solid;border-color:var(--vscode-editorCodeLens-foreground);height:1px;margin:auto;opacity:.5;width:100%}.line-left{width:20px}.text{text-wrap:nowrap;color:var(--vscode-editorCodeLens-foreground);font-size:11px;line-height:11px;margin:0 4px}}.monaco-editor .find-widget,.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground)}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;display:flex;height:25px}.monaco-editor .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiM0MjQyNDIiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiNDNUM1QzUiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .inlineEditHints a,.monaco-editor .inlineEditHints a:hover{color:var(--vscode-foreground)}.monaco-editor div.inline-edits-widget{.promptEditor .monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground)}.promptEditor,.toolbar{opacity:0;transition:opacity .2s ease-in-out}&.focused,&:hover{.promptEditor,.toolbar{opacity:1}}.preview .monaco-editor{--vscode-editor-background:var(--widget-color);.mtk1{color:var(--vscode-editorGhostText-foreground)}.current-line-margin,.view-overlays .current-line-exact{border:none}}svg{.gradient-start{stop-color:var(--vscode-editor-background)}.gradient-stop{stop-color:var(--widget-color)}}}.monaco-editor{.editorPlaceholder{text-wrap:nowrap;color:var(--vscode-editor-placeholder-foreground);overflow:hidden;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0}}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-diff-editor button:focus,.monaco-diff-editor input[type=button]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-diff-editor select:focus,.monaco-diff-editor textarea:focus,.monaco-editor{opacity:1;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-style:solid;outline-width:1px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border-color:#ccc6 #ccc6 #bbb6;box-shadow:inset 0 -1px 0 #bbb6}.monaco-component.multiDiffEditor{>div{height:100%;left:0;position:absolute;top:0;width:100%;&.placeholder{display:grid;place-content:center;place-items:center;visibility:hidden;&.visible{visibility:visible}}}.active{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.multiDiffEntry{display:flex;flex:1 1;flex-direction:column;overflow:hidden;.collapse-button{cursor:pointer;margin:0 5px;a{display:block}}.header{background:var(--vscode-editor-background);z-index:1000;&:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.header-content{align-items:center;background:var(--vscode-multiDiffEditor-headerBackground);border-top:1px solid var(--vscode-multiDiffEditor-border);color:var(--vscode-foreground);display:flex;margin:8px 0 0;padding:4px 5px;&.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.file-path{display:flex;flex:1 1;min-width:0;.title{font-size:14px;line-height:22px;&.original{flex:1 1;min-width:0;text-overflow:ellipsis}}.status{font-weight:600;line-height:22px;margin:0 10px;opacity:.75}}.actions{padding:0 8px}}}.editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);display:flex;flex:1 1;flex-direction:column;overflow:hidden}.editorContainer{flex:1 1}}}.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} +/*!----------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/vscode/blob/main/LICENSE.txt + *-----------------------------------------------------------*/.monaco-action-bar{height:100%;white-space:nowrap}.monaco-action-bar .actions-container{align-items:center;display:flex;height:100%;margin:0 auto;padding:0;width:100%}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{align-items:center;cursor:pointer;display:block;justify-content:center;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{align-items:center;display:flex;height:16px;width:16px}.monaco-action-bar .action-label{border-radius:5px;display:flex;font-size:11px;padding:3px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{color:var(--vscode-disabledForeground)}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #bbb;display:block;margin-left:.8em;margin-right:.8em;padding-top:1px}.monaco-action-bar .action-item .action-label.separator{background-color:#bbb;cursor:default;height:16px;margin:5px 4px!important;min-width:1px;padding:0;width:1px}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{align-items:center;display:flex;flex:1 1;justify-content:center;margin-right:10px;max-width:170px;min-width:60px;overflow:hidden}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{align-items:center;cursor:default;display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.monaco-aria-container{left:-999em;position:absolute}.monaco-text-button{align-items:center;border:1px solid var(--vscode-button-border,#0000);border-radius:2px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;line-height:18px;padding:4px;text-align:center;width:100%}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{cursor:default;opacity:.4!important}.monaco-text-button .codicon{color:inherit!important;margin:0 .2em}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;height:28px;overflow:hidden;padding:0 4px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;overflow:hidden;width:0}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{align-items:center;display:flex;font-style:inherit;font-weight:400;justify-content:center;padding:4px 0}.monaco-button-dropdown{cursor:pointer;display:flex}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator,.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{cursor:default;padding:4px 0}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{align-items:center;border:1px solid var(--vscode-button-border,#0000);border-left-width:0!important;border-radius:0 2px 2px 0;display:flex}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{align-items:center;display:flex;flex-direction:column;margin:4px 5px}.monaco-description-button .monaco-button-description{font-size:11px;font-style:italic;padding:4px 20px}.monaco-description-button .monaco-button-description,.monaco-description-button .monaco-button-label{align-items:center;display:flex;justify-content:center}.monaco-description-button .monaco-button-description>.codicon,.monaco-description-button .monaco-button-label>.codicon{color:inherit!important;margin:0 .2em}.monaco-button-dropdown.default-colors>.monaco-button,.monaco-button.default-colors{background-color:var(--vscode-button-background);color:var(--vscode-button-foreground)}.monaco-button-dropdown.default-colors>.monaco-button:hover,.monaco-button.default-colors:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary,.monaco-button.default-colors.secondary{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover,.monaco-button.default-colors.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-bottom:1px solid var(--vscode-button-border);border-top:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}@font-face{font-display:block;font-family:codicon;src:url(../../static/media/codicon.f6283f7ccaed1249d9eb.ttf) format("truetype")}.codicon[class*=codicon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font:normal normal normal 16px/1 codicon;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view{position:absolute}.context-view.fixed{all:initial;color:inherit;font-family:inherit;font-size:13px;position:fixed}.monaco-count-badge{border-radius:11px;box-sizing:border-box;display:inline-block;font-size:11px;font-weight:400;line-height:11px;min-height:18px;min-width:18px;padding:3px 6px;text-align:center}.monaco-count-badge.long{border-radius:2px;line-height:normal;min-height:auto;padding:2px 3px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.hc-light .monaco-findInput.highlight-0 .controls,.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.hc-light .monaco-findInput.highlight-1 .controls,.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:#fdff00cc}to{background:#0000}}@keyframes monaco-findInput-highlight-1{0%{background:#fdff00cc}99%{background:#0000}}@keyframes monaco-findInput-highlight-dark-0{0%{background:#ffffff70}to{background:#0000}}@keyframes monaco-findInput-highlight-dark-1{0%{background:#ffffff70}99%{background:#0000}}.monaco-hover{animation:fadein .1s linear;box-sizing:border-box;cursor:default;line-height:1.5em;overflow:hidden;position:absolute;user-select:text;-webkit-user-select:text;white-space:var(--vscode-hover-whiteSpace,normal)}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){word-wrap:break-word;max-width:var(--vscode-hover-maxWidth,500px)}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{border-left:0;border-right:0;box-sizing:border-box;height:1px;margin:4px -8px -4px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace,pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px;width:100%}.monaco-hover .hover-row.status-bar .actions .action-container{cursor:pointer;margin-right:16px}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .hover-row.status-bar .actions .action-container a{color:var(--vscode-textLink-foreground);-webkit-text-decoration:var(--text-link-decoration);text-decoration:var(--text-link-decoration)}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{border-bottom:1px solid #0000;color:var(--vscode-textLink-foreground);text-decoration:underline;text-underline-position:under}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{display:inline-block;margin-bottom:4px}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span.codicon{margin-bottom:2px}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{cursor:default;opacity:.4;pointer-events:none}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-position:0;background-repeat:no-repeat;background-size:16px;display:inline-block;flex-shrink:0;height:22px;line-height:inherit!important;padding-right:6px;vertical-align:top;width:16px}.monaco-icon-label-iconpath{display:flex;height:16px;margin-top:2px;padding-left:2px;width:16px}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-suffix-container>.label-suffix{opacity:.7;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-size:.9em;margin-left:.5em;opacity:.7;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{opacity:.66;text-decoration:line-through}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{font-size:90%;font-weight:600;margin:auto 16px 0 5px;opacity:.75;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-inputbox{border-radius:2px;box-sizing:border-box;display:block;font-size:inherit;padding:0;position:relative}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{height:100%;position:relative;width:100%}.monaco-inputbox>.ibwrapper>.input{border:none;box-sizing:border-box;color:inherit;display:inline-block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;resize:none;width:100%}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;outline:none;scrollbar-width:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{word-wrap:break-word;box-sizing:border-box;display:inline-block;left:0;position:absolute;top:0;visibility:hidden;white-space:pre-wrap;width:100%}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{word-wrap:break-word;box-sizing:border-box;display:inline-block;font-size:12px;line-height:17px;margin-top:-1px;overflow:hidden;padding:.4em;text-align:left;width:100%}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;height:16px;width:16px}.monaco-keybinding{align-items:center;display:flex;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{border-radius:3px;border-style:solid;border-width:1px;display:inline-block;font-size:11px;margin:0 2px;padding:3px 5px;vertical-align:middle}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-list{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{height:100%;position:relative;width:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{min-width:100%;width:auto}.monaco-list-row{box-sizing:border-box;overflow:hidden;position:absolute;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list .monaco-scrollable-element>.scrollbar.vertical,.monaco-pane-view>.monaco-split-view2.vertical>.monaco-scrollable-element>.scrollbar.vertical{z-index:14}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{border-radius:10px;display:inline-block;font-size:12px;padding:1px 7px;position:absolute;z-index:1000}.monaco-list-type-filter-message{box-sizing:border-box;height:100%;left:0;opacity:.7;padding:40px 1em 1em;pointer-events:none;position:absolute;text-align:center;top:0;white-space:normal;width:100%}.monaco-list-type-filter-message:empty{display:none}.monaco-mouse-cursor-text{cursor:text}.monaco-progress-container{height:2px;overflow:hidden;width:100%}.monaco-progress-container .progress-bit{display:none;height:2px;left:0;position:absolute;width:2%}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-duration:4s;animation-iteration-count:infinite;animation-name:progress;animation-timing-function:linear;transform:translateZ(0)}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}:root{--vscode-sash-size:4px;--vscode-sash-hover-size:4px}.monaco-sash{position:absolute;touch-action:none;z-index:35}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;height:100%;top:0;width:var(--vscode-sash-size)}.monaco-sash.horizontal{cursor:ns-resize;height:var(--vscode-sash-size);left:0;width:100%}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";cursor:all-scroll;display:block;height:calc(var(--vscode-sash-size)*2);position:absolute;width:calc(var(--vscode-sash-size)*2);z-index:100}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-.5);top:calc(var(--vscode-sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{bottom:calc(var(--vscode-sash-size)*-1);left:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{right:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash:before{background:#0000;content:"";height:100%;pointer-events:none;position:absolute;width:100%}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.active:before,.monaco-sash.hover:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{left:calc(50% - var(--vscode-sash-hover-size)/2);width:var(--vscode-sash-hover-size)}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - var(--vscode-sash-hover-size)/2)}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:#0ff3}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{background:#0000;opacity:1;transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{display:none;position:absolute}.monaco-scrollable-element>.shadow.top{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;display:block;height:3px;left:3px;top:0;width:100%}.monaco-scrollable-element>.shadow.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;display:block;height:100%;left:0;top:3px;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;height:3px;left:0;top:0;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box{border-radius:2px;cursor:pointer;width:100%}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-height:18px;min-width:100px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{border-radius:5px;font-size:11px}.monaco-select-box-dropdown-padding{--dropdown-padding-top:1px;--dropdown-padding-bottom:1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top:3px;--dropdown-padding-bottom:4px}.monaco-select-box-dropdown-container{box-sizing:border-box;display:none}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{font-family:var(--monaco-monospace-font);line-height:15px}.monaco-select-box-dropdown-container.visible{border-bottom-left-radius:3px;border-bottom-right-radius:3px;display:flex;flex-direction:column;overflow:hidden;text-align:left;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{align-self:flex-start;box-sizing:border-box;flex:0 0 auto;overflow:hidden;padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;padding-top:var(--dropdown-padding-top);width:100%}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-bottom:var(--dropdown-padding-bottom);padding-top:var(--dropdown-padding-top)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{float:left;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{float:left;opacity:.7;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{float:right;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{height:1px;left:-10000px;overflow:hidden;position:absolute;top:auto;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{align-self:flex-start;flex:1 1 auto;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{max-height:0;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-split-view2{height:100%;position:relative;width:100%}.monaco-split-view2>.sash-container{height:100%;pointer-events:none;position:absolute;width:100%}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{height:100%;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{position:absolute;white-space:normal}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;white-space:nowrap;width:100%}.monaco-table>.monaco-split-view2{border-bottom:1px solid #0000}.monaco-table>.monaco-list{flex:1 1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{font-weight:700;height:100%;overflow:hidden;text-overflow:ellipsis;width:100%}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{border-left:1px solid #0000;content:"";left:calc(var(--vscode-sash-size)/2);position:absolute;width:0}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-custom-toggle{border:1px solid #0000;border-radius:3px;box-sizing:border-box;cursor:pointer;float:left;height:20px;margin-left:2px;overflow:hidden;padding:1px;user-select:none;-webkit-user-select:none;width:20px}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{background-size:16px!important;border:1px solid #0000;border-radius:3px;height:18px;margin-left:0;margin-right:9px;opacity:1;padding:0;width:18px}.monaco-action-bar .checkbox-action-item{align-items:center;border-radius:2px;display:flex;padding-right:2px}.monaco-action-bar .checkbox-action-item:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-action-bar .checkbox-action-item>.monaco-custom-toggle.monaco-checkbox{margin-right:4px}.monaco-action-bar .checkbox-action-item>.checkbox-label{font-size:12px}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-tl-row{align-items:center;display:flex;height:100%;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;left:16px;pointer-events:none;position:absolute;top:0}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{border-left:1px solid #0000;box-sizing:border-box;display:inline-block;height:100%}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{align-items:center;display:flex!important;flex-shrink:0;font-size:10px;justify-content:center;padding-right:6px;text-align:right;transform:translateX(3px);width:16px}.monaco-tl-contents{flex:1 1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;display:flex;margin:0 6px;max-width:200px;padding:3px;position:absolute;top:0;z-index:100}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{align-items:center;cursor:grab;display:flex!important;justify-content:center;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1 1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{background-color:var(--vscode-sideBar-background);height:0;left:0;position:absolute;top:0;width:100%;z-index:13}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{background-color:var(--vscode-sideBar-background);opacity:1!important;overflow:hidden;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row:hover{background-color:var(--vscode-list-hoverBackground)!important;cursor:pointer}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty,.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty .monaco-tree-sticky-container-shadow{display:none}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow{bottom:-3px;height:0;left:0;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex="0"]:focus{outline:none}.monaco-editor .inputarea{background-color:initial;border:none;color:#0000;margin:0;min-height:0;min-width:0;outline:none!important;overflow:hidden;padding:0;position:absolute;resize:none;z-index:-10}.monaco-editor .inputarea.ime-input{caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground);z-index:10}.monaco-workbench .workbench-hover{background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorHoverWidget-foreground);font-size:13px;line-height:19px;max-width:700px;overflow:hidden;position:relative;z-index:40}.monaco-workbench .workbench-hover hr{border-bottom:none}.monaco-workbench .workbench-hover:not(.skip-fade-in){animation:fadein .1s linear}.monaco-workbench .workbench-hover.compact{font-size:12px}.monaco-workbench .workbench-hover.compact .hover-contents{padding:2px 8px}.monaco-workbench .workbench-hover-container.locked .workbench-hover{outline:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .workbench-hover-container.locked .workbench-hover:focus,.monaco-workbench .workbench-hover-lock:focus{outline:1px solid var(--vscode-focusBorder)}.monaco-workbench .workbench-hover-container.locked .workbench-hover-lock:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .workbench-hover-pointer{pointer-events:none;position:absolute;z-index:41}.monaco-workbench .workbench-hover-pointer:after{background-color:var(--vscode-editorHoverWidget-background);border-bottom:1px solid var(--vscode-editorHoverWidget-border);border-right:1px solid var(--vscode-editorHoverWidget-border);content:"";height:5px;position:absolute;width:5px}.monaco-workbench .locked .workbench-hover-pointer:after{border-bottom-width:2px;border-right-width:2px;height:4px;width:4px}.monaco-workbench .workbench-hover-pointer.left{left:-3px}.monaco-workbench .workbench-hover-pointer.right{right:3px}.monaco-workbench .workbench-hover-pointer.top{top:-3px}.monaco-workbench .workbench-hover-pointer.bottom{bottom:3px}.monaco-workbench .workbench-hover-pointer.left:after{transform:rotate(135deg)}.monaco-workbench .workbench-hover-pointer.right:after{transform:rotate(315deg)}.monaco-workbench .workbench-hover-pointer.top:after{transform:rotate(225deg)}.monaco-workbench .workbench-hover-pointer.bottom:after{transform:rotate(45deg)}.monaco-workbench .workbench-hover a{color:var(--vscode-textLink-foreground)}.monaco-workbench .workbench-hover a:focus{outline:1px solid;outline-color:var(--vscode-focusBorder);outline-offset:-1px;text-decoration:underline}.monaco-workbench .workbench-hover a:active,.monaco-workbench .workbench-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .workbench-hover code{background:var(--vscode-textCodeBlock-background)}.monaco-workbench .workbench-hover .hover-row .actions{background:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-workbench .workbench-hover.right-aligned{left:1px}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions{flex-direction:row-reverse}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container{margin-left:16px;margin-right:0}.monaco-editor .blockDecorations-container{pointer-events:none;position:absolute;top:0}.monaco-editor .blockDecorations-block{box-sizing:border-box;position:absolute}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{box-sizing:border-box;display:block;height:100%;left:0;position:absolute;top:0}.monaco-editor + .margin-view-overlays + .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{height:100%;position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{align-items:center;display:flex;justify-content:center;position:absolute}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{box-sizing:border-box;height:100%;position:absolute}.monaco-editor .margin-view-overlays .line-numbers{font-feature-settings:"tnum";bottom:0;box-sizing:border-box;cursor:default;display:inline-block;font-variant-numeric:tabular-nums;position:absolute;text-align:right;vertical-align:middle}.monaco-editor .relative-current-line-number{display:inline-block;text-align:left;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.mtkcontrol{background:#960000!important;color:#fff!important}.mtkoverflow{background-color:var(--vscode-button-background,var(--vscode-editor-background));border-color:var(--vscode-contrastBorder);border-radius:2px;border-style:solid;border-width:1px;color:var(--vscode-button-foreground,var(--vscode-editor-foreground));cursor:pointer;padding:4px}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{user-select:auto;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .lines-content>.view-lines>.view-line>span{bottom:0;position:absolute;top:0}.monaco-editor .mtkw,.monaco-editor .mtkz{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{background:#fff;position:absolute;top:0}.monaco-editor .margin-view-overlays .cldr{height:100%;position:absolute}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-editor .margin-view-overlays .cmdr{height:100%;left:0;position:absolute;width:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{left:-6px;position:absolute;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{left:-1px;position:absolute;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{left:0;position:absolute;top:0}.monaco-editor .view-ruler{box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset;position:absolute;top:0}.monaco-editor .scroll-decoration{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;height:6px;left:0;position:absolute;top:0}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{box-sizing:border-box;overflow:hidden;position:absolute}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:#0000!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{background:#0000!important;border-bottom-style:solid;border-bottom-width:2px}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{background:#0000!important;border-bottom-style:solid;border-bottom-width:1px}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .mwh{color:var(--vscode-editorWhitespace-foreground)!important;position:absolute}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);overflow:visible;overflow-wrap:normal;position:relative}.monaco-editor,.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);border:1px solid var(--vscode-editor-rangeHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);border:1px solid var(--vscode-editor-symbolHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{overflow:hidden;position:relative}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .margin-view-overlays>div,.monaco-editor .view-overlays>div{position:absolute;width:100%}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{background:var(--vscode-editorError-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{background:var(--vscode-editorWarning-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{background:var(--vscode-editorInfo-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground,inherit)}.monaco-component.diff-review{user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review{position:absolute}.monaco-component.diff-review .diff-review-line-number{color:var(--vscode-editorLineNumber-foreground);display:inline-block;text-align:right}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-component.diff-review .diff-review-row{white-space:pre}.monaco-component.diff-review .diff-review-table{display:table;min-width:100%}.monaco-component.diff-review .diff-review-row{display:table-row;width:100%}.monaco-component.diff-review .diff-review-spacer{display:inline-block;vertical-align:middle;width:10px}.monaco-component.diff-review .diff-review-spacer>.codicon{font-size:9px!important}.monaco-component.diff-review .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-component.diff-review .diff-review-actions .action-label{height:16px;margin:2px 0;width:16px}.monaco-component.diff-review .revertButton{cursor:pointer}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{font-size:13px;height:0;line-height:14px;transform:translateY(-10px)}.monaco-editor .diff-hidden-lines .bottom.dragging,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .bottom,.monaco-editor .diff-hidden-lines .top{background-clip:padding-box;background-color:initial;border-bottom:2px solid #0000;border-top:4px solid #0000;height:4px;transition:background-color .1s ease-out}.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *{cursor:n-resize!important}.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *{cursor:s-resize!important}.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *{cursor:ns-resize!important}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{align-items:center;background:var(--vscode-editor-background);display:flex;justify-content:center;z-index:1}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow);color:var(--vscode-diffEditor-unchangedRegionForeground);display:block;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedModified,.monaco-editor .movedOriginal{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedModified.currentMove,.monaco-editor .movedOriginal.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{pointer-events:none;position:absolute}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2}.monaco-editor .char-delete.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-removedTextBackground);margin-left:-1px}.monaco-editor .char-insert.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{display:flex;justify-content:flex-end;margin-top:-4px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{font-size:12px;height:12px;width:12px}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:#00000008}.monaco-diff-editor.vs-dark .diffOverview{background:#ffffff03}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:#0000}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:#ababab66}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{align-items:center;display:flex!important;font-size:11px!important;opacity:.7!important}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-diff-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-editor.hc-light .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{position:absolute;z-index:10}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .char-insert,.monaco-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-diff-editor .line-insert,.monaco-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground,var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-insert,.monaco-editor .line-insert{border:1px solid var(--vscode-diffEditor-insertedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-insert,.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .char-insert,.monaco-editor.hc-light .line-insert{border-style:dashed}.monaco-editor .char-delete,.monaco-editor .line-delete{border:1px solid var(--vscode-diffEditor-removedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-delete,.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .char-delete,.monaco-editor.hc-light .line-delete{border-style:dashed}.monaco-diff-editor .gutter-insert,.monaco-editor .gutter-insert,.monaco-editor .inline-added-margin-view-zone{background-color:var(--vscode-diffEditorGutter-insertedLineBackground,var(--vscode-diffEditor-insertedLineBackground),var(--vscode-diffEditor-insertedTextBackground))}.monaco-diff-editor .char-delete,.monaco-editor .char-delete,.monaco-editor .inline-deleted-text{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .inline-deleted-text{text-decoration:line-through}.monaco-diff-editor .line-delete,.monaco-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground,var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor .gutter-delete,.monaco-editor .gutter-delete,.monaco-editor .inline-deleted-margin-view-zone{background-color:var(--vscode-diffEditorGutter-removedLineBackground,var(--vscode-diffEditor-removedLineBackground),var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{border-left:1px solid var(--vscode-diffEditor-border);box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor.side-by-side .editor.original{border-right:1px solid var(--vscode-diffEditor-border);box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .diagonal-fill{background-image:linear-gradient(-45deg,var(--vscode-diffEditor-diagonalFill) 12.5%,#0000 12.5%,#0000 50%,var(--vscode-diffEditor-diagonalFill) 50%,var(--vscode-diffEditor-diagonalFill) 62.5%,#0000 62.5%,#0000 100%);background-size:8px 8px}.monaco-diff-editor .gutter{flex-grow:0;flex-shrink:0;overflow:hidden;position:relative}.monaco-diff-editor .gutter>div{position:absolute}.monaco-diff-editor .gutter .gutterItem{opacity:0;transition:opacity .7s}.monaco-diff-editor .gutter .gutterItem.showAlways{opacity:1;transition:none}.monaco-diff-editor .gutter .gutterItem.noTransition{transition:none}.monaco-diff-editor .gutter:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.monaco-diff-editor .gutter .gutterItem .background{border-left:2px solid var(--vscode-menu-border);height:100%;left:50%;position:absolute;width:1px}.monaco-diff-editor .gutter .gutterItem .buttons{align-items:center;display:flex;justify-content:center;position:absolute;width:100%}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar{height:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar{line-height:1}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container{background:var(--vscode-editorGutter-commentRangeForeground);border-radius:4px;width:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item .action-label{padding:1px 2px}.monaco-diff-editor .diff-hidden-lines-compact{display:flex;height:11px}.monaco-diff-editor .diff-hidden-lines-compact .line-left,.monaco-diff-editor .diff-hidden-lines-compact .line-right{border-top:1px solid;border-color:var(--vscode-editorCodeLens-foreground);height:1px;margin:auto;opacity:.5;width:100%}.monaco-diff-editor .diff-hidden-lines-compact .line-left{width:20px}.monaco-diff-editor .diff-hidden-lines-compact .text{text-wrap:nowrap;color:var(--vscode-editorCodeLens-foreground);font-size:11px;line-height:11px;margin:0 4px}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom:1px var(--vscode-keybindingLabel-bottomBorder);border-left-width:1px;border-radius:3px;border-right-width:1px;border-style:solid;border-top-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);padding:1px 3px;vertical-align:middle}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);height:100%;overflow-y:hidden;position:relative;width:100%}.monaco-component.multiDiffEditor>div{height:100%;left:0;position:absolute;top:0;width:100%}.monaco-component.multiDiffEditor>div.placeholder{display:grid;place-content:center;place-items:center;visibility:hidden}.monaco-component.multiDiffEditor>div.placeholder.visible{visibility:visible}.monaco-component.multiDiffEditor .active{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.monaco-component.multiDiffEditor .multiDiffEntry{display:flex;flex:1 1;flex-direction:column;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button{cursor:pointer;margin:0 5px}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button a{display:block}.monaco-component.multiDiffEditor .multiDiffEntry .header{background:var(--vscode-editor-background);z-index:1000}.monaco-component.multiDiffEditor .multiDiffEntry .header:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content{align-items:center;background:var(--vscode-multiDiffEditor-headerBackground);border-top:1px solid var(--vscode-multiDiffEditor-border);color:var(--vscode-foreground);display:flex;margin:8px 0 0;padding:4px 5px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path{display:flex;flex:1 1;min-width:0}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title{font-size:14px;line-height:22px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title.original{flex:1 1;min-width:0;text-overflow:ellipsis}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .status{font-weight:600;line-height:22px;margin:0 10px;opacity:.75}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .actions{padding:0 8px}.monaco-component.multiDiffEditor .multiDiffEntry .editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);display:flex;flex:1 1;flex-direction:column;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .editorContainer{flex:1 1}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border);box-sizing:border-box}.monaco-editor .lightBulbWidget{align-items:center;display:flex;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget.codicon-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{content:"";display:block;height:100%;left:0;opacity:.3;position:absolute;top:0;width:100%;z-index:1}.monaco-editor .glyph-margin-widgets .cgmr[class*=codicon-gutter-lightbulb]{cursor:pointer;display:block}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-aifix-auto-fix,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-auto-fix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .codelens-decoration{font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);color:var(--vscode-editorCodeLens-foreground);display:inline-block;font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);overflow:hidden;padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{user-select:none;-webkit-user-select:none;vertical-align:sub;white-space:nowrap}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration>a:hover,.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);vertical-align:middle}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:.1em solid #000;box-sizing:border-box;cursor:pointer;display:inline-block;height:.8em;line-height:.8em;margin:.1em .2em 0;width:.8em}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:.1em solid #eee}.colorpicker-header{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;display:flex;height:24px;image-rendering:pixelated;position:relative}.colorpicker-header .picked-color{align-items:center;color:#fff;cursor:pointer;display:flex;flex:1 1;justify-content:center;line-height:24px;overflow:hidden;white-space:nowrap;width:240px}.colorpicker-header .picked-color .picked-color-presentation{margin-left:5px;margin-right:5px;white-space:nowrap}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{cursor:pointer;width:74px;z-index:inherit}.standalone-colorpicker{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border);cursor:pointer}.colorpicker-header .close-button-inner-div{height:100%;text-align:center;width:100%}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{flex:1 1;height:150px;min-width:220px;overflow:hidden;position:relative}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px #000c;height:9px;margin:-5px 0 0 -5px;position:absolute;width:9px}.colorpicker-body .strip{height:150px;width:25px}.colorpicker-body .standalone-strip{height:122px;width:25px}.colorpicker-body .hue-strip{background:linear-gradient(180deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);cursor:grab;margin-left:8px;position:relative}.colorpicker-body .opacity-strip{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;cursor:grab;image-rendering:pixelated;margin-left:8px;position:relative}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{border:1px solid #ffffffb5;box-shadow:0 0 1px #000000d9;box-sizing:border-box;height:4px;left:-2px;position:absolute;top:0;width:calc(100% + 4px)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{border:1px solid #0000;border-bottom:1px solid var(--vscode-editorHoverWidget-border);display:block;overflow:hidden}.colorpicker-body .insert-button{background:var(--vscode-button-background);border:none;border-radius:2px;bottom:8px;color:var(--vscode-button-foreground);cursor:pointer;height:20px;padding:0;position:absolute;right:8px;width:58px}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor.hc-light .dnd-target,.monaco-editor.vs .dnd-target{border-right:2px dotted #000;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #aeafad;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.post-edit-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-widget-border,#0000);border-radius:4px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);overflow:hidden}.post-edit-widget .monaco-button{border:none;border-radius:0;padding:2px}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}.monaco-editor .findOptionsWidget{border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget,.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground)}.monaco-editor .find-widget{border-bottom:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);box-sizing:border-box;height:33px;line-height:19px;overflow:hidden;padding:0 4px;position:absolute;transform:translateY(calc(-100% - 10px));transition:transform .2s linear;z-index:35}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-color:var(--vscode-focusBorder);outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:initial;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{display:flex;font-size:12px;margin:3px 25px 0 17px}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-bottom:2px;padding-top:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;display:flex;height:25px}.monaco-editor .find-widget .monaco-findInput{display:flex;flex:1 1;vertical-align:middle}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{box-sizing:border-box;display:flex;flex:initial;height:25px;line-height:23px;margin:0 0 0 3px;padding:2px 0 0 2px;text-align:center;vertical-align:middle}.monaco-editor .find-widget .button{align-items:center;background-position:50%;background-repeat:no-repeat;border-radius:5px;cursor:pointer;display:flex;flex:initial;height:16px;justify-content:center;margin-left:3px;padding:3px;width:16px}.monaco-editor .find-widget .codicon-find-selection{border-radius:5px;height:22px;padding:3px;width:22px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{padding:1px 6px;top:-1px;width:auto}.monaco-editor .find-widget .button.toggle{border-radius:0;box-sizing:border-box;height:100%;left:3px;position:absolute;top:0;width:18px}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{display:flex;flex:auto;flex-grow:0;flex-shrink:0;position:relative;vertical-align:middle}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .find-widget.no-results .matchesCount{color:var(--vscode-errorForeground)}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important;background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor .currentFindMatch{background-color:var(--vscode-editor-findMatchBackground);border:2px solid var(--vscode-editor-findMatchBorder);box-sizing:border-box;padding:1px}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}.monaco-editor.hc-black .find-widget .button:before{left:2px;position:relative;top:1px}.monaco-editor .find-widget .button:not(.disabled):hover,.monaco-editor .find-widget .codicon-find-selection:hover{background-color:var(--vscode-toolbar-hoverBackground)!important}.monaco-editor.findMatch{background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor.currentFindMatch{background-color:var(--vscode-editor-findMatchBackground)}.monaco-editor.findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor.findMatch{background-color:var(--vscode-editorWidget-background)}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;right:4px;top:5px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{align-items:center;cursor:pointer;display:flex;font-size:140%;justify-content:center;margin-left:2px;opacity:0;transition:opacity .5s}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{transition:initial}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:var(--vscode-editor-foldPlaceholderForeground);content:"\22EF";cursor:pointer;display:inline;line-height:1em;margin:.1em .2em 0}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;margin-right:4px;vertical-align:text-top}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{font-style:italic;opacity:.6}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{padding:8px 12px 0 20px;position:absolute;user-select:text;-webkit-user-select:text;white-space:pre}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{color:inherit;opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{border-bottom:1px solid #0000;color:var(--vscode-textLink-activeForeground);text-decoration:underline;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .goto-definition-link{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer;text-decoration:underline}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-bottom-width:1px;border-top-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;padding:3em 0;text-align:center;width:100%}.monaco-editor .reference-zone-widget .ref-tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground);line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{overflow:hidden;text-overflow:ellipsis}.monaco-editor .reference-zone-widget .ref-tree .reference-file{color:var(--vscode-peekViewResult-fileForeground);display:inline-flex;height:100%;width:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-left:auto;margin-right:12px}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input,.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder,#0000);box-sizing:border-box}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover-content{box-sizing:border-box;padding-bottom:2px;padding-right:2px}.monaco-editor .monaco-hover{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground)}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row{display:flex}.monaco-editor .monaco-hover .hover-row .hover-row-contents{display:flex;flex-direction:column;min-width:0}.monaco-editor .monaco-hover .hover-row .verbosity-actions{border-right:1px solid var(--vscode-editorHoverWidget-border);display:flex;flex-direction:column;justify-content:end;padding-left:5px;padding-right:5px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon{cursor:pointer;font-size:11px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.enabled{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.disabled{opacity:.6}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .inlineSuggestionsHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;justify-content:center;min-width:19px}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:#0000;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{cursor:pointer;display:inline-block;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{font-size:0;opacity:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inline-edit-remove{background-color:var(--vscode-editorGhostText-background);font-style:italic}.monaco-editor .inline-edit-hidden{font-size:0;opacity:0}.monaco-editor .inline-edit-decoration,.monaco-editor .suggest-preview-text .inline-edit{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .inline-edit-decoration,.monaco-editor .inline-edit-decoration-preview,.monaco-editor .suggest-preview-text .inline-edit{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inlineEditHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineEditHints a,.monaco-editor .inlineEditHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineEditHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineEditHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineEditStatusBarItemLabel{margin-right:2px}.monaco-editor .inlineEditSideBySide{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);white-space:pre;z-index:39}.monaco-editor div.inline-edits-widget{--widget-color:var(--vscode-notifications-background)}.monaco-editor div.inline-edits-widget .promptEditor .monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground)}.monaco-editor div.inline-edits-widget .promptEditor,.monaco-editor div.inline-edits-widget .toolbar{opacity:0;transition:opacity .2s ease-in-out}.monaco-editor div.inline-edits-widget.focused .promptEditor,.monaco-editor div.inline-edits-widget.focused .toolbar,.monaco-editor div.inline-edits-widget:hover .promptEditor,.monaco-editor div.inline-edits-widget:hover .toolbar{opacity:1}.monaco-editor div.inline-edits-widget .preview .monaco-editor{--vscode-editor-background:var(--widget-color)}.monaco-editor div.inline-edits-widget .preview .monaco-editor .mtk1{color:var(--vscode-editorGhostText-foreground)}.monaco-editor div.inline-edits-widget .preview .monaco-editor .current-line-margin,.monaco-editor div.inline-edits-widget .preview .monaco-editor .view-overlays .current-line-exact{border:none}.monaco-editor div.inline-edits-widget svg .gradient-start{stop-color:var(--vscode-editor-background)}.monaco-editor div.inline-edits-widget svg .gradient-stop{stop-color:var(--widget-color)}.inline-editor-progress-decoration{display:inline-block;height:1em;width:1em}.inline-progress-widget{align-items:center;display:flex!important;justify-content:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{animation:none;font-size:90%!important}.inline-progress-widget:hover .icon:before{content:var(--vscode-icon-x-content);font-family:var(--vscode-icon-x-font-family)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground);padding:2px 4px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{border:8px solid #0000;height:0!important;left:2px;position:absolute;width:0!important;z-index:1000}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .parameter-hints-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);cursor:default;display:flex;flex-direction:column;line-height:1.5em;z-index:39}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{display:flex;flex-direction:row;max-width:440px}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{border-left:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;height:100%;opacity:.5;position:absolute}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex:1 1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{border-bottom:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;left:0;opacity:.5;padding-top:4px;position:absolute;width:100%}.monaco-editor .parameter-hints-widget .code{font-family:var(--vscode-parameterHintsWidget-editorFontFamily),var(--vscode-parameterHintsWidget-editorFontFamilyDefault)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs code{background-color:var(--vscode-textCodeBlock-background);border-radius:3px;font-family:var(--monaco-monospace-font);padding:0 .4em}.monaco-editor .parameter-hints-widget .docs .code,.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{align-items:center;display:none;flex-direction:column;justify-content:flex-end;min-width:22px}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{background-repeat:no-repeat;cursor:pointer;height:16px;width:16px}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{font-family:var(--monaco-monospace-font);height:12px;line-height:12px;text-align:center}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:space-between}.monaco-editor .peekview-widget .head .peekview-title{align-items:baseline;display:flex;font-size:13px;margin-left:20px;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename,.monaco-editor .peekview-widget .head .peekview-title .meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1 1;padding-right:2px;text-align:right}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{align-self:center;margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground)}.monaco-editor .editorPlaceholder{text-wrap:nowrap;color:var(--vscode-editor-placeholder-foreground);overflow:hidden;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0}.monaco-editor .rename-box{border-radius:4px;color:inherit;z-index:100}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{border-radius:2px;padding:3px;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input{padding:0;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{align-items:center;background-color:initial;border:none;border-radius:5px;cursor:pointer;display:flex;padding:3px}.monaco-editor .rename-box .rename-suggestions-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row{border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .snippet-placeholder{background-color:var(--vscode-editor-snippetTabstopHighlightBackground,#0000);min-width:2px;outline-color:var(--vscode-editor-snippetTabstopHighlightBorder,#0000);outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground,#0000);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder,#0000);outline-style:solid;outline-width:1px}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{background-color:inherit;float:left}.monaco-editor .sticky-widget-lines-scrollable{background-color:inherit;display:inline-block;overflow:hidden;position:absolute;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-widget-lines{background-color:inherit;position:absolute}.monaco-editor .sticky-line-content,.monaco-editor .sticky-line-number{background-color:inherit;color:var(--vscode-editorLineNumber-foreground);display:inline-block;position:absolute;white-space:nowrap}.monaco-editor .sticky-line-number .codicon-folding-collapsed,.monaco-editor .sticky-line-number .codicon-folding-expanded{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{background-color:inherit;white-space:nowrap;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-line-number-inner{display:inline-block;text-align:right}.monaco-editor .sticky-widget{border-bottom:1px solid var(--vscode-editorStickyScroll-border)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{background-color:var(--vscode-editorStickyScroll-background);box-shadow:var(--vscode-editorStickyScroll-shadow) 0 4px 2px -2px;right:auto!important;width:100%;z-index:4}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .suggest-widget{border-radius:3px;display:flex;flex-direction:column;width:430px;z-index:40}.monaco-editor .suggest-widget.message{align-items:center;flex-direction:row}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{background-color:var(--vscode-editorSuggestWidget-background);border-color:var(--vscode-editorSuggestWidget-border);border-style:solid;border-width:1px;flex:0 1 auto;width:100%}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-light .suggest-details,.monaco-editor.hc-light .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{border-top:1px solid var(--vscode-editorSuggestWidget-border);box-sizing:border-box;display:none;flex-flow:row nowrap;font-size:80%;justify-content:space-between;overflow:hidden;padding:0 4px;width:100%}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{background-position:2px 2px;background-repeat:no-repeat;-mox-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:flex;padding-right:10px;touch-action:none;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1 1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;justify-content:space-between;overflow:hidden;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;cursor:pointer;font-size:14px;opacity:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;right:2px;top:6px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{opacity:.6;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{align-self:center;font-size:85%;line-height:normal;margin-left:12px;opacity:.4;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-grow:1;flex-shrink:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{flex-shrink:4;max-width:70%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;height:18px;position:absolute;right:10px;visibility:hidden;width:18px}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{background-position:50%;background-repeat:no-repeat;background-size:80%;display:block;height:16px;margin-left:2px;width:16px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{align-items:center;display:flex;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{border:.1em solid #000;display:inline-block;height:.7em;margin:0 0 0 .3em;width:.7em}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{color:var(--vscode-editorSuggestWidget-foreground);cursor:default;display:flex;flex-direction:column}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1 1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2 1;margin:0 24px 0 0;opacity:.7;overflow:hidden;padding:4px 0 12px 5px;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{min-height:calc(1rem + 8px);padding:0;white-space:normal}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{word-wrap:break-word;white-space:pre-wrap}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-enum,.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-value{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.editor-banner{background:var(--vscode-banner-background);box-sizing:border-box;cursor:default;display:flex;font-size:12px;height:26px;overflow:visible;width:100%}.editor-banner .icon-container{align-items:center;display:flex;flex-shrink:0;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-position:50%;background-repeat:no-repeat;background-size:16px;margin:0 6px 0 10px;padding:0;width:16px}.editor-banner .message-container{align-items:center;display:flex;line-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-banner .message-container p{margin-block-end:0;margin-block-start:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{margin:2px 8px;padding:0 12px;width:inherit}.editor-banner .message-actions-container a{margin-left:12px;padding:3px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-editor .unicode-highlight{background-color:var(--vscode-editorUnicodeHighlight-background);border:1px solid var(--vscode-editorUnicodeHighlight-border);box-sizing:border-box}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);border:1px solid var(--vscode-editor-selectionHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);border:1px solid var(--vscode-editor-wordHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);border:1px solid var(--vscode-editor-wordHighlightStrongBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);border:1px solid var(--vscode-editor-wordHighlightTextBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-bottom-style:solid;border-bottom-width:0;border-top-style:solid;border-top-width:0;position:relative}.monaco-editor .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MyIgaGVpZ2h0PSIzNiIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjNDI0MjQyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOHYyOC4wMmg0NC4wMjh6TTQuMDA4LjAwOEE0LjAwMyA0LjAwMyAwIDAgMCAuMDA1IDQuMDF2MjguMDJhNC4wMDMgNC4wMDMgMCAwIDAgNC4wMDMgNC4wMDJoNDQuMDI4YTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzLTQuMDAyVjQuMDFBNC4wMDMgNC4wMDMgMCAwIDAgNDguMDM2LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJ6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnptNC4wMDIgMGg0LjAwM3Y0LjAwM2gtNC4wMDN6bTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM3ptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzem00LjAwMyAwaDIwLjAxM3Y0LjAwM0gxNi4wMTZ6bTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzeiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg1M3YzNkgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px;height:36px;margin:0;min-height:0;min-width:0;overflow:hidden;padding:0;position:absolute;resize:none;width:58px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MyIgaGVpZ2h0PSIzNiIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjQzVDNUM1IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOHYyOC4wMmg0NC4wMjh6TTQuMDA4LjAwOEE0LjAwMyA0LjAwMyAwIDAgMCAuMDA1IDQuMDF2MjguMDJhNC4wMDMgNC4wMDMgMCAwIDAgNC4wMDMgNC4wMDJoNDQuMDI4YTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzLTQuMDAyVjQuMDFBNC4wMDMgNC4wMDMgMCAwIDAgNDguMDM2LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJ6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnptNC4wMDIgMGg0LjAwM3Y0LjAwM2gtNC4wMDN6bTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM3ptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzem00LjAwMyAwaDIwLjAxM3Y0LjAwM0gxNi4wMTZ6bTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzeiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg1M3YzNkgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==) 50% no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);padding:10px;user-select:text;-webkit-user-select:text;z-index:50}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{background-color:var(--vscode-editorHoverWidget-border);border:0;height:1px}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{float:right;font-size:60%;font-weight:400}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#dedede66;border:1px solid;border-color:#ccc6 #ccc6 #bababa66;box-shadow:inset 0 -1px 0 #bababa66;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:initial;border:1px solid #6fc3df;box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:initial;border:1px solid #0f4a85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:1px solid;border-color:#3339 #3339 #4449;box-shadow:inset 0 -1px 0 #4449;color:#ccc}.monaco-editor{--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace;font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;top:0;width:1px}.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-diff-editor button:focus,.monaco-diff-editor input[type=button]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-diff-editor select:focus,.monaco-diff-editor textarea:focus,.monaco-editor{opacity:1;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-style:solid;outline-width:1px}.action-widget{background-color:var(--vscode-editorActionList-background);border:1px solid var(--vscode-editorWidget-border)!important;border-radius:0;border-radius:5px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorActionList-foreground);display:block;font-size:13px;max-width:80vw;min-width:160px;padding:4px;width:100%;z-index:40}.context-view-block{z-index:-1}.context-view-block,.context-view-pointerBlock{cursor:auto;height:100%;left:0;position:fixed;top:0;width:100%}.context-view-pointerBlock{z-index:2}.action-widget .monaco-list{border:0!important;user-select:none;-webkit-user-select:none}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{border-radius:4px;cursor:pointer;padding:0 10px;touch-action:none;white-space:nowrap;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-editorActionList-focusBackground)!important;color:var(--vscode-editorActionList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder,#0000);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-size:12px;font-weight:600}.action-widget .monaco-list-row.group-header:not(:first-of-type){margin-top:2px}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before,.action-widget .monaco-list .option-disabled:before{-webkit-touch-callout:none;background-color:initial!important;cursor:default!important;outline:0 solid!important;-webkit-user-select:none;user-select:none}.action-widget .monaco-list-row.action{align-items:center;display:flex;gap:8px}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1 1;overflow:hidden;text-overflow:ellipsis}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom:1px var(--vscode-keybindingLabel-bottomBorder);border-left-width:1px;border-radius:3px;border-right-width:1px;border-style:solid;border-top-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground)}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorActionList-background);border-top:1px solid var(--vscode-editorHoverWidget-border);margin-top:2px}.action-widget .action-widget-action-bar:before{content:"";display:block;width:100%}.action-widget .action-widget-action-bar .actions-container{padding:3px 8px 0}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:initial!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-action-bar .action-item.menu-entry .action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-action-bar .action-item.menu-entry.text-only .action-label{border-radius:2px;color:var(--vscode-descriptionForeground);overflow:hidden}.monaco-action-bar .action-item.menu-entry.text-only.use-comma:not(:last-of-type) .action-label:after{content:", "}.monaco-action-bar .action-item.menu-entry.text-only+.action-item:not(.text-only)>.monaco-dropdown .action-label{color:var(--vscode-descriptionForeground)}.monaco-dropdown-with-default{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-dropdown-with-default:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.quick-input-widget{-webkit-app-region:no-drag;border-radius:6px;left:50%;margin-left:-300px;position:absolute;width:600px;z-index:2550}.quick-input-titlebar{align-items:center;border-top-left-radius:5px;border-top-right-radius:5px;display:flex}.quick-input-left-action-bar{display:flex;flex:1 1;margin-left:4px}.quick-input-inline-action-bar{margin:2px 0 0 5px}.quick-input-title{overflow:hidden;padding:3px 0;text-align:center;text-overflow:ellipsis}.quick-input-right-action-bar{display:flex;flex:1 1;margin-right:4px}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{flex:1 1;margin:4px 2px}.quick-input-header{display:flex;padding:8px 6px 2px}.quick-input-widget.hidden-input .quick-input-header{margin-bottom:0;padding:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{display:flex;flex-grow:1;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{left:-10000px;position:absolute}.quick-input-count{align-items:center;align-self:center;display:flex;position:absolute;right:4px}.quick-input-count .monaco-count-badge{border-radius:2px;line-height:normal;min-height:auto;padding:2px 4px;vertical-align:middle}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{align-items:center;display:flex;font-size:11px;height:25px;padding:0 6px}.quick-input-message{margin-top:-1px;overflow-wrap:break-word;padding:5px}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{max-height:440px;overflow:hidden;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;display:flex;overflow:hidden;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-style:solid;border-top-width:1px}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{display:flex;flex:1 1;height:100%;overflow:hidden}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{align-items:center;background-position:0;background-repeat:no-repeat;background-size:16px;display:flex;height:22px;justify-content:center;padding-right:6px;width:16px}.quick-input-list .quick-input-list-rows{display:flex;flex:1 1;flex-direction:column;height:100%;margin-left:5px;overflow:hidden;text-overflow:ellipsis}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{align-items:center;display:flex}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1 1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{line-height:normal;opacity:.7;overflow:hidden;text-overflow:ellipsis}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{background-color:unset;color:var(--vscode-list-highlightForeground)!important;font-weight:700}.quick-input-list .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight{color:var(--vscode-list-focusHighlightForeground)!important}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0 1;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:2px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px;margin-top:1px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.quick-input-list .quick-input-list-separator-as-item{font-size:12px;padding:4px 6px}.quick-input-list .quick-input-list-separator-as-item .label-name{font-weight:600}.quick-input-list .quick-input-list-separator-as-item .label-description{opacity:1!important}.quick-input-list .monaco-tree-sticky-row .quick-input-list-entry.quick-input-list-separator-as-item.quick-input-list-separator-border{border-top-style:none}.quick-input-list .monaco-tree-sticky-row{padding:0 5px}.quick-input-list .monaco-tl-twistie{display:none!important}.extension-editor .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.markers-panel .marker-icon .codicon.codicon-error,.markers-panel .marker-icon.error,.monaco-editor .zone-widget .codicon.codicon-error,.preferences-editor .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.extension-editor .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.markers-panel .marker-icon .codicon.codicon-warning,.markers-panel .marker-icon.warning,.monaco-editor .zone-widget .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.extension-editor .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.markers-panel .marker-icon .codicon.codicon-info,.markers-panel .marker-icon.info,.monaco-editor .zone-widget .codicon.codicon-info,.preferences-editor .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.ydb-navigation-tree-view-empty{color:var(--g-color-text-secondary);font-style:italic}.ydb-navigation-tree-view-error{color:var(--g-color-text-danger)}.ydb-navigation-tree-view-loader{align-items:center;display:flex;height:24px;justify-content:center;width:20px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3456.a5760e03.chunk.css b/ydb/core/viewer/monitoring/static/css/3456.a5760e03.chunk.css new file mode 100644 index 0000000000..76ca558883 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/3456.a5760e03.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}.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-controls{align-items:flex-end;display:flex;flex:0 0 40px;gap:24px;justify-content:space-between;min-height:40px;padding:5px 0}.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-divider{background-color:var(--g-color-line-generic);height:100%;margin:0 4px;width:1px}.kv-query-execution-status{align-items:center;color:var(--g-color-text-complementary);display:flex;gap:4px}.kv-query-execution-status__result-status-icon{color:var(--g-color-text-positive)}.kv-query-execution-status__result-status-icon_error{color:var(--g-color-text-danger)}.kv-query-execution-status__query-settings-icon{color:var(--g-color-text-hint)}.cancel-query-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-duration{align-items:center;color:var(--g-color-text-complementary);display:flex;margin-left:10px}.ydb-query-duration__item-with-popover{display:flex;white-space:nowrap}.ydb-query-duration__popover{align-items:center;display:flex}.ydb-query-duration__popover-content{max-width:300px}.ydb-query-duration__popover-button{display:flex}.ydb-query-settings-banner{margin:var(--g-spacing-1) var(--g-spacing-5)}.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:15px 10px}.ydb-query-result-sets-viewer__tabs{padding-left:10px}.ydb-query-result-sets-viewer__head{margin-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__row-count{margin-left:var(--g-spacing-1)}.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:12px 20px;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/371.01f04f12.chunk.css b/ydb/core/viewer/monitoring/static/css/371.01f04f12.chunk.css deleted file mode 100644 index f380b6f52b..0000000000 --- a/ydb/core/viewer/monitoring/static/css/371.01f04f12.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.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)}.basic-node-viewer__link,.link{color:var(--g-color-text-link);text-decoration:none}.basic-node-viewer__link:hover,.link:hover{color:var(--g-color-text-link-hover)}.basic-node-viewer{align-items:center;display:flex;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:15px 0}.basic-node-viewer__title{font-weight:600;margin:0 20px 0 0;text-transform:uppercase}.basic-node-viewer__id{margin:0 15px 0 24px}.basic-node-viewer__label{color:var(--g-color-text-hint);line-height:18px;margin-right:10px;white-space:nowrap}.basic-node-viewer__link{margin-left:5px}.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__common-info{align-items:stretch;display:flex;flex-direction:column;justify-content:flex-start}.full-node-viewer__section{border-radius:10px}.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-weight:600;margin:15px 0 10px}.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}.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-pdisk-info__links,.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.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{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.node__header{margin:16px 20px}.node__content{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;position:relative}.node__storage{height:100%;overflow:auto;padding:0 20px}.node__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;padding:0 20px}.node__tab{margin-right:40px;text-decoration:none}.node__tab:last-child{margin-right:0}.node__tab:first-letter{text-transform:uppercase}.node__overview-wrapper{padding:0 20px 20px}.node__node-page-wrapper{height:100%;padding:20px}.node__error{padding:0 20px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/4187.cac9847e.chunk.css b/ydb/core/viewer/monitoring/static/css/4187.cac9847e.chunk.css deleted file mode 100644 index 25326810c8..0000000000 --- a/ydb/core/viewer/monitoring/static/css/4187.cac9847e.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)}.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-tree{height:100%;position:relative;width:100%}.ydb-json-tree__tree{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;width:100%}.ydb-json-tree__tree .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.ydb-json-tree__tree .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.ydb-json-tree__tree :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.ydb-json-tree__tree .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.ydb-json-tree__tree .json-inspector__key{color:var(--g-color-text-misc)}.ydb-json-tree__tree .json-inspector__leaf{padding-left:20px;position:relative}.ydb-json-tree__tree .json-inspector__leaf_root{padding-left:0}.ydb-json-tree__tree .json-inspector__line{padding-left:20px}.ydb-json-tree__tree .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.ydb-json-tree__tree .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.ydb-json-tree__tree .json-inspector__value_helper{color:var(--g-color-text-secondary)}.ydb-json-tree__tree .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.ydb-json-tree__tree .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.ydb-json-tree__tree .json-inspector__show-original:hover:after,.ydb-json-tree__tree .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.ydb-json-tree__tree .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.ydb-json-tree__case{left:308px;position:absolute;top:0}.ydb-json-tree .json-inspector__search{height:26px}.ydb-describe__message-container{padding:15px 0}.ydb-describe__result{display:flex;flex:0 0 auto;overflow:auto;padding:0 20px 20px 0;position:relative}.ydb-describe__copy{left:340px;position:absolute}.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__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before,.issue-tree__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:""}.issue-tree__inspector .json-inspector__line:hover:after{background:#0000}.issue-tree__inspector .json-inspector__show-original:hover:after,.issue-tree__inspector .json-inspector__show-original:hover:before{color:#0000}.issue-tree__inspector .json-inspector__value_helper{display:none}.issue-tree__inspector .json-inspector__value{overflow:hidden;word-break:break-all}.issue-tree__inspector .json-inspector__value>span{-webkit-user-select:all;user-select:all}.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}.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-controls{align-items:flex-end;display:flex;flex:0 0 40px;gap:24px;justify-content:space-between;min-height:40px;padding:5px 0}.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-divider{background-color:var(--g-color-line-generic);height:100%;margin:0 4px;width:1px}.kv-query-execution-status{align-items:center;color:var(--g-color-text-complementary);display:flex;gap:4px}.kv-query-execution-status__result-status-icon{color:var(--g-color-text-positive)}.kv-query-execution-status__result-status-icon_error{color:var(--g-color-text-danger)}.kv-query-execution-status__query-settings-icon{color:var(--g-color-text-hint)}.cancel-query-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-duration{align-items:center;color:var(--g-color-text-complementary);display:flex;margin-left:10px}.ydb-query-duration__item-with-popover{display:flex;white-space:nowrap}.ydb-query-duration__popover{align-items:center;display:flex}.ydb-query-duration__popover-content{max-width:300px}.ydb-query-duration__popover-button{display:flex}.ydb-query-settings-banner{margin:var(--g-spacing-1) var(--g-spacing-5)}.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__inspector{height:100%;overflow-y:auto;padding:15px 10px;width:100%}.ydb-query-result-error__message{padding:15px 10px}.ydb-query-result-sets-viewer__tabs{padding-left:10px}.ydb-query-result-sets-viewer__head{margin-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__row-count{margin-left:var(--g-spacing-1)}.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:12px 20px;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__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/4905.028ad14b.chunk.css b/ydb/core/viewer/monitoring/static/css/4905.028ad14b.chunk.css new file mode 100644 index 0000000000..ed93855066 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/4905.028ad14b.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-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-pdisk-info__links,.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.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/2512.19e3e12f.chunk.css b/ydb/core/viewer/monitoring/static/css/5652.261c3a7a.chunk.css index f085c20571..c18442e657 100644 --- a/ydb/core/viewer/monitoring/static/css/2512.19e3e12f.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/5652.261c3a7a.chunk.css @@ -1 +1 @@ -@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__tablets .data-table__sticky_moving{top:40px!important}.ydb-cluster .ydb-table-with-controls-layout{--data-table-sticky-top-offset:102px}
\ No newline at end of file +@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/684.90fbb646.chunk.css b/ydb/core/viewer/monitoring/static/css/7145.90fbb646.chunk.css index 24b6299ee0..24b6299ee0 100644 --- a/ydb/core/viewer/monitoring/static/css/684.90fbb646.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/7145.90fbb646.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/6030.fd13e90a.chunk.css b/ydb/core/viewer/monitoring/static/css/8155.fd13e90a.chunk.css index f18dd07902..f18dd07902 100644 --- a/ydb/core/viewer/monitoring/static/css/6030.fd13e90a.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/8155.fd13e90a.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/985.8e5e0423.chunk.css b/ydb/core/viewer/monitoring/static/css/985.8e5e0423.chunk.css deleted file mode 100644 index c05c0ec4d3..0000000000 --- a/ydb/core/viewer/monitoring/static/css/985.8e5e0423.chunk.css +++ /dev/null @@ -1,3 +0,0 @@ -@charset "UTF-8";.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}.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}.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)}.json-inspector,.json-inspector__selection{font:14px/1.4 Consolas,monospace}.json-inspector__leaf{padding-left:10px}.json-inspector__line{cursor:default;display:block;position:relative}.json-inspector__line:after{bottom:0;content:"";left:-200px;pointer-events:none;position:absolute;right:-50px;top:0;z-index:-1}.json-inspector__line:hover:after{background:#0000000f}.json-inspector__leaf_composite>.json-inspector__line{cursor:pointer}.json-inspector__flatpath,.json-inspector__radio{display:none}.json-inspector__value{margin-left:5px}.json-inspector__search{margin:0 10px 10px 0;min-width:300px;padding:2px}.json-inspector__key{color:#505050}.json-inspector__not-found,.json-inspector__value_helper,.json-inspector__value_null{color:#b0b0b0}.json-inspector__value_string{color:#798953}.json-inspector__value_boolean{color:#75b5aa}.json-inspector__value_number{color:#d28445}.json-inspector__hl{background:#ff0;border-radius:2px;box-shadow:0 -1px 0 2px #ff0}.json-inspector__show-original{color:#666;cursor:pointer;display:inline-block;padding:0 6px}.json-inspector__show-original:hover{color:#111}.json-inspector__show-original:before{content:"⥂"}.json-inspector__show-original:hover:after{content:" expand"}.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)}.chartkit-loader{align-items:center;display:flex;justify-content:center}.chartkit,.chartkit-loader{height:100%;width:100%}.chartkit_mobile .chartkit-scrollable-node{max-height:3000px}.chartkit-theme_common{--highcarts-navigator-border:var(--g-color-line-generic);--highcarts-navigator-track:var(--g-color-base-generic);--highcarts-navigator-body:var(--g-color-scroll-handle);--highcharts-series-border:var(--g-color-base-background);--highcharts-grid-line:var(--g-color-line-generic);--highcharts-axis-line:var(--g-color-line-generic);--highcharts-tick:var(--g-color-line-generic);--highcharts-title:var(--g-color-text-primary);--highcharts-axis-labels:var(--g-color-text-secondary);--highcharts-data-labels:var(--g-color-text-secondary);--highcharts-plot-line-label:var(--g-color-text-secondary);--highcharts-legend-item:var(--g-color-text-secondary);--highcharts-legend-item-hover:var(--g-color-text-primary);--highcharts-legend-item-hidden:var(--g-color-text-hint);--highcharts-floating-bg:var(--g-color-infographics-tooltip-bg);--highcharts-tooltip-text:var(--g-color-text-primary);--highcharts-tooltip-bg:var(--highcharts-floating-bg);--highcharts-tooltip-alternate-bg:var(--g-color-base-generic);--highcharts-tooltip-text-complementary:var(--g-color-text-secondary);--highcharts-holiday-band:var(--g-color-base-generic)}.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}.g-card{--_--background-color:#0000;--_--border-color:#0000;--_--border-width:0;--_--box-shadow:none;background-color:var(--g-card-background-color,var(--_--background-color));border:var(--g-card-border-width,var(--_--border-width)) solid var(--g-card-border-color,var(--_--border-color));border-radius:var(--g-card-border-radius,var(--_--border-radius));box-shadow:var(--g-card-box-shadow,var(--_--box-shadow));box-sizing:border-box;outline:none}.g-card_theme_normal{--_--border-color:var(--g-color-line-generic);--_--background-color:var(--g-color-base-generic)}.g-card_theme_info{--_--border-color:var(--g-color-line-info);--_--background-color:var(--g-color-base-info-light)}.g-card_theme_success{--_--border-color:var(--g-color-line-positive);--_--background-color:var(--g-color-base-positive-light)}.g-card_theme_warning{--_--border-color:var(--g-color-line-warning);--_--background-color:var(--g-color-base-warning-light)}.g-card_theme_danger{--_--border-color:var(--g-color-line-danger);--_--background-color:var(--g-color-base-danger-light)}.g-card_theme_utility{--_--border-color:var(--g-color-line-utility);--_--background-color:var(--g-color-base-utility-light)}.g-card_view_clear,.g-card_view_outlined{--_--background-color:#0000}.g-card_view_outlined{--_--border-width:1px}.g-card_type_action{--_--background-color:var(--g-color-base-float);--_--box-shadow:0px 1px 5px var(--g-color-sfx-shadow)}.g-card_type_action:after{border-radius:var(--g-card-border-radius,var(--_--border-radius));inset:0;pointer-events:none;position:absolute}.g-card_type_action.g-card_clickable{cursor:pointer;position:relative}.g-card_type_action.g-card_clickable:hover{--_--box-shadow:0px 3px 10px var(--g-color-sfx-shadow)}.g-card_type_action.g-card_clickable:focus-visible:after{content:"";outline:2px solid var(--g-color-line-focus)}.g-card_type_selection{--_--border-width:1px;--_--border-color:var(--g-color-line-generic);position:relative}.g-card_type_selection:before{inset:-1px}.g-card_type_selection:after,.g-card_type_selection:before{border-radius:var(--g-card-border-radius,var(--_--border-radius));pointer-events:none;position:absolute}.g-card_type_selection:after{inset:0}.g-card_type_selection.g-card_clickable{cursor:pointer}.g-card_type_selection.g-card_clickable:hover{--_--border-color:#0000}.g-card_type_selection.g-card_clickable:hover:not(.g-card_selected):before{border:2px solid var(--g-color-line-brand);content:"";opacity:.5}.g-card_type_selection.g-card_clickable:hover:focus-visible:before{border-color:#0000}.g-card_type_selection.g-card_clickable:focus-visible:after{content:"";outline:2px solid var(--g-color-line-focus)}.g-card_type_selection.g-card_selected:not(.g-card_disabled){--_--border-color:#0000}.g-card_type_selection.g-card_selected:not(.g-card_disabled):before{border:2px solid var(--g-color-line-brand);content:""}.g-card_type_selection.g-card_view_clear{--_--border-color:#0000}.g-card_type_container.g-card_view_raised{--_--background-color:var(--g-color-base-float)}.g-card_type_container.g-card_view_raised.g-card_size_m{--_--box-shadow:0px 1px 5px var(--g-color-sfx-shadow)}.g-card_type_container.g-card_view_raised.g-card_size_l{--_--box-shadow:0px 1px 6px var(--g-color-sfx-shadow-light),1px 3px 13px var(--g-color-sfx-shadow-light)}.g-card_size_m{--_--border-radius:8px}.g-card_size_l{--_--border-radius:16px}.g-date-relative-range-date-picker-control__input{caret-color:#0000}.g-date-relative-range-date-picker-control__input_mobile{pointer-events:none}.g-date-relative-range-date-picker-control__mobile-trigger{--_--g-date-mobile-trigger-clear-width:0px;--_--g-date-mobile-trigger-errors-width:0px;--_--g-date-mobile-trigger-button-width:24px;inset:0;inset-inline-end:calc(var(--g-spacing-2) + var(--_--g-date-mobile-trigger-button-width) + var(--_--g-date-mobile-trigger-clear-width) + var(--_--g-date-mobile-trigger-errors-width));opacity:0;position:absolute}.g-date-relative-range-date-picker-control__mobile-trigger_size_s{--_--g-date-mobile-trigger-button-width:20px}.g-date-relative-range-date-picker-control__mobile-trigger_size_l{--_--g-date-mobile-trigger-button-width:28px}.g-date-relative-range-date-picker-control__mobile-trigger_size_xl{--_--g-date-mobile-trigger-button-width:36px}.g-date-relative-range-date-picker-control__mobile-trigger_has-clear{--_--g-date-mobile-trigger-clear-width:calc(var(--_--g-date-mobile-trigger-button-width) + 2px)}.g-date-relative-range-date-picker-control__mobile-trigger_has-errors{--_--g-date-mobile-trigger-errors-width:calc(var(--_--g-date-mobile-trigger-button-width) + 2px)}.g-date-relative-range-date-picker-presets-doc__button{--g-button-background-color-hover:#0000}.g-date-relative-range-date-picker-presets-doc__content{--g-popover-max-width:"none"}.g-date-relative-range-date-picker-presets-doc__table_size_xl{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-date-relative-range-date-picker-presets-doc__table>table{width:100%}.g-table,.g-table__scroll-container{overflow:auto;position:relative}.g-table__scroll-container{-ms-overflow-style:none;scrollbar-width:none}.g-table__scroll-container::-webkit-scrollbar{display:none}.g-table__horizontal-scroll-bar{margin-block-start:-1px;overflow-x:auto}.g-table__horizontal-scroll-bar-inner{height:1px;position:relative}.g-table__horizontal-scroll-bar-inner:before{background-color:#ffffff03;content:"";height:1px;inset-block-start:0;inset-inline-start:0;position:absolute;width:1px}.g-table__horizontal-scroll-bar_sticky-horizontal-scroll{position:sticky;z-index:3}.g-table__table{border-collapse:initial;border-spacing:0}.g-table__table_width_max{width:100%}.g-table__cell{border-block-end:1px solid var(--g-color-line-generic);box-sizing:initial;line-height:18px;overflow-wrap:break-word;padding:11px var(--g-spacing-2) 10px;text-align:start}.g-table__cell:first-child{padding-inline-start:0}.g-table__cell:last-child{padding-inline-end:0}.g-table__cell:not(.g-table__cell_word-wrap){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-table__cell_align_center{text-align:center}.g-table__cell_align_end{text-align:end}.g-table .g-table__cell_sticky_end,.g-table .g-table__cell_sticky_start{background:var(--g-color-base-background);position:sticky;z-index:2}.g-table__cell_border_right{border-inline-end:1px solid var(--g-color-line-generic)}.g-table__cell_edge-padding:first-child{padding-inline-start:var(--g-spacing-3)}.g-table__cell_edge-padding:last-child{padding-inline-end:var(--g-spacing-3)}.g-table__row_vertical-align_top{vertical-align:top}.g-table__row_vertical-align_middle{vertical-align:middle}.g-table__row_empty .g-table__cell{text-align:center}.g-table__body .g-table__row:last-child .g-table__cell{border-block-end-color:#0000}.g-table__head .g-table__cell{font-weight:var(--g-text-accent-font-weight)}.g-table__body .g-table__row_interactive:hover{background-color:var(--g-color-base-simple-hover-solid);cursor:pointer}.g-table__body .g-table__row_interactive:hover .g-table__cell_sticky_end,.g-table__body .g-table__row_interactive:hover .g-table__cell_sticky_start{background:var(--g-color-base-simple-hover-solid)}.g-table__body .g-table__row_disabled{opacity:.3}.g-table_with-primary .g-table__body .g-table__cell{color:var(--g-color-text-secondary)}.g-table_with-primary .g-table__body .g-table__cell_primary{color:var(--g-color-text-primary)}.g-table_with-sticky-scroll{overflow:visible}.g-date-relative-range-date-picker-presets{--g-list-item-padding:0 var(--_--g-date-picker-presets-padding,0)}.g-date-relative-range-date-picker-presets__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px var(--g-color-line-generic);display:flex;gap:var(--g-spacing-2);padding-inline:var(--_--g-date-picker-presets-padding,0)}.g-date-relative-range-date-picker-presets__list-container{outline:none}.g-date-relative-range-date-picker-presets__doc{margin-inline-start:auto}.g-date-relative-range-date-picker-presets__content{height:128px;overflow:auto}.g-date-relative-range-date-picker-presets_size_l .g-date-relative-range-date-picker-presets__content{height:144px}.g-date-relative-range-date-picker-presets_size_xl .g-date-relative-range-date-picker-presets__content{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:162px;line-height:var(--g-text-body-2-line-height)}.g-date-relative-range-date-picker-zones__control{--g-button-background-color-hover:#0000}.g-date-relative-range-date-picker-dialog__content{--_--popup-content-padding:var(--g-spacing-2);--_--g-date-picker-presets-padding:var(--_--popup-content-padding);padding:var(--_--popup-content-padding)}.g-date-relative-range-date-picker-dialog__content_mobile{--_--popup-content-padding:var(--g-spacing-5)}.g-date-relative-range-date-picker-dialog__content:not(.g-date-relative-range-date-picker-dialog__content_mobile){width:310px}.g-date-relative-range-date-picker-dialog__content_size_xl:not(.g-date-relative-range-date-picker-dialog__content_mobile){width:380px}.g-date-relative-range-date-picker-dialog__pickers{display:flex;flex-direction:column;gap:var(--g-spacing-2)}.g-date-relative-range-date-picker-dialog__pickers .g-text-input__label{width:40px}.g-date-relative-range-date-picker-dialog__content_size_xl .g-date-relative-range-date-picker-dialog__pickers .g-text-input__label{width:50px}.g-date-relative-range-date-picker-dialog__apply{margin-block-start:var(--g-spacing-2)}.g-date-relative-range-date-picker-dialog__zone{border-block-start:1px solid var(--g-color-line-generic);margin-block:var(--g-spacing-2) calc(var(--_--popup-content-padding)*-1)}.g-date-relative-range-date-picker-dialog__presets,.g-date-relative-range-date-picker-dialog__zone{margin-inline:calc(var(--_--popup-content-padding)*-1)}.g-date-mobile-calendar{border:none;box-sizing:border-box;cursor:pointer;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;min-width:100%;opacity:0;padding:0;position:absolute;z-index:1}.g-date-mobile-calendar::-webkit-calendar-picker-indicator{cursor:pointer;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;min-width:100%;padding:0;position:absolute}.g-date-stub-button{display:inline-block;height:24px;position:relative;width:24px}.g-date-stub-button_size_xs{height:20px;width:20px}.g-date-stub-button_size_m{height:28px;width:28px}.g-date-stub-button_size_l{height:36px;width:36px}.g-date-stub-button__icon{align-items:center;color:var(--g-color-text-secondary);display:flex;inset:0;justify-content:center;position:absolute}.g-date-relative-date-picker{display:inline-flex;outline:none;position:relative}.g-date-relative-date-picker__input_mobile{pointer-events:none}.g-date-relative-date-picker__field{width:100%}.g-date-relative-date-picker__popup-content{outline:none}.g-date-relative-date-picker__time-field{width:100%}.g-date-relative-date-picker__time-field-wrapper{padding:10px}.g-date-calendar{--_--calendar-padding:var(--g-date-calendar-padding,8px);--_--calendar-day-size:var(--g-date-calendar-day-size,28px);--_--calendar-days-gap:var(--g-date-calendar-days-gap,2px);--_--calendar-width:calc(var(--_--calendar-day-size)*7 + var(--_--calendar-days-gap)*6 + var(--_--calendar-padding)*2);--_--calendar-grid-height:calc(var(--_--calendar-day-size)*7 + var(--_--calendar-days-gap)*5 + var(--_--calendar-padding));display:inline-block;width:var(--_--calendar-width)}.g-date-calendar_size_l{--g-date-calendar-day-size:36px}.g-date-calendar_size_xl{--g-date-calendar-day-size:42px;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-date-calendar__header{display:flex;padding:var(--_--calendar-padding) var(--_--calendar-padding) 0}.g-date-calendar__years-label{color:var(--g-color-text-secondary)}.g-date-calendar__controls{margin-inline-start:auto}.g-date-calendar__control-icon{transform:scaleX(var(--g-flow-direction))}.g-date-calendar__grid{height:var(--_--calendar-grid-height);overflow:hidden;position:relative;-webkit-user-select:none;user-select:none;width:100%}.g-date-calendar__content{box-sizing:border-box;display:grid;grid-template-rows:var(--_--calendar-day-size) 1fr;height:100%;inset-block-start:0;inset-inline-start:0;padding:0 var(--_--calendar-padding) var(--_--calendar-padding);position:absolute;width:100%}@keyframes calendar-forward{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes calendar-backward{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes calendar-zoom-in-showing{0%{opacity:0;transform:scale(2)}to{opacity:1;transform:scale(1)}}@keyframes calendar-zoom-in-hiding{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes calendar-zoom-out-showing{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes calendar-zoom-out-hiding{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.g-date-calendar__content_animation_forward{animation:calendar-forward .25s ease forwards;transform:translateX(-100%)}.g-date-calendar__content_animation_forward.g-date-calendar__current-state{inset-inline-start:calc(var(--g-flow-direction)*-100%)}.g-date-calendar__content_animation_backward{animation:calendar-backward .25s ease forwards;transform:translateX(0)}.g-date-calendar__content_animation_backward.g-date-calendar__current-state{inset-inline-start:calc(var(--g-flow-direction)*100%)}.g-date-calendar__content_animation_zoom-in{transform:scale()}.g-date-calendar__content_animation_zoom-in.g-date-calendar__previous-state{animation:calendar-zoom-in-hiding .25s ease forwards}.g-date-calendar__content_animation_zoom-in.g-date-calendar__current-state{animation:calendar-zoom-in-showing .25s ease forwards}.g-date-calendar__content_animation_zoom-out{transform:scale()}.g-date-calendar__content_animation_zoom-out.g-date-calendar__current-state{animation:calendar-zoom-out-showing .25s ease forwards}.g-date-calendar__content_animation_zoom-out.g-date-calendar__previous-state{animation:calendar-zoom-out-hiding .25s ease forwards}@media (update:slow),screen and (prefers-reduced-motion:reduce){.g-date-calendar__content[class]{animation-duration:.001ms}}.g-date-calendar__grid-rowgroup{display:grid;gap:var(--_--calendar-days-gap)}.g-date-calendar__grid-rowgroup_mode_months,.g-date-calendar__grid-rowgroup_mode_quarters,.g-date-calendar__grid-rowgroup_mode_years{grid-row:1/-1;padding:12px 0 0}.g-date-calendar__grid-rowgroup-header{align-self:center}.g-date-calendar__grid-row{display:grid;gap:var(--_--calendar-days-gap);grid-auto-columns:1fr;grid-auto-flow:column}.g-date-calendar__weekday{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.g-date-calendar__weekday_weekend{color:var(--g-color-text-danger)}.g-date-calendar__button{align-items:center;border-radius:4px;cursor:pointer;display:flex;font-weight:var(--g-text-subheader-font-weight);height:100%;justify-content:center;outline:none;position:relative;width:100%}.g-date-calendar__button:focus{box-shadow:0 0 0 2px var(--g-color-line-misc)}.g-date-calendar__button:focus:not(:focus-visible){box-shadow:none}.g-date-calendar__button:hover{background-color:var(--g-color-base-generic)}.g-date-calendar__button_selected[class]{background-color:var(--g-color-base-selection)}.g-date-calendar__button_selected.g-date-calendar__button_selection-end,.g-date-calendar__button_selected.g-date-calendar__button_selection-start{background-color:var(--g-color-base-brand)}.g-date-calendar__button_weekend{color:var(--g-color-text-danger)}.g-date-calendar__button_out-of-boundary{font-weight:var(--g-text-body-font-weight);opacity:.6}.g-date-calendar__button_current:before{background-color:currentColor;border-radius:50%;content:"";display:block;height:4px;inset-block-start:50%;position:absolute;transform:translateY(8px);width:4px}.g-date-calendar__button_disabled{font-weight:var(--g-text-body-font-weight);opacity:.6;pointer-events:none}.g-date-calendar__button_unavailable:not(.g-date-calendar__button_disabled){background-color:var(--g-color-base-generic);cursor:default;font-weight:var(--g-text-body-font-weight);opacity:.5}.g-date-date-field{display:inline-block;width:auto}.g-date-relative-range-date-picker{display:inline-flex;position:relative}.g-date-relative-range-date-picker__value-label{display:flex;width:100%}.g-date-relative-range-date-picker__value-label>div{flex:1 0}.g-date-relative-range-date-picker__value-label-content{display:flex;flex-direction:column}.g-date-relative-range-date-picker__value-label-tooltip{--g-popover-max-width:"none"}.g-date-relative-range-date-picker__value-label-item,.g-date-relative-range-date-picker__value-label-to,.g-date-relative-range-date-picker__value-label-tz{text-align:center}.g-date-relative-range-date-picker__value-label-tz{color:var(--g-color-text-hint);margin-block-start:5px}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.g-spin{animation:g-spin 1s linear infinite;backface-visibility:hidden;display:inline-block}.g-spin__inner{border:2px solid var(--g-color-line-brand);border-end-end-radius:25px;border-inline-start:none;border-start-end-radius:25px;box-sizing:border-box;height:100%;margin-inline-start:50%;width:50%}.g-spin_size_xs{height:16px;width:16px}.g-spin_size_s{height:24px;width:24px}.g-spin_size_m{height:28px;width:28px}.g-spin_size_l{height:32px;width:32px}.g-spin_size_xl{height:36px;width:36px}@keyframes g-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.g-alert_corners_square{--g-card-border-radius:0}.g-alert__text-content{width:100%}.g-alert__actions_minContent{width:min-content}.g-alert__close-btn{flex-shrink:0}.monaco-aria-container{left:-999em;position:absolute}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border);box-sizing:border-box}.inline-editor-progress-decoration{display:inline-block;height:1em;width:1em}.inline-progress-widget{align-items:center;display:flex!important;justify-content:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{animation:none;font-size:90%!important}.inline-progress-widget:hover .icon:before{content:var(--vscode-icon-x-content);font-family:var(--vscode-icon-x-font-family)}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground);padding:2px 4px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{border:8px solid #0000;height:0!important;left:2px;position:absolute;width:0!important;z-index:1000}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);padding:1px 3px;vertical-align:middle}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.monaco-text-button{align-items:center;border:1px solid var(--vscode-button-border,#0000);border-radius:2px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;line-height:18px;padding:4px;text-align:center;width:100%}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{cursor:default;opacity:.4!important}.monaco-text-button .codicon{color:inherit!important;margin:0 .2em}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;height:28px;overflow:hidden;padding:0 4px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;overflow:hidden;width:0}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{align-items:center;display:flex;font-style:inherit;font-weight:400;justify-content:center;padding:4px 0}.monaco-button-dropdown{cursor:pointer;display:flex}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator,.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{cursor:default;padding:4px 0}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{align-items:center;border:1px solid var(--vscode-button-border,#0000);border-left-width:0!important;border-radius:0 2px 2px 0;display:flex}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{align-items:center;display:flex;flex-direction:column;margin:4px 5px}.monaco-description-button .monaco-button-description{font-size:11px;font-style:italic;padding:4px 20px}.monaco-description-button .monaco-button-description,.monaco-description-button .monaco-button-label{align-items:center;display:flex;justify-content:center}.monaco-description-button .monaco-button-description>.codicon,.monaco-description-button .monaco-button-label>.codicon{color:inherit!important;margin:0 .2em}.monaco-button-dropdown.default-colors>.monaco-button,.monaco-button.default-colors{background-color:var(--vscode-button-background);color:var(--vscode-button-foreground)}.monaco-button-dropdown.default-colors>.monaco-button:hover,.monaco-button.default-colors:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary,.monaco-button.default-colors.secondary{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover,.monaco-button.default-colors.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-bottom:1px solid var(--vscode-button-border);border-top:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}.post-edit-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-widget-border,#0000);border-radius:4px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);overflow:hidden}.post-edit-widget .monaco-button{border:none;border-radius:0;padding:2px}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}@font-face{font-display:block;font-family:codicon;src:url(../../static/media/codicon.f6283f7ccaed1249d9eb.ttf) format("truetype")}.codicon[class*=codicon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font:normal normal normal 16px/1 codicon;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-enum,.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-value{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .lightBulbWidget{align-items:center;display:flex;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget.codicon-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{content:"";display:block;height:100%;left:0;opacity:.3;position:absolute;top:0;width:100%;z-index:1}.monaco-editor .glyph-margin-widgets .cgmr[class*=codicon-gutter-lightbulb]{cursor:pointer;display:block}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-aifix-auto-fix,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-auto-fix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-list{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{height:100%;position:relative;width:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{min-width:100%;width:auto}.monaco-list-row{box-sizing:border-box;overflow:hidden;position:absolute;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list .monaco-scrollable-element>.scrollbar.vertical,.monaco-pane-view>.monaco-split-view2.vertical>.monaco-scrollable-element>.scrollbar.vertical{z-index:14}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{border-radius:10px;display:inline-block;font-size:12px;padding:1px 7px;position:absolute;z-index:1000}.monaco-list-type-filter-message{box-sizing:border-box;height:100%;left:0;opacity:.7;padding:40px 1em 1em;pointer-events:none;position:absolute;text-align:center;top:0;white-space:normal;width:100%}.monaco-list-type-filter-message:empty{display:none}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{background:#0000;opacity:1;transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{display:none;position:absolute}.monaco-scrollable-element>.shadow.top{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;display:block;height:3px;left:3px;top:0;width:100%}.monaco-scrollable-element>.shadow.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;display:block;height:100%;left:0;top:3px;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;height:3px;left:0;top:0;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box-dropdown-padding{--dropdown-padding-top:1px;--dropdown-padding-bottom:1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top:3px;--dropdown-padding-bottom:4px}.monaco-select-box-dropdown-container{box-sizing:border-box;display:none}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{font-family:var(--monaco-monospace-font);line-height:15px}.monaco-select-box-dropdown-container.visible{border-bottom-left-radius:3px;border-bottom-right-radius:3px;display:flex;flex-direction:column;overflow:hidden;text-align:left;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{align-self:flex-start;box-sizing:border-box;flex:0 0 auto;overflow:hidden;padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;padding-top:var(--dropdown-padding-top);width:100%}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-bottom:var(--dropdown-padding-bottom);padding-top:var(--dropdown-padding-top)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{float:left;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{float:left;opacity:.7;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{float:right;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{height:1px;left:-10000px;overflow:hidden;position:absolute;top:auto;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{align-self:flex-start;flex:1 1 auto;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{max-height:0;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{border-radius:2px;cursor:pointer;width:100%}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-height:18px;min-width:100px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{border-radius:5px;font-size:11px}.monaco-action-bar{height:100%;white-space:nowrap}.monaco-action-bar .actions-container{align-items:center;display:flex;height:100%;margin:0 auto;padding:0;width:100%}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{align-items:center;cursor:pointer;display:block;justify-content:center;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{align-items:center;display:flex;height:16px;width:16px}.monaco-action-bar .action-label{border-radius:5px;display:flex;font-size:11px;padding:3px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{color:var(--vscode-disabledForeground)}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #bbb;display:block;margin-left:.8em;margin-right:.8em;padding-top:1px}.monaco-action-bar .action-item .action-label.separator{background-color:#bbb;cursor:default;height:16px;margin:5px 4px!important;min-width:1px;padding:0;width:1px}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{align-items:center;display:flex;flex:1 1;justify-content:center;margin-right:10px;max-width:170px;min-width:60px;overflow:hidden}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{align-items:center;cursor:default;display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.action-widget{background-color:var(--vscode-editorActionList-background);border:1px solid var(--vscode-editorWidget-border)!important;border-radius:0;border-radius:5px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorActionList-foreground);display:block;font-size:13px;max-width:80vw;min-width:160px;padding:4px;width:100%;z-index:40}.context-view-block{z-index:-1}.context-view-block,.context-view-pointerBlock{cursor:auto;height:100%;left:0;position:fixed;top:0;width:100%}.context-view-pointerBlock{z-index:2}.action-widget .monaco-list{border:0!important;user-select:none;-webkit-user-select:none}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{border-radius:4px;cursor:pointer;padding:0 10px;touch-action:none;white-space:nowrap;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-editorActionList-focusBackground)!important;color:var(--vscode-editorActionList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder,#0000);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-size:12px;font-weight:600}.action-widget .monaco-list-row.group-header:not(:first-of-type){margin-top:2px}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before,.action-widget .monaco-list .option-disabled:before{-webkit-touch-callout:none;background-color:initial!important;cursor:default!important;outline:0 solid!important;-webkit-user-select:none;user-select:none}.action-widget .monaco-list-row.action{align-items:center;display:flex;gap:8px}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1 1;overflow:hidden;text-overflow:ellipsis}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground)}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorActionList-background);border-top:1px solid var(--vscode-editorHoverWidget-border);margin-top:2px}.action-widget .action-widget-action-bar:before{content:"";display:block;width:100%}.action-widget .action-widget-action-bar .actions-container{padding:3px 8px 0}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:initial!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-keybinding{align-items:center;display:flex;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{border-radius:3px;border-style:solid;border-width:1px;display:inline-block;font-size:11px;margin:0 2px;padding:3px 5px;vertical-align:middle}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);overflow:visible;overflow-wrap:normal;position:relative}.monaco-editor,.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);border:1px solid var(--vscode-editor-rangeHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);border:1px solid var(--vscode-editor-symbolHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{overflow:hidden;position:relative}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .margin-view-overlays>div,.monaco-editor .view-overlays>div{position:absolute;width:100%}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{background:var(--vscode-editorError-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{background:var(--vscode-editorWarning-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{background:var(--vscode-editorInfo-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground,inherit)}.monaco-editor .inputarea{background-color:initial;border:none;color:#0000;margin:0;min-height:0;min-width:0;outline:none!important;overflow:hidden;padding:0;position:absolute;resize:none;z-index:-10}.monaco-editor .inputarea.ime-input{caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground);z-index:10}.monaco-editor .margin-view-overlays .line-numbers{font-feature-settings:"tnum";bottom:0;box-sizing:border-box;cursor:default;display:inline-block;font-variant-numeric:tabular-nums;position:absolute;text-align:right;vertical-align:middle}.monaco-editor .relative-current-line-number{display:inline-block;text-align:left;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .blockDecorations-container{pointer-events:none;position:absolute;top:0}.monaco-editor .blockDecorations-block{box-sizing:border-box;position:absolute}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{box-sizing:border-box;display:block;height:100%;left:0;position:absolute;top:0}.monaco-editor - .margin-view-overlays - .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{height:100%;position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{align-items:center;display:flex;justify-content:center;position:absolute}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{box-sizing:border-box;height:100%;position:absolute}.mtkcontrol{background:#960000!important;color:#fff!important}.mtkoverflow{background-color:var(--vscode-button-background,var(--vscode-editor-background));border-color:var(--vscode-contrastBorder);border-radius:2px;border-style:solid;border-width:1px;color:var(--vscode-button-foreground,var(--vscode-editor-foreground));cursor:pointer;padding:4px}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{user-select:auto;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .lines-content>.view-lines>.view-line>span{bottom:0;position:absolute;top:0}.monaco-editor .mtkw,.monaco-editor .mtkz{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{background:#fff;position:absolute;top:0}.monaco-editor .margin-view-overlays .cldr{height:100%;position:absolute}.monaco-editor .margin-view-overlays .cmdr{height:100%;left:0;position:absolute;width:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{left:-6px;position:absolute;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{left:-1px;position:absolute;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{left:0;position:absolute;top:0}.monaco-editor .view-ruler{box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset;position:absolute;top:0}.monaco-editor .scroll-decoration{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;height:6px;left:0;position:absolute;top:0}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{box-sizing:border-box;overflow:hidden;position:absolute}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:#0000!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{background:#0000!important;border-bottom-style:solid;border-bottom-width:2px}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{background:#0000!important;border-bottom-style:solid;border-bottom-width:1px}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .mwh{color:var(--vscode-editorWhitespace-foreground)!important;position:absolute}.monaco-editor .codelens-decoration{font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);color:var(--vscode-editorCodeLens-foreground);display:inline-block;font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);overflow:hidden;padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{user-select:none;-webkit-user-select:none;vertical-align:sub;white-space:nowrap}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration>a:hover,.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);vertical-align:middle}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:.1em solid #000;box-sizing:border-box;cursor:pointer;display:inline-block;height:.8em;line-height:.8em;margin:.1em .2em 0;width:.8em}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:.1em solid #eee}.colorpicker-header{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;display:flex;height:24px;image-rendering:pixelated;position:relative}.colorpicker-header .picked-color{align-items:center;color:#fff;cursor:pointer;display:flex;flex:1 1;justify-content:center;line-height:24px;overflow:hidden;white-space:nowrap;width:240px}.colorpicker-header .picked-color .picked-color-presentation{margin-left:5px;margin-right:5px;white-space:nowrap}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{cursor:pointer;width:74px;z-index:inherit}.standalone-colorpicker{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border);cursor:pointer}.colorpicker-header .close-button-inner-div{height:100%;text-align:center;width:100%}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{flex:1 1;height:150px;min-width:220px;overflow:hidden;position:relative}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px #000c;height:9px;margin:-5px 0 0 -5px;position:absolute;width:9px}.colorpicker-body .strip{height:150px;width:25px}.colorpicker-body .standalone-strip{height:122px;width:25px}.colorpicker-body .hue-strip{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);cursor:grab;margin-left:8px;position:relative}.colorpicker-body .opacity-strip{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;cursor:grab;image-rendering:pixelated;margin-left:8px;position:relative}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{border:1px solid #ffffffb5;box-shadow:0 0 1px #000000d9;box-sizing:border-box;height:4px;left:-2px;position:absolute;top:0;width:calc(100% + 4px)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{border:1px solid #0000;border-bottom:1px solid var(--vscode-editorHoverWidget-border);display:block;overflow:hidden}.colorpicker-body .insert-button{background:var(--vscode-button-background);border:none;border-radius:2px;bottom:8px;color:var(--vscode-button-foreground);cursor:pointer;height:20px;padding:0;position:absolute;right:8px;width:58px}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .inlineSuggestionsHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;justify-content:center;min-width:19px}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-action-bar .action-item.menu-entry .action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-action-bar .action-item.menu-entry.text-only .action-label{border-radius:2px;color:var(--vscode-descriptionForeground);overflow:hidden}.monaco-action-bar .action-item.menu-entry.text-only.use-comma:not(:last-of-type) .action-label:after{content:", "}.monaco-action-bar .action-item.menu-entry.text-only+.action-item:not(.text-only)>.monaco-dropdown .action-label{color:var(--vscode-descriptionForeground)}.monaco-dropdown-with-default{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-dropdown-with-default:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}:root{--vscode-sash-size:4px;--vscode-sash-hover-size:4px}.monaco-sash{position:absolute;touch-action:none;z-index:35}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;height:100%;top:0;width:var(--vscode-sash-size)}.monaco-sash.horizontal{cursor:ns-resize;height:var(--vscode-sash-size);left:0;width:100%}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";cursor:all-scroll;display:block;height:calc(var(--vscode-sash-size)*2);position:absolute;width:calc(var(--vscode-sash-size)*2);z-index:100}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-.5);top:calc(var(--vscode-sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{bottom:calc(var(--vscode-sash-size)*-1);left:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{right:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash:before{background:#0000;content:"";height:100%;pointer-events:none;position:absolute;width:100%}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.active:before,.monaco-sash.hover:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{left:calc(50% - var(--vscode-sash-hover-size)/2);width:var(--vscode-sash-hover-size)}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - var(--vscode-sash-hover-size)/2)}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:#0ff3}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-hover{animation:fadein .1s linear;box-sizing:border-box;cursor:default;line-height:1.5em;overflow:hidden;position:absolute;user-select:text;-webkit-user-select:text;white-space:var(--vscode-hover-whiteSpace,normal)}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){word-wrap:break-word;max-width:var(--vscode-hover-maxWidth,500px)}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{border-left:0;border-right:0;box-sizing:border-box;height:1px;margin:4px -8px -4px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace,pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px;width:100%}.monaco-hover .hover-row.status-bar .actions .action-container{cursor:pointer;margin-right:16px}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .hover-row.status-bar .actions .action-container a{color:var(--vscode-textLink-foreground);-webkit-text-decoration:var(--text-link-decoration);text-decoration:var(--text-link-decoration)}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{border-bottom:1px solid #0000;color:var(--vscode-textLink-foreground);text-decoration:underline;text-underline-position:under}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{display:inline-block;margin-bottom:4px}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span.codicon{margin-bottom:2px}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{cursor:default;opacity:.4;pointer-events:none}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:space-between}.monaco-editor .peekview-widget .head .peekview-title{align-items:baseline;display:flex;font-size:13px;margin-left:20px;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename,.monaco-editor .peekview-widget .head .peekview-title .meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1 1;padding-right:2px;text-align:right}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{align-self:center;margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-bottom-style:solid;border-bottom-width:0;border-top-style:solid;border-top-width:0;position:relative}.monaco-split-view2{height:100%;position:relative;width:100%}.monaco-split-view2>.sash-container{height:100%;pointer-events:none;position:absolute;width:100%}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{height:100%;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{position:absolute;white-space:normal}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;white-space:nowrap;width:100%}.monaco-table>.monaco-split-view2{border-bottom:1px solid #0000}.monaco-table>.monaco-list{flex:1 1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{font-weight:700;height:100%;overflow:hidden;text-overflow:ellipsis;width:100%}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{border-left:1px solid #0000;content:"";left:calc(var(--vscode-sash-size)/2);position:absolute;width:0}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-custom-toggle{border:1px solid #0000;border-radius:3px;box-sizing:border-box;cursor:pointer;float:left;height:20px;margin-left:2px;overflow:hidden;padding:1px;user-select:none;-webkit-user-select:none;width:20px}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{background-size:16px!important;border:1px solid #0000;border-radius:3px;height:18px;margin-left:0;margin-right:9px;opacity:1;padding:0;width:18px}.monaco-action-bar .checkbox-action-item{align-items:center;border-radius:2px;display:flex;padding-right:2px}.monaco-action-bar .checkbox-action-item:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-action-bar .checkbox-action-item>.monaco-custom-toggle.monaco-checkbox{margin-right:4px}.monaco-action-bar .checkbox-action-item>.checkbox-label{font-size:12px}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}.monaco-inputbox{border-radius:2px;box-sizing:border-box;display:block;font-size:inherit;padding:0;position:relative}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{height:100%;position:relative;width:100%}.monaco-inputbox>.ibwrapper>.input{border:none;box-sizing:border-box;color:inherit;display:inline-block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;resize:none;width:100%}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;outline:none;scrollbar-width:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{word-wrap:break-word;box-sizing:border-box;display:inline-block;left:0;position:absolute;top:0;visibility:hidden;white-space:pre-wrap;width:100%}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{word-wrap:break-word;box-sizing:border-box;display:inline-block;font-size:12px;line-height:17px;margin-top:-1px;overflow:hidden;padding:.4em;text-align:left;width:100%}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;height:16px;width:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.hc-light .monaco-findInput.highlight-0 .controls,.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.hc-light .monaco-findInput.highlight-1 .controls,.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:#fdff00cc}to{background:#0000}}@keyframes monaco-findInput-highlight-1{0%{background:#fdff00cc}99%{background:#0000}}@keyframes monaco-findInput-highlight-dark-0{0%{background:#ffffff70}to{background:#0000}}@keyframes monaco-findInput-highlight-dark-1{0%{background:#ffffff70}99%{background:#0000}}.monaco-tl-row{align-items:center;display:flex;height:100%;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;left:16px;pointer-events:none;position:absolute;top:0}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{border-left:1px solid #0000;box-sizing:border-box;display:inline-block;height:100%}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{align-items:center;display:flex!important;flex-shrink:0;font-size:10px;justify-content:center;padding-right:6px;text-align:right;transform:translateX(3px);width:16px}.monaco-tl-contents{flex:1 1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;display:flex;margin:0 6px;max-width:200px;padding:3px;position:absolute;top:0;z-index:100}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{align-items:center;cursor:grab;display:flex!important;justify-content:center;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1 1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{background-color:var(--vscode-sideBar-background);height:0;left:0;position:absolute;top:0;width:100%;z-index:13}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{background-color:var(--vscode-sideBar-background);opacity:1!important;overflow:hidden;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row:hover{background-color:var(--vscode-list-hoverBackground)!important;cursor:pointer}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty,.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty .monaco-tree-sticky-container-shadow{display:none}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow{bottom:-3px;height:0;left:0;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex="0"]:focus{outline:none}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-bottom-width:1px;border-top-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;padding:3em 0;text-align:center;width:100%}.monaco-editor .reference-zone-widget .ref-tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground);line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{overflow:hidden;text-overflow:ellipsis}.monaco-editor .reference-zone-widget .ref-tree .reference-file{color:var(--vscode-peekViewResult-fileForeground);display:inline-flex;height:100%;width:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-left:auto;margin-right:12px}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input,.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder,#0000);box-sizing:border-box}.monaco-count-badge{border-radius:11px;box-sizing:border-box;display:inline-block;font-size:11px;font-weight:400;line-height:11px;min-height:18px;min-width:18px;padding:3px 6px;text-align:center}.monaco-count-badge.long{border-radius:2px;line-height:normal;min-height:auto;padding:2px 3px}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-position:0;background-repeat:no-repeat;background-size:16px;display:inline-block;flex-shrink:0;height:22px;line-height:inherit!important;padding-right:6px;vertical-align:top;width:16px}.monaco-icon-label-iconpath{display:flex;height:16px;margin-top:2px;padding-left:2px;width:16px}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-suffix-container>.label-suffix{opacity:.7;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-size:.9em;margin-left:.5em;opacity:.7;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{opacity:.66;text-decoration:line-through}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{font-size:90%;font-weight:600;margin:auto 16px 0 5px;opacity:.75;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover-content{box-sizing:border-box;padding-bottom:2px;padding-right:2px}.monaco-editor .monaco-hover{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground)}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row{display:flex}.monaco-editor .monaco-hover .hover-row .hover-row-contents{display:flex;flex-direction:column;min-width:0}.monaco-editor .monaco-hover .hover-row .verbosity-actions{border-right:1px solid var(--vscode-editorHoverWidget-border);display:flex;flex-direction:column;justify-content:end;padding-left:5px;padding-right:5px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon{cursor:pointer;font-size:11px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.enabled{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.disabled{opacity:.6}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{font-size:13px;height:0;line-height:14px;transform:translateY(-10px)}.monaco-editor .diff-hidden-lines .bottom.dragging,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .bottom,.monaco-editor .diff-hidden-lines .top{background-clip:padding-box;background-color:initial;border-bottom:2px solid #0000;border-top:4px solid #0000;height:4px;transition:background-color .1s ease-out}.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *{cursor:n-resize!important}.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *{cursor:s-resize!important}.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *{cursor:ns-resize!important}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{align-items:center;background:var(--vscode-editor-background);display:flex;justify-content:center;z-index:1}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow);color:var(--vscode-diffEditor-unchangedRegionForeground);display:block;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedModified,.monaco-editor .movedOriginal{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedModified.currentMove,.monaco-editor .movedOriginal.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{pointer-events:none;position:absolute}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2}.monaco-editor .char-delete.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-removedTextBackground);margin-left:-1px}.monaco-editor .char-insert.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{display:flex;justify-content:flex-end;margin-top:-4px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{font-size:12px;height:12px;width:12px}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:#00000008}.monaco-diff-editor.vs-dark .diffOverview{background:#ffffff03}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:#0000}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:#ababab66}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{align-items:center;display:flex!important;font-size:11px!important;opacity:.7!important}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-diff-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-editor.hc-light .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{position:absolute;z-index:10}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .char-insert,.monaco-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-diff-editor .line-insert,.monaco-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground,var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-insert,.monaco-editor .line-insert{border:1px solid var(--vscode-diffEditor-insertedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-insert,.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .char-insert,.monaco-editor.hc-light .line-insert{border-style:dashed}.monaco-editor .char-delete,.monaco-editor .line-delete{border:1px solid var(--vscode-diffEditor-removedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-delete,.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .char-delete,.monaco-editor.hc-light .line-delete{border-style:dashed}.monaco-diff-editor .gutter-insert,.monaco-editor .gutter-insert,.monaco-editor .inline-added-margin-view-zone{background-color:var(--vscode-diffEditorGutter-insertedLineBackground,var(--vscode-diffEditor-insertedLineBackground),var(--vscode-diffEditor-insertedTextBackground))}.monaco-diff-editor .char-delete,.monaco-editor .char-delete,.monaco-editor .inline-deleted-text{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .inline-deleted-text{text-decoration:line-through}.monaco-diff-editor .line-delete,.monaco-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground,var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor .gutter-delete,.monaco-editor .gutter-delete,.monaco-editor .inline-deleted-margin-view-zone{background-color:var(--vscode-diffEditorGutter-removedLineBackground,var(--vscode-diffEditor-removedLineBackground),var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{border-left:1px solid var(--vscode-diffEditor-border);box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor.side-by-side .editor.original{border-right:1px solid var(--vscode-diffEditor-border);box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .diagonal-fill{background-image:linear-gradient(-45deg,var(--vscode-diffEditor-diagonalFill) 12.5%,#0000 12.5%,#0000 50%,var(--vscode-diffEditor-diagonalFill) 50%,var(--vscode-diffEditor-diagonalFill) 62.5%,#0000 62.5%,#0000 100%);background-size:8px 8px}.monaco-diff-editor .gutter{flex-grow:0;flex-shrink:0;overflow:hidden;position:relative;&>div{position:absolute}.gutterItem{opacity:0;transition:opacity .7s;&.showAlways{opacity:1}&.noTransition,&.showAlways{transition:none}}&:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.gutterItem{.background{border-left:2px solid var(--vscode-menu-border);height:100%;left:50%;position:absolute;width:1px}.buttons{align-items:center;display:flex;justify-content:center;position:absolute;width:100%;.monaco-toolbar{height:fit-content;.monaco-action-bar{line-height:1;.actions-container{background:var(--vscode-editorGutter-commentRangeForeground);border-radius:4px;width:fit-content;.action-item{&:hover{background:var(--vscode-toolbar-hoverBackground)}.action-label{padding:1px 2px}}}}}}}}.monaco-diff-editor .diff-hidden-lines-compact{display:flex;height:11px;.line-left,.line-right{border-top:1px solid;border-color:var(--vscode-editorCodeLens-foreground);height:1px;margin:auto;opacity:.5;width:100%}.line-left{width:20px}.text{text-wrap:nowrap;color:var(--vscode-editorCodeLens-foreground);font-size:11px;line-height:11px;margin:0 4px}}.monaco-component.diff-review{user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review{position:absolute}.monaco-component.diff-review .diff-review-line-number{color:var(--vscode-editorLineNumber-foreground);display:inline-block;text-align:right}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-component.diff-review .diff-review-row{white-space:pre}.monaco-component.diff-review .diff-review-table{display:table;min-width:100%}.monaco-component.diff-review .diff-review-row{display:table-row;width:100%}.monaco-component.diff-review .diff-review-spacer{display:inline-block;vertical-align:middle;width:10px}.monaco-component.diff-review .diff-review-spacer>.codicon{font-size:9px!important}.monaco-component.diff-review .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-component.diff-review .diff-review-actions .action-label{height:16px;margin:2px 0;width:16px}.monaco-component.diff-review .revertButton{cursor:pointer}.monaco-editor.hc-light .dnd-target,.monaco-editor.vs .dnd-target{border-right:2px dotted #000;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #aeafad;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .findOptionsWidget{border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget,.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground)}.monaco-editor .find-widget{border-bottom:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);box-sizing:border-box;height:33px;line-height:19px;overflow:hidden;padding:0 4px;position:absolute;transform:translateY(calc(-100% - 10px));transition:transform .2s linear;z-index:35}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-color:var(--vscode-focusBorder);outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:initial;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{display:flex;font-size:12px;margin:3px 25px 0 17px}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-bottom:2px;padding-top:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;display:flex;height:25px}.monaco-editor .find-widget .monaco-findInput{display:flex;flex:1 1;vertical-align:middle}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{box-sizing:border-box;display:flex;flex:initial;height:25px;line-height:23px;margin:0 0 0 3px;padding:2px 0 0 2px;text-align:center;vertical-align:middle}.monaco-editor .find-widget .button{align-items:center;background-position:50%;background-repeat:no-repeat;border-radius:5px;cursor:pointer;display:flex;flex:initial;height:16px;justify-content:center;margin-left:3px;padding:3px;width:16px}.monaco-editor .find-widget .codicon-find-selection{border-radius:5px;height:22px;padding:3px;width:22px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{padding:1px 6px;top:-1px;width:auto}.monaco-editor .find-widget .button.toggle{border-radius:0;box-sizing:border-box;height:100%;left:3px;position:absolute;top:0;width:18px}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{display:flex;flex:auto;flex-grow:0;flex-shrink:0;position:relative;vertical-align:middle}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .find-widget.no-results .matchesCount{color:var(--vscode-errorForeground)}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important;background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor .currentFindMatch{background-color:var(--vscode-editor-findMatchBackground);border:2px solid var(--vscode-editor-findMatchBorder);box-sizing:border-box;padding:1px}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}.monaco-editor.hc-black .find-widget .button:before{left:2px;position:relative;top:1px}.monaco-editor .find-widget .button:not(.disabled):hover,.monaco-editor .find-widget .codicon-find-selection:hover{background-color:var(--vscode-toolbar-hoverBackground)!important}.monaco-editor.findMatch{background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor.currentFindMatch{background-color:var(--vscode-editor-findMatchBackground)}.monaco-editor.findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor.findMatch{background-color:var(--vscode-editorWidget-background)}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;right:4px;top:5px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{align-items:center;cursor:pointer;display:flex;font-size:140%;justify-content:center;margin-left:2px;opacity:0;transition:opacity .5s}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{transition:initial}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:var(--vscode-editor-foldPlaceholderForeground);content:"\22EF";cursor:pointer;display:inline;line-height:1em;margin:.1em .2em 0}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;margin-right:4px;vertical-align:text-top}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{font-style:italic;opacity:.6}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{padding:8px 12px 0 20px;position:absolute;user-select:text;-webkit-user-select:text;white-space:pre}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{color:inherit;opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{border-bottom:1px solid #0000;color:var(--vscode-textLink-activeForeground);text-decoration:underline;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{color:var(--vscode-textLink-activeForeground);cursor:pointer}.extension-editor .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.markers-panel .marker-icon .codicon.codicon-error,.markers-panel .marker-icon.error,.monaco-editor .zone-widget .codicon.codicon-error,.preferences-editor .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.extension-editor .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.markers-panel .marker-icon .codicon.codicon-warning,.markers-panel .marker-icon.warning,.monaco-editor .zone-widget .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.extension-editor .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.markers-panel .marker-icon .codicon.codicon-info,.markers-panel .marker-icon.info,.monaco-editor .zone-widget .codicon.codicon-info,.preferences-editor .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-editor .goto-definition-link{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer;text-decoration:underline}.monaco-editor .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiM0MjQyNDIiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px;height:36px;margin:0;min-height:0;min-width:0;overflow:hidden;padding:0;position:absolute;resize:none;width:58px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiNDNUM1QzUiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #252526}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:#0000;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{cursor:pointer;display:inline-block;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{font-size:0;opacity:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .snippet-placeholder{background-color:var(--vscode-editor-snippetTabstopHighlightBackground,#0000);min-width:2px;outline-color:var(--vscode-editor-snippetTabstopHighlightBorder,#0000);outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground,#0000);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder,#0000);outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{border-radius:3px;display:flex;flex-direction:column;width:430px;z-index:40}.monaco-editor .suggest-widget.message{align-items:center;flex-direction:row}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{background-color:var(--vscode-editorSuggestWidget-background);border-color:var(--vscode-editorSuggestWidget-border);border-style:solid;border-width:1px;flex:0 1 auto;width:100%}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-light .suggest-details,.monaco-editor.hc-light .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{border-top:1px solid var(--vscode-editorSuggestWidget-border);box-sizing:border-box;display:none;flex-flow:row nowrap;font-size:80%;justify-content:space-between;overflow:hidden;padding:0 4px;width:100%}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{background-position:2px 2px;background-repeat:no-repeat;-mox-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:flex;padding-right:10px;touch-action:none;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1 1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;justify-content:space-between;overflow:hidden;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;cursor:pointer;font-size:14px;opacity:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;right:2px;top:6px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{opacity:.6;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{align-self:center;font-size:85%;line-height:normal;margin-left:12px;opacity:.4;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-grow:1;flex-shrink:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{flex-shrink:4;max-width:70%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;height:18px;position:absolute;right:10px;visibility:hidden;width:18px}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{background-position:50%;background-repeat:no-repeat;background-size:80%;display:block;height:16px;margin-left:2px;width:16px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{align-items:center;display:flex;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{border:.1em solid #000;display:inline-block;height:.7em;margin:0 0 0 .3em;width:.7em}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{color:var(--vscode-editorSuggestWidget-foreground);cursor:default;display:flex;flex-direction:column}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1 1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2 1;margin:0 24px 0 0;opacity:.7;overflow:hidden;padding:4px 0 12px 5px;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{min-height:calc(1rem + 8px);padding:0;white-space:normal}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{word-wrap:break-word;white-space:pre-wrap}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .inline-edit-remove{background-color:var(--vscode-editorGhostText-background);font-style:italic}.monaco-editor .inline-edit-hidden{font-size:0;opacity:0}.monaco-editor .inline-edit-decoration,.monaco-editor .suggest-preview-text .inline-edit{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .inline-edit-decoration,.monaco-editor .inline-edit-decoration-preview,.monaco-editor .suggest-preview-text .inline-edit{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inlineEditHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineEditHints a,.monaco-editor .inlineEditHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineEditHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineEditHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineEditStatusBarItemLabel{margin-right:2px}.monaco-editor .inlineEditSideBySide{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);white-space:pre;z-index:39}.monaco-editor div.inline-edits-widget{--widget-color:var(--vscode-notifications-background);.promptEditor .monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground)}.promptEditor,.toolbar{opacity:0;transition:opacity .2s ease-in-out}&.focused,&:hover{.promptEditor,.toolbar{opacity:1}}.preview .monaco-editor{--vscode-editor-background:var(--widget-color);.mtk1{color:var(--vscode-editorGhostText-foreground)}.current-line-margin,.view-overlays .current-line-exact{border:none}}svg{.gradient-start{stop-color:var(--vscode-editor-background)}.gradient-stop{stop-color:var(--widget-color)}}}.monaco-editor .tokens-inspect-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);padding:10px;user-select:text;-webkit-user-select:text;z-index:50}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{background-color:var(--vscode-editorHoverWidget-border);border:0;height:1px}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{float:right;font-size:60%;font-weight:400}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);border:1px solid var(--vscode-editor-selectionHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);border:1px solid var(--vscode-editor-wordHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);border:1px solid var(--vscode-editor-wordHighlightStrongBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);border:1px solid var(--vscode-editor-wordHighlightTextBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);cursor:default;display:flex;flex-direction:column;line-height:1.5em;z-index:39}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{display:flex;flex-direction:row;max-width:440px}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{border-left:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;height:100%;opacity:.5;position:absolute}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex:1 1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{border-bottom:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;left:0;opacity:.5;padding-top:4px;position:absolute;width:100%}.monaco-editor .parameter-hints-widget .code{font-family:var(--vscode-parameterHintsWidget-editorFontFamily),var(--vscode-parameterHintsWidget-editorFontFamilyDefault)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs code{background-color:var(--vscode-textCodeBlock-background);border-radius:3px;font-family:var(--monaco-monospace-font);padding:0 .4em}.monaco-editor .parameter-hints-widget .docs .code,.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{align-items:center;display:none;flex-direction:column;justify-content:flex-end;min-width:22px}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{background-repeat:no-repeat;cursor:pointer;height:16px;width:16px}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{font-family:var(--monaco-monospace-font);height:12px;line-height:12px;text-align:center}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground);.editorPlaceholder{text-wrap:nowrap;color:var(--vscode-editor-placeholder-foreground);overflow:hidden;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0}}.monaco-editor .rename-box{border-radius:4px;color:inherit;z-index:100}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{border-radius:2px;padding:3px;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input{padding:0;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{align-items:center;background-color:initial;border:none;border-radius:5px;cursor:pointer;display:flex;padding:3px}.monaco-editor .rename-box .rename-suggestions-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row{border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{background-color:inherit;float:left}.monaco-editor .sticky-widget-lines-scrollable{background-color:inherit;display:inline-block;overflow:hidden;position:absolute;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-widget-lines{background-color:inherit;position:absolute}.monaco-editor .sticky-line-content,.monaco-editor .sticky-line-number{background-color:inherit;color:var(--vscode-editorLineNumber-foreground);display:inline-block;position:absolute;white-space:nowrap}.monaco-editor .sticky-line-number .codicon-folding-collapsed,.monaco-editor .sticky-line-number .codicon-folding-expanded{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{background-color:inherit;white-space:nowrap;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-line-number-inner{display:inline-block;text-align:right}.monaco-editor .sticky-widget{border-bottom:1px solid var(--vscode-editorStickyScroll-border)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{background-color:var(--vscode-editorStickyScroll-background);box-shadow:var(--vscode-editorStickyScroll-shadow) 0 4px 2px -2px;right:auto!important;width:100%;z-index:4}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{background-color:var(--vscode-editorUnicodeHighlight-background);border:1px solid var(--vscode-editorUnicodeHighlight-border);box-sizing:border-box}.editor-banner{background:var(--vscode-banner-background);box-sizing:border-box;cursor:default;display:flex;font-size:12px;height:26px;overflow:visible;width:100%}.editor-banner .icon-container{align-items:center;display:flex;flex-shrink:0;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-position:50%;background-repeat:no-repeat;background-size:16px;margin:0 6px 0 10px;padding:0;width:16px}.editor-banner .message-container{align-items:center;display:flex;line-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-banner .message-container p{margin-block-end:0;margin-block-start:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{margin:2px 8px;padding:0 12px;width:inherit}.editor-banner .message-actions-container a{margin-left:12px;padding:3px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor{--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace;font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;top:0;width:1px}.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-diff-editor button:focus,.monaco-diff-editor input[type=button]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-diff-editor select:focus,.monaco-diff-editor textarea:focus,.monaco-editor{opacity:1;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-style:solid;outline-width:1px}.monaco-workbench .workbench-hover{background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorHoverWidget-foreground);font-size:13px;line-height:19px;max-width:700px;overflow:hidden;position:relative;z-index:40}.monaco-workbench .workbench-hover hr{border-bottom:none}.monaco-workbench .workbench-hover:not(.skip-fade-in){animation:fadein .1s linear}.monaco-workbench .workbench-hover.compact{font-size:12px}.monaco-workbench .workbench-hover.compact .hover-contents{padding:2px 8px}.monaco-workbench .workbench-hover-container.locked .workbench-hover{outline:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .workbench-hover-container.locked .workbench-hover:focus,.monaco-workbench .workbench-hover-lock:focus{outline:1px solid var(--vscode-focusBorder)}.monaco-workbench .workbench-hover-container.locked .workbench-hover-lock:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .workbench-hover-pointer{pointer-events:none;position:absolute;z-index:41}.monaco-workbench .workbench-hover-pointer:after{background-color:var(--vscode-editorHoverWidget-background);border-bottom:1px solid var(--vscode-editorHoverWidget-border);border-right:1px solid var(--vscode-editorHoverWidget-border);content:"";height:5px;position:absolute;width:5px}.monaco-workbench .locked .workbench-hover-pointer:after{border-bottom-width:2px;border-right-width:2px;height:4px;width:4px}.monaco-workbench .workbench-hover-pointer.left{left:-3px}.monaco-workbench .workbench-hover-pointer.right{right:3px}.monaco-workbench .workbench-hover-pointer.top{top:-3px}.monaco-workbench .workbench-hover-pointer.bottom{bottom:3px}.monaco-workbench .workbench-hover-pointer.left:after{transform:rotate(135deg)}.monaco-workbench .workbench-hover-pointer.right:after{transform:rotate(315deg)}.monaco-workbench .workbench-hover-pointer.top:after{transform:rotate(225deg)}.monaco-workbench .workbench-hover-pointer.bottom:after{transform:rotate(45deg)}.monaco-workbench .workbench-hover a{color:var(--vscode-textLink-foreground)}.monaco-workbench .workbench-hover a:focus{outline:1px solid;outline-color:var(--vscode-focusBorder);outline-offset:-1px;text-decoration:underline}.monaco-workbench .workbench-hover a:active,.monaco-workbench .workbench-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .workbench-hover code{background:var(--vscode-textCodeBlock-background)}.monaco-workbench .workbench-hover .hover-row .actions{background:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-workbench .workbench-hover.right-aligned{left:1px}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions{flex-direction:row-reverse}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container{margin-left:16px;margin-right:0}.context-view{position:absolute}.context-view.fixed{all:initial;color:inherit;font-family:inherit;font-size:13px;position:fixed}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:1px solid;border-color:#ccc6 #ccc6 #bbb6;box-shadow:inset 0 -1px 0 #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:initial;border:1px solid #6fc3df;box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:initial;border:1px solid #0f4a85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:1px solid;border-color:#3339 #3339 #4449;box-shadow:inset 0 -1px 0 #4449;color:#ccc}.quick-input-widget{-webkit-app-region:no-drag;border-radius:6px;left:50%;margin-left:-300px;position:absolute;width:600px;z-index:2550}.quick-input-titlebar{align-items:center;border-top-left-radius:5px;border-top-right-radius:5px;display:flex}.quick-input-left-action-bar{display:flex;flex:1 1;margin-left:4px}.quick-input-inline-action-bar{margin:2px 0 0 5px}.quick-input-title{overflow:hidden;padding:3px 0;text-align:center;text-overflow:ellipsis}.quick-input-right-action-bar{display:flex;flex:1 1;margin-right:4px}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{flex:1 1;margin:4px 2px}.quick-input-header{display:flex;padding:8px 6px 2px}.quick-input-widget.hidden-input .quick-input-header{margin-bottom:0;padding:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{display:flex;flex-grow:1;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{left:-10000px;position:absolute}.quick-input-count{align-items:center;align-self:center;display:flex;position:absolute;right:4px}.quick-input-count .monaco-count-badge{border-radius:2px;line-height:normal;min-height:auto;padding:2px 4px;vertical-align:middle}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{align-items:center;display:flex;font-size:11px;height:25px;padding:0 6px}.quick-input-message{margin-top:-1px;overflow-wrap:break-word;padding:5px}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{max-height:440px;overflow:hidden;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;display:flex;overflow:hidden;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-style:solid;border-top-width:1px}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{display:flex;flex:1 1;height:100%;overflow:hidden}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{align-items:center;background-position:0;background-repeat:no-repeat;background-size:16px;display:flex;height:22px;justify-content:center;padding-right:6px;width:16px}.quick-input-list .quick-input-list-rows{display:flex;flex:1 1;flex-direction:column;height:100%;margin-left:5px;overflow:hidden;text-overflow:ellipsis}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{align-items:center;display:flex}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1 1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{line-height:normal;opacity:.7;overflow:hidden;text-overflow:ellipsis}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{background-color:unset;color:var(--vscode-list-highlightForeground)!important;font-weight:700}.quick-input-list .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight{color:var(--vscode-list-focusHighlightForeground)!important}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0 1;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:2px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px;margin-top:1px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.quick-input-list .quick-input-list-separator-as-item{font-size:12px;padding:4px 6px}.quick-input-list .quick-input-list-separator-as-item .label-name{font-weight:600}.quick-input-list .quick-input-list-separator-as-item .label-description{opacity:1!important}.quick-input-list .monaco-tree-sticky-row .quick-input-list-entry.quick-input-list-separator-as-item.quick-input-list-separator-border{border-top-style:none}.quick-input-list .monaco-tree-sticky-row{padding:0 5px}.quick-input-list .monaco-tl-twistie{display:none!important}.monaco-progress-container{height:2px;overflow:hidden;width:100%}.monaco-progress-container .progress-bit{display:none;height:2px;left:0;position:absolute;width:2%}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-duration:4s;animation-iteration-count:infinite;animation-name:progress;animation-timing-function:linear;transform:translateZ(0)}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);height:100%;overflow-y:hidden;position:relative;width:100%;>div{height:100%;left:0;position:absolute;top:0;width:100%;&.placeholder{display:grid;place-content:center;place-items:center;visibility:hidden;&.visible{visibility:visible}}}.active{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.multiDiffEntry{display:flex;flex:1 1;flex-direction:column;overflow:hidden;.collapse-button{cursor:pointer;margin:0 5px;a{display:block}}.header{background:var(--vscode-editor-background);z-index:1000;&:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.header-content{align-items:center;background:var(--vscode-multiDiffEditor-headerBackground);border-top:1px solid var(--vscode-multiDiffEditor-border);color:var(--vscode-foreground);display:flex;margin:8px 0 0;padding:4px 5px;&.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.file-path{display:flex;flex:1 1;min-width:0;.title{font-size:14px;line-height:22px;&.original{flex:1 1;min-width:0;text-overflow:ellipsis}}.status{font-weight:600;line-height:22px;margin:0 10px;opacity:.75}}.actions{padding:0 8px}}}.editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);display:flex;flex:1 1;flex-direction:column;overflow:hidden}.editorContainer{flex:1 1}}}.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-navigation-tree-view-empty{color:var(--g-color-text-secondary);font-style:italic}.ydb-navigation-tree-view-error{color:var(--g-color-text-danger)}.ydb-navigation-tree-view-loader{align-items:center;display:flex;height:24px;justify-content:center;width:20px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/main.bc1b7571.css b/ydb/core/viewer/monitoring/static/css/main.bc1b7571.css new file mode 100644 index 0000000000..fa48fab8bc --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/main.bc1b7571.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{align-items:flex-start;display:flex;flex-direction:row;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-error-boundary__illustration{height:230px;margin-right:20px;width:230px}.ydb-error-boundary__error-title{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);margin-top:44px}.ydb-error-boundary__error-description{margin-top:12px}.ydb-error-boundary__show-details{margin-top:8px}.ydb-error-boundary__error-details{background-color:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);padding:13px 18px;white-space:pre-wrap}.ydb-error-boundary__actions{display:flex;flex-direction:row;gap:10px;margin-top:20px}.g-icon{line-height:0;vertical-align:top}.g-arrow-toggle{display:inline-block;transition:transform .1s ease-out;vertical-align:middle}.g-arrow-toggle_direction_bottom{transform:matrix(1,0,0,1,0,0)}.g-arrow-toggle_direction_left{transform:matrix(0,1,-1,0,0,0)}.g-arrow-toggle_direction_top{transform:matrix(-1,0,0,-1,0,0)}.g-arrow-toggle_direction_right{transform:matrix(0,-1,1,0,0,0)}.g-disclosure_size_m .g-disclosure__trigger{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-disclosure_size_l .g-disclosure__trigger{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-disclosure_size_xl .g-disclosure__trigger{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-disclosure__trigger{align-items:center;background:none;border:none;border-radius:var(--g-focus-border-radius);color:inherit;cursor:pointer;display:flex;flex-flow:row nowrap;flex-shrink:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);font-weight:inherit;gap:8px;line-height:inherit;outline:none;padding:0}.g-disclosure__trigger:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-disclosure__trigger_arrow_end{flex-direction:row-reverse}.g-disclosure__trigger_disabled{color:var(--g-color-text-secondary);cursor:auto}.g-disclosure__content{display:none}.g-disclosure__content_visible{display:block}.g-disclosure__content.g-disclosure_exit_active{animation-duration:.1s;animation-name:g-disclosure-collapsed;display:block;opacity:0}.g-disclosure__content.g-disclosure_enter_active{animation-duration:.2s;animation-name:g-disclosure-expanded}@keyframes g-disclosure-expanded{0%{opacity:.4}to{opacity:1}}@keyframes g-disclosure-collapsed{0%{opacity:1}to{opacity:0}}.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-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-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-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}.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-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}@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}.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}.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: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}.g-clipboard-button__icon{pointer-events:none}.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-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-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}.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}: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}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.c06e6faa.css b/ydb/core/viewer/monitoring/static/css/main.c06e6faa.css deleted file mode 100644 index ab6b2b516d..0000000000 --- a/ydb/core/viewer/monitoring/static/css/main.c06e6faa.css +++ /dev/null @@ -1,9 +0,0 @@ -@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Rubik&display=swap);.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}}: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{align-items:flex-start;display:flex;flex-direction:row;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-error-boundary__illustration{height:230px;margin-right:20px;width:230px}.ydb-error-boundary__error-title{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);margin-top:44px}.ydb-error-boundary__error-description{margin-top:12px}.ydb-error-boundary__show-details{margin-top:8px}.ydb-error-boundary__error-details{background-color:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);padding:13px 18px;white-space:pre-wrap}.ydb-error-boundary__actions{display:flex;flex-direction:row;gap:10px;margin-top:20px}.g-icon{line-height:0;vertical-align:top}.g-arrow-toggle{display:inline-block;transition:transform .1s ease-out;vertical-align:middle}.g-arrow-toggle_direction_bottom{transform:matrix(1,0,0,1,0,0)}.g-arrow-toggle_direction_left{transform:matrix(0,1,-1,0,0,0)}.g-arrow-toggle_direction_top{transform:matrix(-1,0,0,-1,0,0)}.g-arrow-toggle_direction_right{transform:matrix(0,-1,1,0,0,0)}.g-disclosure_size_m .g-disclosure__trigger{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-disclosure_size_l .g-disclosure__trigger{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-disclosure_size_xl .g-disclosure__trigger{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-disclosure__trigger{align-items:center;background:none;border:none;border-radius:var(--g-focus-border-radius);color:inherit;cursor:pointer;display:flex;flex-flow:row nowrap;flex-shrink:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);font-weight:inherit;gap:8px;line-height:inherit;outline:none;padding:0}.g-disclosure__trigger:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-disclosure__trigger_arrow_end{flex-direction:row-reverse}.g-disclosure__trigger_disabled{color:var(--g-color-text-secondary);cursor:auto}.g-disclosure__content{display:none}.g-disclosure__content_visible{display:block}.g-disclosure__content.g-disclosure_exit_active{animation-duration:.1s;animation-name:g-disclosure-collapsed;display:block;opacity:0}.g-disclosure__content.g-disclosure_enter_active{animation-duration:.2s;animation-name:g-disclosure-expanded}@keyframes g-disclosure-expanded{0%{opacity:.4}to{opacity:1}}@keyframes g-disclosure-collapsed{0%{opacity:1}to{opacity:0}}.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-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-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-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}.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-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}@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}.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}.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: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}.g-clipboard-button__icon{pointer-events:none}.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-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-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}.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}: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-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}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/114.7d7ab57f.chunk.js b/ydb/core/viewer/monitoring/static/js/114.7d7ab57f.chunk.js new file mode 100644 index 0000000000..ae9dcb78bb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/114.7d7ab57f.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 114.7d7ab57f.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[114],{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"})))}},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"})))}},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"})))}},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"})))}},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"})))}},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"})))}},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"})))}},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"})))}},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"})))))}},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"})))}},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)},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)))})))},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)}}},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)}}}},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))))}},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}))}},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})))}},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:"_"}))},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():""}},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},594:(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:"M14.756 10.164c1.665-.962 1.665-3.366 0-4.329L6.251.918C4.585-.045 2.5 1.158 2.5 3.083v9.834c0 1.925 2.085 3.128 3.751 2.164z",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},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"}))))},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"}))},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"}))},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"}))},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"}))},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)}},55299:(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);const b=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"}));var 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,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},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)}))},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")}))}))},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)}},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}()},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||{})}}()},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}()},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}}()},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}},50629:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"%"+e.$value:e.$value}return e.isScalar=!0,e}},66668:(e,t,i)=>{e.exports=i(64066)},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}},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}}},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}}},17184:e=>{e.exports=function(){function e(e,t){return"yson"===t.format?"#":e.$value}return e.isScalar=!0,e}},94484:(e,t,i)=>{e.exports=i(64066)},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}},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)}}},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}},43932:(e,t,i)=>{e.exports=i(50629)},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}},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}},46133:(e,t,i)=>{e.exports=i(64066)},9208:(e,t,i)=>{e.exports=i(8603)},21377:(e,t,i)=>{e.exports=i(64066)},36317:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},38785:(e,t,i)=>{e.exports=i(64066)},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}},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)}}},56976:(e,t,i)=>{e.exports=i(34529)},80449:(e,t,i)=>{e.exports=i(17184)},14853:e=>{e.exports=function(){function e(e){return String(e.$value)}return e.isScalar=!0,e}},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}},89896:(e,t,i)=>{e.exports=i(34529)},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}},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}}},74688:(e,t,i)=>{e.exports=i(57233)},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}},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}}},29818:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},93599:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},79928:e=>{e.exports=function(){function e(e){return e.$value}return e.isScalar=!0,e}},10602:(e,t,i)=>{e.exports=i(2539)},37035:(e,t,i)=>{e.exports=i(96409)},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}},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)}}},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)}}},27769:e=>{e.exports=function(){return"Unipika Pika!"}},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:_}}()},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))}}},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))}}},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}()},1449:(e,t,i)=>{!function(){"use strict";const t=i(59170);e.exports={encode:t.encode,decode:t.decode}}()},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"}}()},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)}()},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({})},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"})}}()},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}},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}},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}},63010:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},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))]}},24410:(e,t,i)=>{var s=i(20011);e.exports=function(e){return s(e)?void 0:e}},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+"")}},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])}},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))}},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)):[]}},73917:(e,t,i)=>{var s=i(79064);e.exports=function(e){return(null==e?0:e.length)?s(e,1):[]}},81824:(e,t,i)=>{var s=i(63010),n=i(78326);e.exports=function(e,t){return null!=e&&n(e,t,s)}},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)}},88834:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},52708:(e,t,i)=>{var s=i(634),n=i(35647)((function(e,t,i,n){s(e,t,i,n)}));e.exports=n},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},89807:(e,t,i)=>{var s=i(26437),n=i(33609);e.exports=function(e){return e?s(n(e),0,4294967295):0}},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},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},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}},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)}},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"}},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()}},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},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()}}},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)}},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'},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}}},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))))}}},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)}}},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)))}},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()}}},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={}))},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)}}},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)},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)}}},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)}}},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()}}},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"}},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))}}},97791:()=>{},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}`)}}},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)}}},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()}}},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})}}},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"}))}}},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}},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)}},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))})))}}},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))}}}}},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}},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()}}},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)}}},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)},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)},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}}},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()}}},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})}}},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)}}},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))}}},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()}}},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}}},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}}},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)}}},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},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)}}},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)}}},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}}},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}},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)}}))}},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}},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}}},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}},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)}}},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}},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})},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={}))},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("#")))})},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})},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}}},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},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.")}},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)}}},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()}}},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))}},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}},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})},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}},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}}},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))}}},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}}))},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}},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}}},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}},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#")},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()}}},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={}))},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={}))},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)}},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{}},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}}},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]()}}},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}}},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}}},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}},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"})},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={}))},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}}},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}},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)}},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()}}},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()}},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}}},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}},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)))}},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},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)},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},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={}))},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={}))},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)}}},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},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}}},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()}}},44759:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=Symbol("MicrotaskDelay")},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))}}},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={}))},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})},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})},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}},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}}()},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)}},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)}))}},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},42776:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pla",extensions:[".pla"],loader:()=>i.e(4542).then(i.bind(i,14542))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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")}},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())}}},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},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)}}},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){}}}}},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)}}},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(50672),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")},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}},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}},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()}`))}},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}]}))},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()}}}},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}}},80301:(e,t,i)=>{"use strict";i.d(t,{T:()=>s});const s=(0,i(63591).u1)("codeEditorService")},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)}}},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}}},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)}},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}; }`)}))},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)},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)},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)},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)},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)})))}}},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"})},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))}}},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)},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)}}},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)}}},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)},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)}}},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}},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)},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}})}},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))}}},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}}},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()}}},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)}}},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}}}},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}; }`)}))},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})},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)}},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))))}}},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)}}},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}}}},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}}},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)}}},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)}}},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}}},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}}},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}`}}},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}}},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}},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})},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}}},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})}}},50672:(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={}))},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)}}},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}},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}}},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)))}},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}},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}}},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}},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}},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}}},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)}}},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)}}},23452:(e,t,i)=>{"use strict";i.d(t,{_:()=>s});const s={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},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={}))},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)}},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)}}}},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}},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={}))},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}},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:_}}},10154:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("languageService")},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])}},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)},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}}}])},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)}},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)}},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}},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)}}},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}},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}},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}}},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)}}},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}}},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}},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)}},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")}}}},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}}},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}}},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}}}},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}}},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}}},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))}}},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!")}}},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}}},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})},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}}},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)())},10920:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IEditorWorkerService:()=>s});const s=(0,i(63591).u1)("editorWorkerService")},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)}}},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}}},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,"/")}},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)},56942:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeaturesService:()=>s});const s=(0,i(63591).u1)("ILanguageFeaturesService")},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)},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()}}},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))}},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):[]}}},37550:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IMarkerDecorationsService:()=>s});const s=(0,i(63591).u1)("markerDecorationsService")},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}}},23750:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IModelService:()=>s});const s=(0,i(63591).u1)("modelService")},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()}}},18938:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextModelService:()=>s});const s=(0,i(63591).u1)("textModelService")},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)}},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}}},74243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ISemanticTokensStylingService:()=>s});const s=(0,i(63591).u1)("semanticTokensStylingService")},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)},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}}},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")},44432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeSitterParserService:()=>s});const s=(0,i(63591).u1)("treeSitterParserService")},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}}},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)},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}},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={}))},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={}))},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}}}},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}}},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)}},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}}},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")}},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)}}},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}}},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}},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)},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})},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})}})},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)},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)},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)}}))},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}}})},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; }`)}))},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))}}},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)},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}}},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)}}})},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)}))},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)},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)},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)},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)},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)},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)(_)},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)},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)},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)))},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)},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()}}))},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)},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})}})},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)},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)},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"}}}})},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))}},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)},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()}}},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}}))},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()}}))},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)}}},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}},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}}},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:()=>{}}},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)}}}},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)},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()}}))},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")}))},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)}}},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]}}))},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")},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))}))},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()}}},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)},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)))}))},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)}}},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)},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)},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)))},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")},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{})},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)}}},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}}},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)}},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()}}}},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)},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)},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})},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()}},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)},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()}}))},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)},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()}},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"},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)})))}}},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)},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{})},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))}},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}},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)}},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)},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)},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)},15040:(e,t,i)=>{"use strict";var s=i(31450),n=i(50672),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)},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)},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)},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)},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)},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)},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(50672),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)},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]}}}))},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."))},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."))},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)}}},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)}}},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)},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"}}})},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)},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)},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)},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}))},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}},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())}))}}}},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()}}))},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()}))},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)}}},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)},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)},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)}}},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}}}},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()}})},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)},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)},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)},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}}}}},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."))},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)},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)},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)},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)},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)}; }`)}))},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)},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)},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}})}})},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)},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)(_)},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}]})},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}]})},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}]})},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}]})},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)},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}}},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)},24520:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("themeService")},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)))}))},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}},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)))}))},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)))))},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)}}},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}}},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)},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"})}}},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})},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)},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)},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)}}}},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)},54770:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=(0,i(63591).u1)("clipboardService")},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",(()=>{}))},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,"")}},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)},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]}},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"))},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")},59599:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});const s=(0,i(63591).u1)("dialogService")},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}}},97035:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("environmentService")},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={}))},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()}})},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)},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}}},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}},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}},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)}}},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)},98031:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=(0,i(63591).u1)("keybindingService")},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)},67841:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("labelService")},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.")}}})},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))},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")},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{}},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))}))}},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}}},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")},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}})},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")},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}}},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}}}},90651:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("telemetryService")},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)}},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."))},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()}))},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")},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={}))},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(){}}},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}}},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}},51465:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("workspaceTrustManagementService")},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}},92727:(e,t,i)=>{"use strict";i.d(t,{EN:()=>s.editor,eo:()=>s.languages,vl:()=>s.Emitter});var s=i(80781)},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)},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()})))})},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},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},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)}},57949:(e,t,i)=>{"use strict";i.d(t,{F:()=>B});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",{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 k(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 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)("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 N(e){return"status"in e}function I(e,t,i,s=0){const n=e[t];if(n&&(i(n,s,t,e),!n.collapsed))for(const r of n.children)I(e,`${t}/${r}`,i,s+1)}var O;function D(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 M(e={},t){var i,s;switch(t.type){case O.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 O.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 O.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]=D(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 O.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 O.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 P(e,t){const i=[];return I(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 F(e,t){switch(e){case"async_replication":return(0,s.jsx)(E,{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)(x,{height:16});case"column_table":return(0,s.jsx)(b,{height:16});case"stream":case"topic":return(0,s.jsx)(k,{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)(A,{height:16});default:return null}}function U({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:O.ResetNode,payload:{path:e}}):m.loaded||m.loading||(a({type:O.StartLoading,payload:{path:e}}),t(e).then((t=>{a({type:O.FinishLoading,payload:{path:e,activePath:i,data:t}})})).catch((t=>{a({type:O.ErrorLoading,payload:{path:e,error:t}})})))}),[m.collapsed]);const f=n.useCallback((()=>{h&&h(e)}),[e,h]),_=n.useCallback((()=>{a({type:O.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:F(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"}(O||(O={}));const H=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 B({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(M,{[e.path]:D(e)}),p=n.useMemo((()=>P(u,e.path)),[e.path,u]),m=e=>(0,s.jsx)(U,{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 N(t)?H(t):m(t)}}):(0,s.jsx)(n.Fragment,{children:p.map((e=>N(e)?H(e):m(e)))})}},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})]})})}},53302:(e,t,i)=>{"use strict";i.d(t,{o:()=>s});const s=(0,i(82435).withNaming)({e:"__",m:"_"})},62469:()=>{},10713:()=>{},48215:()=>{},53396:()=>{},82320:()=>{},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")},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)}}}},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}},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)}},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}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/985.86fef64d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/114.7d7ab57f.chunk.js.LICENSE.txt index 2d48226906..13f1dfd641 100644 --- a/ydb/core/viewer/monitoring/static/js/985.86fef64d.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/114.7d7ab57f.chunk.js.LICENSE.txt @@ -1,9 +1,3 @@ -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ - /*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */ /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */ diff --git a/ydb/core/viewer/monitoring/static/js/1329.de2ec2cf.chunk.js b/ydb/core/viewer/monitoring/static/js/1329.de2ec2cf.chunk.js deleted file mode 100644 index efae10b200..0000000000 --- a/ydb/core/viewer/monitoring/static/js/1329.de2ec2cf.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1329],{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:m,withPopover:v=!1,popoverContent:g,popoverPlacement:y="right",popoverDisabled:x=!0}){const[w,j]=n.useState(!1),[f,T]=n.useState(!1),[N,S]=n.useState(!1),C=()=>(0,l.jsx)(s.$,{onClick:()=>j(!0),view:b,disabled:h,loading:!h&&f,className:m,title:p,children:e});return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(i.g,{visible:w,header:d,text:c,withRetry:N,retryButtonText:u,onConfirm:async e=>{T(!0),await t(e)},onConfirmActionSuccess:async()=>{S(!1);try{await(null===a||void 0===a?void 0:a())}finally{T(!1)}},onConfirmActionError:e=>{S((0,o.D)(e)),T(!1)},onClose:()=>{j(!1)}}),v?(0,l.jsx)(r.A,{content:g,placement:y,disabled:x,children:C()}):C()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>g});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 m=(0,c.cn)("ydb-critical-dialog"),v=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 g({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:g,onConfirmActionSuccess:y,onConfirmActionError:x}){const[w,j]=n.useState(!1),[f,T]=n.useState(),[N,S]=n.useState(!1),C=async e=>(j(!0),g(e).then((()=>{y(),h()})).catch((e=>{x(e),T(e)})).finally((()=>{j(!1)})));return(0,p.jsx)(o.l,{open:e,hasCloseButton:!1,className:m(),size:"s",onClose:h,onTransitionExited:()=>{T(void 0),S(!1)},children:f?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:t}),(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)(s.A,{width:"24",height:"22"})}),v(f)]})}),(0,p.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||b("button-retry"):void 0,textButtonCancel:b("button-close"),onClickButtonApply:()=>C(!0),onClickButtonCancel:h})]}):(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:t}),(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)(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:w,preset:"default",textButtonApply:b("button-confirm"),textButtonCancel:b("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!N},onClickButtonCancel:h,onClickButtonApply:()=>C()})]})})}},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)},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})})}},80420:(e,t,a)=>{a.d(t,{$:()=>v});var n=a(40336),s=a(63291),r=a(92459),i=a(78668),o=a(31684),l=a(90182),d=a(71661),c=a(10508),u=a(25196),h=a(48372);const b=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),p=(0,h.g4)("ydb-tablet-name-wrapper",{en:b});var m=a(60712);function v({tabletId:e,database:t}){const a=(0,l.N4)(i._5),h=(0,r.DM)(e,{database:t});return(0,m.jsx)(d.s,{disabled:!a,delayClosing:200,content:(0,m.jsx)(n.u,{responsive:!0,children:(0,m.jsx)(n.u.Item,{name:p("field_links"),children:(0,m.jsx)(u.K,{title:p("context_developer-ui"),url:(0,o._t)(e)})})}),placement:["top","bottom"],behavior:s.m.Immediate,children:(0,m.jsx)(c.c,{name:e.toString(),path:h,hasClipboardButton:!0,showStatus:!1})})}},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})}},88616:(e,t,a)=>{a.d(t,{Q:()=>C});var n=a(76938),s=a(98089),r=a(99991),i=a(22983),o=a(10508),l=a(44294),d=a(17594),c=a(19228),u=a(80420),h=a(27775),b=a(41826),p=a(78668),m=a(21545),v=a(6354),g=a(76086),y=a(90182),x=a(29819),w=a(48372);const j=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"}'),f=(0,w.g4)("ydb-tablets",{en:j});var T=a(60712);function N({database:e}){return[{name:"Type",width:150,get header(){return f("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,T.jsxs)("span",{children:[e.Type," ",t?(0,T.jsx)(s.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return f("Tablet")},render:({row:t})=>t.TabletId?(0,T.jsx)(u.$,{tabletId:t.TabletId,database:e}):g.Pd},{name:"State",get header(){return f("State")},render:({row:e})=>(0,T.jsx)(h.i,{state:e.State})},{name:"NodeId",get header(){return f("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,x.vI)(e.NodeId);return(0,T.jsx)(l.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return f("Node FQDN")},render:({row:e})=>e.fqdn?(0,T.jsx)(o.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,T.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return f("Generation")},align:"right"},{name:"Uptime",get header(){return f("Uptime")},render:({row:e})=>(0,T.jsx)(b.H,{ChangeTime:e.ChangeTime}),sortAccessor:e=>-Number(e.ChangeTime),align:"right",width:120},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,T.jsx)(S,{...e})}]}function S(e){const t=e.State===v.r.Stopped,a=(0,y.N4)(p._5),[s]=m.X.useKillTabletMutation(),o=e.TabletId;return o?(0,T.jsx)(i.B,{buttonView:"outlined",buttonTitle:f("dialog.kill-header"),dialogHeader:f("dialog.kill-header"),dialogText:f("dialog.kill-text"),onConfirmAction:()=>s({id:o}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:f(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,T.jsx)(r.I,{data:n.A})}):null}function C({database:e,tablets:t,className:a,loading:n}){return n?(0,T.jsx)(c.Q,{}):(0,T.jsx)(d.l,{wrapperClassName:a,columns:N({database:e}),data:t,settings:g.N3,emptyDataMessage:f("noTabletsData")})}},89954:(e,t,a)=>{a.d(t,{O:()=>C});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)"]}'),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)"]}'),v=(0,b.g4)("ydb-shorty-string",{ru:m,en:p});var g=a(60712);const y=(0,h.cn)("kv-shorty-string");function x({value:e="",limit:t=200,strict:a=!1,displayLength:s=!0,render:r=e=>e,onToggle:i,expandLabel:o=v("default_expand_label"),collapseLabel:l=v("default_collapse_label")}){const[d,u]=n.useState(!1),h=(d?l:o)+(s&&!d?v("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,g.jsxs)("div",{className:y(),children:[r(p),b?(0,g.jsx)(c.N,{className:y("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var w=a(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function f(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const T=(0,h.cn)("kv-result-issues"),N=(0,h.cn)("kv-issues"),S=(0,h.cn)("kv-issue");function C({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,g.jsxs)("div",{className:T(),children:[(0,g.jsxs)("div",{className:T("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var s,r;const i=f(null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.severity);a=(0,g.jsxs)(n.Fragment,{children:[t?null:(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(B,{severity:i})," "]}),(0,g.jsx)("span",{className:T("error-message-text"),children:null===e||void 0===e||null===(r=e.error)||void 0===r?void 0:r.message})]})}return a})(),i&&(0,g.jsx)(l.$,{view:"normal",onClick:()=>s(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,g.jsx)(I,{hideSeverity:t,issues:r})]})}function I({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:N(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,g.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=f(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=s?"bottom":"right";return(0,g.jsxs)("div",{className:S({leaf:!c,"has-issues":c}),children:[(0,g.jsxs)("div",{className:S("line"),children:[c&&(0,g.jsx)(l.$,{view:"flat-secondary",onClick:()=>r(!s),className:S("arrow-toggle"),children:(0,g.jsx)(d.I,{direction:u,size:16})}),t?null:(0,g.jsx)(B,{severity:i}),(0,g.jsx)(_,{issue:e}),e.issue_code?(0,g.jsxs)("span",{className:S("code"),children:["Code: ",e.issue_code]}):null]}),c&&s&&(0,g.jsx)("div",{className:S("issues"),children:(0,g.jsx)(A,{issues:o,level:a+1,expanded:s})})]})}function _({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,w.kf)(t.row))return"";const{row:a,column:n}=t;return(0,w.kf)(n)?`${a}:${n}`:`line ${a}`}(e),n=window.ydbEditor,s=()=>(0,g.jsxs)("span",{className:S("message"),children:[a&&(0,g.jsx)("span",{className:S("place-text"),title:"Position",children:a}),(0,g.jsx)("div",{className:S("message-text"),children:(0,g.jsx)(x,{value:e.message,expandLabel:"Show full message"})})]}),{row:r,column:i}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,w.kf)(r)&&n))return s();return(0,g.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 A(e){const{issues:t,level:a,expanded:n}=e;return(0,g.jsx)("div",{className:S("list"),children:t.map(((e,t)=>(0,g.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,g.jsxs)("span",{className:D({severity:t}),children:[(0,g.jsx)(u.I,{className:D("icon"),data:F[e]}),(0,g.jsx)("span",{className:D("title"),children:t})]})}},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"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1434.b8423300.chunk.js b/ydb/core/viewer/monitoring/static/js/1434.b8423300.chunk.js new file mode 100644 index 0000000000..f0f10bb553 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1434.b8423300.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1434],{22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),r=a(84476),s=a(84375),o=a(55974),l=a(42829),i=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:u,retryButtonText:c,buttonDisabled:p=!1,buttonView:h="action",buttonTitle:m,buttonClassName:b,withPopover:g=!1,popoverContent:v,popoverPlacement:y="right",popoverDisabled:x=!0}){const[f,j]=n.useState(!1),[N,w]=n.useState(!1),[C,T]=n.useState(!1),S=()=>(0,i.jsx)(r.$,{onClick:()=>j(!0),view:h,disabled:p,loading:!p&&N,className:b,title:m,children:e});return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(o.g,{visible:f,header:d,text:u,withRetry:C,retryButtonText:c,onConfirm:async e=>{w(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===a||void 0===a?void 0:a())}finally{w(!1)}},onConfirmActionError:e=>{T((0,l.D)(e)),w(!1)},onClose:()=>{j(!1)}}),g?(0,i.jsx)(s.A,{content:v,placement:y,disabled:x,children:S()}):S()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>v});var n=a(59284),r=a(18677),s=a(71153),o=a(74321),l=a(2198),i=a(99991),d=a(89954),u=a(77506),c=a(48372);const p=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,c.g4)("ydb-critical-action-dialog",{en:p});var m=a(60712);const b=(0,u.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,m.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function v({visible:e,header:t,text:a,withRetry:d,retryButtonText:u,withCheckBox:c,onClose:p,onConfirm:v,onConfirmActionSuccess:y,onConfirmActionError:x}){const[f,j]=n.useState(!1),[N,w]=n.useState(),[C,T]=n.useState(!1),S=async e=>(j(!0),v(e).then((()=>{y(),p()})).catch((e=>{x(e),w(e)})).finally((()=>{j(!1)})));return(0,m.jsx)(l.l,{open:e,hasCloseButton:!1,className:b(),size:"s",onClose:p,onTransitionExited:()=>{w(void 0),T(!1)},children:N?(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(l.l.Header,{caption:t}),(0,m.jsx)(l.l.Body,{className:b("body"),children:(0,m.jsxs)("div",{className:b("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:b("error-icon"),children:(0,m.jsx)(r.A,{width:"24",height:"22"})}),g(N)]})}),(0,m.jsx)(l.l.Footer,{loading:!1,preset:"default",textButtonApply:d?u||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>S(!0),onClickButtonCancel:p})]}):(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(l.l.Header,{caption:t}),(0,m.jsxs)(l.l.Body,{className:b("body"),children:[(0,m.jsxs)("div",{className:b("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:b("warning-icon"),children:(0,m.jsx)(i.I,{data:s.A,size:24})}),a]}),c?(0,m.jsx)(o.S,{checked:C,onUpdate:T,children:h("checkbox-text")}):null]}),(0,m.jsx)(l.l.Footer,{loading:f,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:c&&!C},onClickButtonCancel:p,onClickButtonApply:()=>S()})]})})}},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},2102:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(77506),r=a(60712);const s=(0,n.cn)("ydb-diagnostic-card");function o({children:e,className:t,active:a,size:n="m",interactive:o=!0}){return(0,r.jsx)("div",{className:s({active:a,size:n,interactive:o},t),children:e})}},28539:(e,t,a)=>{a.d(t,{T:()=>n.T});var n=a(53755)},52248:(e,t,a)=>{a.d(t,{a:()=>n.a});var n=a(47334)},9252:(e,t,a)=>{a.d(t,{k:()=>o});var n=a(44433),r=a(88610),s=a(60712);const o=({value:e,onChange:t,className:a})=>(0,s.jsxs)(n.a,{value:e,onUpdate:t,className:a,children:[(0,s.jsx)(n.a.Option,{value:r.s$.ALL,children:r.s$.ALL}),(0,s.jsx)(n.a.Option,{value:r.s$.PROBLEMS,children:r.s$.PROBLEMS})]})},17594:(e,t,a)=>{a.d(t,{l:()=>d});var n=a(69024),r=a(4557),s=a(77506),o=a(16819),l=a(60712);const i=(0,s.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:s,...d}){const[u,c]=(0,o.a)(e),p=(0,n.j)(t,u),h={...a,defaultResizeable:!0};return(0,l.jsx)("div",{className:i(null,s),children:(0,l.jsx)(r.Ay,{theme:"yandex-cloud",columns:p,onResize:c,settings:h,...d})})}},95963:(e,t,a)=>{a.d(t,{v:()=>n.v});var n=a(41775)},80420:(e,t,a)=>{a.d(t,{$:()=>b});var n=a(40336),r=a(63291),s=a(92459),o=a(31684),l=a(12888),i=a(71661),d=a(10508),u=a(25196),c=a(48372);const p=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),h=(0,c.g4)("ydb-tablet-name-wrapper",{en:p});var m=a(60712);function b({tabletId:e,database:t}){const a=(0,l.X)(),c=(0,s.DM)(e,{database:t});return(0,m.jsx)(i.s,{disabled:!a,delayClosing:200,content:(0,m.jsx)(n.u,{responsive:!0,children:(0,m.jsx)(n.u.Item,{name:h("field_links"),children:(0,m.jsx)(u.K,{title:h("context_developer-ui"),url:(0,o._t)(e)})})}),placement:["top","bottom"],behavior:r.m.Immediate,children:(0,m.jsx)(d.c,{name:e.toString(),path:c,hasClipboardButton:!0,showStatus:!1})})}},27775:(e,t,a)=>{a.d(t,{i:()=>o});var n=a(47665),r=a(58267),s=a(60712);function o({state:e}){return(0,s.jsx)(n.J,{theme:(0,r._)(e),children:e})}},7117:(e,t,a)=>{a.d(t,{G:()=>ee});var n=a(59284),r=a(44508),s=a(98167),o=a(89073),l=a(86782),i=a(67028),d=a(15298),u=a(90182),c=a(88610);function p(){const e=(0,u.YQ)();return{problemFilter:(0,u.N4)(c.yV),handleProblemFilterChange:t=>{e((0,c.$u)(t))}}}var h=a(12888),m=a(43951),b=a(78034),g=a(71708),v=a(62710),y=a(98089),x=a(69775),f=a(24555),j=a(28539),N=a(9252),w=a(95963),C=a(64934),T=a(44433),S=a(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=a(60712);function _({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 B="nodesTableSelectedColumns",k=["NodeId","Host","Uptime","CPU","RAM","Version","Tablets"],G=["NodeId"],L=["SystemState","Host","DC","Rack","Database","Version","Uptime"];function D(e,t){return t?e:e.filter((e=>"SystemState"!==e))}var E=a(59109);const O=(0,a(77506).cn)("ydb-nodes"),q=e=>O("node",{unavailable:(0,b.X7)(e)}),U=e=>e&&403===e.status?(0,A.jsx)(E.O,{position:"left"}):(0,A.jsx)(r.o,{error:e});var V=a(67087);function $(e){var t;const[a,n]=(0,V.useQueryParams)({uptimeFilter:V.StringParam,peerRole:V.StringParam,search:V.StringParam,nodesGroupBy:V.StringParam}),r=b.Bm.parse(a.uptimeFilter),s=null!==(t=a.search)&&void 0!==t?t:"",o=(l=a.peerRole,P.find((e=>e===l)));var l;const d=(0,i.DM)(),u=function(e,t,a){return D(t,a).find((t=>t===e))}(a.nodesGroupBy,null!==e&&void 0!==e?e:[],d);return{uptimeFilter:r,searchValue:s,peerRoleFilter:o,groupByParam:u,handleSearchQueryChange:e=>{n({search:e||void 0},"replaceIn")},handleUptimeFilterChange:e=>{n({uptimeFilter:e},"replaceIn")},handlePeerRoleFilterChange:e=>{n({peerRole:e},"replaceIn")},handleGroupByParamChange:e=>{n({nodesGroupBy:e},"replaceIn")}}}function M({withGroupBySelect:e,groupByParams:t=[],withPeerRoleFilter:a,columnsToSelect:r,handleSelectedColumnsUpdate:s,entitiesCountCurrent:o,entitiesCountTotal:d,entitiesLoading:u}){const{searchValue:c,uptimeFilter:h,peerRoleFilter:m,groupByParam:b,handleSearchQueryChange:g,handleUptimeFilterChange:v,handlePeerRoleFilterChange:T,handleGroupByParamChange:S}=$(t),{problemFilter:F,handleProblemFilterChange:P}=p(),R=(0,i.DM)(),B=function(e,t){return D(e,t).map((e=>({value:e,content:(0,l.kn)(e)})))}(t,R),k=(0,i.WF)(),G=a&&k;return(0,A.jsxs)(n.Fragment,{children:[(0,A.jsx)(w.v,{onChange:g,placeholder:I("controls_search-placeholder"),width:238,value:c}),R&&e?null:(0,A.jsx)(N.k,{value:F,onChange:P}),e?null:(0,A.jsx)(C.j,{value:h,onChange:v}),G?(0,A.jsxs)(n.Fragment,{children:[(0,A.jsx)(y.E,{variant:"body-2",children:I("controls_peer-role-label")}),(0,A.jsx)(_,{value:m,onChange:T})]}):null,(0,A.jsx)(x.O,{popupWidth:200,items:r,showStatus:!0,onUpdate:s,sortable:!1}),e?(0,A.jsxs)(n.Fragment,{children:[(0,A.jsx)(y.E,{variant:"body-2",children:I("controls_group-by-placeholder")}),(0,A.jsx)(f.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:b?[b]:void 0,onUpdate:e=>{S(e[0])},options:B,className:O("group-by-select"),popupClassName:O("group-by-popup")})]}):null,(0,A.jsx)(j.T,{current:o,total:d,label:I("nodes"),loading:u})]})}var H=a(78524),K=a(40427),Q=a(11906),z=a(69464),W=a(40781);const X=async e=>{const{type:t="any",storage:a=!1,tablets:n=!0,limit:r,offset:s,sortParams:o,filters:i,columnsIds:d}=e,{sortOrder:u,columnId:c}=null!==o&&void 0!==o?o:{},{path:p,database:h,searchValue:m,problemFilter:g,uptimeFilter:v,peerRoleFilter:y,filterGroup:x,filterGroupBy:f}=null!==i&&void 0!==i?i:{},j=(0,l.kU)(c),N=j?(0,z.T)(j,u):void 0,w=(0,W.R)(d,l.fN),C=await window.api.viewer.getNodes({type:t,storage:a,tablets:n,limit:r,offset:s,sort:N,path:p,database:h,filter:m,problems_only:(0,b.AB)(g),uptime:(0,b.Fo)(v),filter_peer_role:y,filter_group:x,filter_group_by:f,fieldsRequired:w}),T=(0,Q.N)(C);return{data:T.Nodes||[],found:T.FoundNodes||0,total:T.TotalNodes||0}};function J({path:e,database:t,searchValue:a,problemFilter:r,uptimeFilter:s,peerRoleFilter:o,filterGroup:i,filterGroupBy:d,columns:u,parentRef:c,renderControls:p,initialEntitiesCount:h}){const m=n.useMemo((()=>({path:e,database:t,searchValue:a,problemFilter:r,uptimeFilter:s,peerRoleFilter:o,filterGroup:i,filterGroupBy:d})),[e,t,a,r,s,o,i,d]);return(0,A.jsx)(K.k5,{columnsWidthLSKey:l.zO,parentRef:c,columns:u,fetchData:X,limit:50,initialEntitiesCount:h,renderControls:p,renderErrorMessage:U,renderEmptyDataMessage:()=>"All"!==r||s!==b.cW.All?(0,A.jsx)(H.v,{name:"thumbsUp",width:"200"}):I("empty.default"),getRowClassName:q,filters:m,tableName:"nodes"})}var Y=a(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,l.sp)(e.name)})))}function ee({path:e,database:t,parentRef:a,additionalNodesProps:r,withPeerRoleFilter:o,columns:d=Z({database:t,getNodeRef:null===r||void 0===r?void 0:r.getNodeRef}),defaultColumnsIds:u=k,requiredColumnsIds:c=G,selectedColumnsKey:m=B,groupByParams:g=L}){const{uptimeFilter:v,groupByParam:y,handleUptimeFilterChange:x}=$(g),{problemFilter:f,handleProblemFilterChange:j}=p(),N=(0,i.Pm)(),w=(0,i.Ye)(),C=(0,h.X)(),T=n.useMemo((()=>C?d:d.filter((e=>!(0,l.xd)(e.name)))),[d,C]);n.useEffect((()=>{!w||"All"===f&&v===b.cW.All||(j("All"),x(b.cW.All))}),[j,x,f,v,w]);return(0,A.jsx)(s.r,{loading:!N,children:w&&y?(0,A.jsx)(ae,{path:e,database:t,parentRef:a,withPeerRoleFilter:o,columns:T,defaultColumnsIds:u,requiredColumnsIds:c,selectedColumnsKey:m,groupByParams:g}):(0,A.jsx)(te,{path:e,database:t,parentRef:a,withPeerRoleFilter:o,columns:T,defaultColumnsIds:u,requiredColumnsIds:c,selectedColumnsKey:m,groupByParams:g})})}function te({path:e,database:t,parentRef:a,withPeerRoleFilter:n,columns:r,defaultColumnsIds:s,requiredColumnsIds:o,selectedColumnsKey:d,groupByParams:u}){const{searchValue:c,uptimeFilter:h,peerRoleFilter:b}=$(u),{problemFilter:g}=p(),v=(0,i.Ye)(),{columnsToShow:y,columnsToSelect:x,setColumns:f}=(0,m.K)(r,d,l.uG,s,o);return(0,A.jsx)(J,{path:e,database:t,searchValue:c,problemFilter:g,uptimeFilter:h,peerRoleFilter:b,columns:y,parentRef:a,renderControls:({totalEntities:e,foundEntities:t,inited:a})=>(0,A.jsx)(M,{withGroupBySelect:v,groupByParams:u,withPeerRoleFilter:n,columnsToSelect:x,handleSelectedColumnsUpdate:f,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!a})})}function ae({path:e,database:t,parentRef:a,withPeerRoleFilter:n,columns:s,defaultColumnsIds:i,requiredColumnsIds:c,selectedColumnsKey:p,groupByParams:h}){const{searchValue:y,peerRoleFilter:x,groupByParam:f}=$(h),[j]=(0,u.Nt)(),{columnsToShow:N,columnsToSelect:w,setColumns:C}=(0,m.K)(s,p,l.uG,i,c),{currentData:T,isFetching:S,error:F}=d.s.useGetNodesQuery({path:e,database:t,filter:y,filter_peer_role:x,group:f,limit:0},{pollingInterval:j}),P=void 0===T&&S,{NodeGroups:R,FoundNodes:_=0,TotalNodes:B=0}=T||{},{expandedGroups:k,setIsGroupExpanded:G}=(0,v.$)(R);return(0,A.jsxs)(o.L,{children:[(0,A.jsx)(o.L.Controls,{children:(0,A.jsx)(M,{withGroupBySelect:!0,groupByParams:h,withPeerRoleFilter:n,columnsToSelect:w,handleSelectedColumnsUpdate:C,entitiesCountCurrent:_,entitiesCountTotal:B,entitiesLoading:P})}),F?(0,A.jsx)(r.o,{error:F}):null,(0,A.jsx)(o.L.Table,{loading:P,className:O("groups-wrapper"),children:null!==R&&void 0!==R&&R.length?R.map((({name:n,count:r})=>{const s=k[n];return(0,A.jsx)(g.Q,{title:n,count:r,entityName:I("nodes"),expanded:s,onIsExpandedChange:G,children:(0,A.jsx)(J,{path:e,database:t,searchValue:y,problemFilter:"All",uptimeFilter:b.cW.All,peerRoleFilter:x,filterGroup:n,filterGroupBy:f,initialEntitiesCount:r,columns:N,parentRef:a})},n)})):I("no-nodes-groups")})]})}},88616:(e,t,a)=>{a.d(t,{Q:()=>P});var n=a(59284),r=a(76938),s=a(98089),o=a(99991),l=a(67087),i=a(22983),d=a(28539),u=a(10508),c=a(44508),p=a(44294),h=a(17594),m=a(41775),b=a(89073),g=a(80420),v=a(27775),y=a(41826),x=a(21545),f=a(6354),j=a(76086),N=a(12888),w=a(29819),C=a(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=a(60712);function I(e){const t=e.State===f.r.Stopped,a=(0,N.X)(),[n]=x.X.useKillTabletMutation(),s=e.TabletId;return s?(0,F.jsx)(i.B,{buttonView:"outlined",buttonTitle:S("dialog.kill-header"),dialogHeader:S("dialog.kill-header"),dialogText:S("dialog.kill-text"),onConfirmAction:()=>n({id:s}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:S(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,F.jsx)(o.I,{data:r.A})}):null}function P({database:e,tablets:t,loading:a,error:r}){const[{tabletsSearch:o},i]=(0,l.useQueryParams)({tabletsSearch:l.StringParam}),x=n.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)(s.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return S("Tablet")},render:({row:t})=>t.TabletId?(0,F.jsx)(g.$,{tabletId:t.TabletId,database:e}):j.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,w.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]),f=n.useMemo((()=>t.filter((e=>String(e.TabletId).includes(null!==o&&void 0!==o?o:"")))),[t,o]);return(0,F.jsxs)(b.L,{children:[(0,F.jsxs)(b.L.Controls,{children:[(0,F.jsx)(m.v,{placeholder:S("controls.search-placeholder"),onChange:e=>{i({tabletsSearch:e||void 0},"replaceIn")},value:null!==o&&void 0!==o?o:"",width:238}),(0,F.jsx)(d.T,{label:S("controls.entities-count-label"),loading:a,total:t.length,current:f.length})]}),r?(0,F.jsx)(c.o,{error:r}):null,(0,F.jsx)(b.L.Table,{loading:a,children:(0,F.jsx)(h.l,{columns:x,data:f,settings:j.N3,emptyDataMessage:S("noTabletsData")})})]})}},89954:(e,t,a)=>{a.d(t,{O:()=>S});var n=a(59284),r=a(45720),s=a(16929),o=a(71153),l=a(18677),i=a(84476),d=a(33705),u=a(67884),c=a(99991),p=a(77506),h=a(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)"]}'),b=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:b,en:m});var v=a(60712);const y=(0,p.cn)("kv-shorty-string");function x({value:e="",limit:t=200,strict:a=!1,displayLength:r=!0,render:s=e=>e,onToggle:o,expandLabel:l=g("default_expand_label"),collapseLabel:i=g("default_collapse_label")}){const[d,c]=n.useState(!1),p=(d?i:l)+(r&&!d?g("chars_count",{count:e.length}):""),h=e.length>t+(a?0:p.length),m=d||!h?e:e.slice(0,t-4)+"\xa0...";return(0,v.jsxs)("div",{className:y(),children:[s(m),h?(0,v.jsx)(u.N,{className:y("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),c((e=>!e)),null===o||void 0===o||o()},children:p}):null]})}var f=a(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,p.cn)("kv-result-issues"),C=(0,p.cn)("kv-issues"),T=(0,p.cn)("kv-issue");function S({data:e,hideSeverity:t}){const[a,r]=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,v.jsxs)("div",{className:w(),children:[(0,v.jsxs)("div",{className:w("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var r,s;const o=N(null===e||void 0===e||null===(r=e.error)||void 0===r?void 0:r.severity);a=(0,v.jsxs)(n.Fragment,{children:[t?null:(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(B,{severity:o})," "]}),(0,v.jsx)("span",{className:w("error-message-text"),children:null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.message})]})}return a})(),o&&(0,v.jsx)(i.$,{view:"normal",onClick:()=>r(!a),children:a?"Hide details":"Show details"})]}),o&&a&&(0,v.jsx)(F,{hideSeverity:t,issues:s})]})}function F({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,v.jsx)("div",{className:C(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,v.jsx)(I,{hideSeverity:t,issue:e,expanded:e===a},n)))})}function I({issue:e,hideSeverity:t,level:a=0}){const[r,s]=n.useState(!0),o=N(e.severity),l=e.issues,u=Array.isArray(l)&&l.length>0,c=r?"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:()=>s(!r),className:T("arrow-toggle"),children:(0,v.jsx)(d.I,{direction:c,size:16})}),t?null:(0,v.jsx)(B,{severity:o}),(0,v.jsx)(P,{issue:e}),e.issue_code?(0,v.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),u&&r&&(0,v.jsx)("div",{className:T("issues"),children:(0,v.jsx)(R,{issues:l,level:a+1,expanded:r})})]})}function P({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,f.kf)(t.row))return"";const{row:a,column:n}=t;return(0,f.kf)(n)?`${a}:${n}`:`line ${a}`}(e),n=window.ydbEditor,r=()=>(0,v.jsxs)("span",{className:T("message"),children:[a&&(0,v.jsx)("span",{className:T("place-text"),title:"Position",children:a}),(0,v.jsx)("div",{className:T("message-text"),children:(0,v.jsx)(x,{value:e.message,expandLabel:"Show full message"})})]}),{row:s,column:o}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,f.kf)(s)&&n))return r();return(0,v.jsx)(u.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:r()})}function R(e){const{issues:t,level:a,expanded:n}=e;return(0,v.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,v.jsx)(I,{issue:e,level:a,expanded:n},t)))})}const A={S_INFO:r.A,S_WARNING:s.A,S_ERROR:o.A,S_FATAL:l.A},_=(0,p.cn)("yql-issue-severity");function B({severity:e}){const t=e.slice(2).toLowerCase();return(0,v.jsxs)("span",{className:_({severity:t}),children:[(0,v.jsx)(c.I,{className:_("icon"),data:A[e]}),(0,v.jsx)("span",{className:_("title"),children:t})]})}},15298:(e,t,a)=>{a.d(t,{s:()=>s});var n=a(21334),r=a(11906);const s=n.F.injectEndpoints({endpoints:e=>({getNodes:e.query({queryFn:async(e,{signal:t})=>{try{const a=await window.api.viewer.getNodes({type:"any",storage:!1,tablets:!0,...e},{signal:t});return{data:(0,r.N)(a)}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},11906:(e,t,a)=>{a.d(t,{N:()=>r});var n=a(78034);const r=e=>{var t;const a=(e.Nodes||[]).map((e=>{const{SystemState:t,...a}=e;return{...a,...(0,n.q1)(t)}}));return{Nodes:a,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)||a.length,FoundNodes:Number(e.FoundNodes)}}},21545:(e,t,a)=>{a.d(t,{X:()=>r});var n=a(78034);const r=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[r,s,o]=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})]),l=(0,n.nN)(o),i=Object.keys(s).reduce(((e,t)=>{var a;const n=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(n&&n.length){var r;const a=n.find((e=>e.Leader))||n[0],{ChangeTime:s,Generation:o,State:i,Leader:d,FollowerId:u}=a,c=l&&t?null===(r=l.get(Number(t)))||void 0===r?void 0:r.Host:void 0;"Dead"!==i&&e.push({nodeId:t,generation:o,changeTime:s,state:i,leader:d,followerId:u,fqdn:c})}return e}),[]),{TabletStateInfo:d=[]}=r,[u={}]=d,{TabletId:c}=u;return{data:{id:c,data:u,history:i}}}catch(r){return{error:r}}},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:r}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${n}:${r}`}}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"})}}]);
\ 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 new file mode 100644 index 0000000000..8798b9f3b8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/245.041a06df.chunk.js @@ -0,0 +1 @@ +"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/2512.732a0e0c.chunk.js b/ydb/core/viewer/monitoring/static/js/2512.732a0e0c.chunk.js deleted file mode 100644 index 9419027004..0000000000 --- a/ydb/core/viewer/monitoring/static/js/2512.732a0e0c.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2512],{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}},59984:(e,s,n)=>{n.d(s,{Y:()=>i});n(59284);var t=n(87184),l=n(77506),r=n(60712);const a=(0,l.cn)("tag"),o=({text:e,type:s})=>(0,r.jsx)("div",{className:a({type:s}),children:e}),i=({tags:e,tagsType:s,className:n="",gap:l=1})=>(0,r.jsx)(t.s,{className:n,gap:l,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,n)=>(0,r.jsx)(o,{text:e,type:s},n)))})},6488:(e,s,n)=>{n.r(s),n.d(s,{Cluster:()=>Vs});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(78668),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,j.N4)(z._5),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),Y=n(53850),Z=n(23536),W=n.n(Z),q=n(54090),Q=n(76086),H=n(56674);const J=(0,Y.Mz)((e=>e),(e=>H.GJ.endpoints.getTenantsInfo.select({clusterName:e}))),K=(0,Y.Mz)((e=>e),((e,s)=>J(s)),(e=>(0,U.CN)(e,Q.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,Y.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(W()(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:Q.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(71294);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{balancer:s}=(0,p.Zd)(),{additionalNodesProps:n}=(0,he.B)({balancer:s}),t=pe({getNodeRef:n.getNodeRef});return(0,$.jsx)(V.l,{columnsWidthLSKey:"versionsTableColumnsWidth",data:e,columns:t,settings:Q.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),Ie=n(59984),Pe=n(7435);const Re=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"}'),$e=(0,I.g4)("ydb-cluster",{en:Re});var Be=n(2102);const Fe=(0,g.cn)("ydb-doughnut-metrics");function Ue({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:Fe(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:Fe("doughnut",{status:e}),children:(0,$.jsx)("div",{className:Fe("text-wrapper"),children:n})})})}Ue.Legend=function({children:e,variant:s="subheader-3"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:Fe("legend"),children:e})},Ue.Value=function({children:e,variant:s="subheader-2"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:Fe("value"),children:e})};var Ye=n(70043);const Ze=(0,g.cn)("ydb-cluster-dashboard");function We({children:e,title:s,size:n,className:t}){return(0,$.jsxs)(Be.A,{className:Ze("card",{size:n},t),size:n,interactive:!1,children:[s?(0,$.jsx)(Ae.E,{variant:"subheader-3",className:Ze("card-title"),children:s}):null,e]})}function qe({title:e,children:s,size:n,...t}){return(0,$.jsx)(We,{title:e,size:n,children:(0,$.jsx)(Ue,{...t,className:Ze("doughnut"),children:s})})}function Qe(){return(0,$.jsx)(We,{className:Ze("skeleton-wrapper"),children:(0,$.jsx)(Ye.E,{className:Ze("skeleton")})})}function He(){return(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(Qe,{}),(0,$.jsx)(Qe,{}),(0,$.jsx)(Qe,{})]})}var Je=n(35736),Ke=n(57439),Xe=n(24543),es=n(46549);const ss=(0,g.cn)("ydb-disk-groups-stats"),ns=({stats:e,children:s})=>(0,$.jsx)("div",{className:ss(),children:(0,$.jsx)(Xe.u,{placement:["right"],pinOnClick:!0,content:(0,$.jsx)(ts,{stats:e}),children:s})});function ts({stats:e}){const{diskType:s,erasure:n,allocatedSize:t,availableSize:l}=e,r=(0,es.dd)(Math.max(t,l),2),a=(0,es.z3)({value:t,size:r}),o=(0,es.z3)({value:l,size:r}),i=Math.round(t/(t+l)*100),d=[{name:$e("disk-type"),content:s},{name:$e("erasure"),content:n},{name:$e("allocated"),content:a},{name:$e("available"),content:o},{name:$e("usage"),content:i+"%"}];return(0,$.jsx)(Ke.u,{items:d,className:ss("popup-content"),responsive:!0})}function ls({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,Je.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 rs=["storage","tenant"];const as=e=>Object.values(e).reduce(((e,s)=>(Object.values(s).forEach((s=>{e+=s.createdGroups})),e)),0);function os({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${$e("context_cores")}`}function is({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=ls({value:e,capacity:s,legendFormatter:os,...n});return(0,$.jsxs)(qe,{status:t,fillWidth:a,title:$e("title_cpu"),children:[(0,$.jsx)(Ue.Legend,{children:r}),(0,$.jsx)(Ue.Value,{children:l})]})}function ds({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function cs({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=ls({value:e,capacity:s,legendFormatter:ds,...n});return(0,$.jsxs)(qe,{status:t,fillWidth:a,title:$e("title_memory"),children:[(0,$.jsx)(Ue.Legend,{children:r}),(0,$.jsx)(Ue.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}=ls({value:e,capacity:s,legendFormatter:us,...n});return(0,$.jsxs)(qe,{status:t,fillWidth:a,title:$e("title_storage"),children:[(0,$.jsx)(Ue.Legend,{children:r}),(0,$.jsx)(Ue.Value,{children:l})]})}function hs({value:e}){return(0,Pe.f8)(e)?(0,$.jsx)(Ae.E,{variant:"subheader-3",color:"secondary",children:(0,se.ZV)(e)}):null}function ps({cluster:e,...s}){return s.error?(0,$.jsx)(w.o,{error:s.error,className:Ze("error")}):(0,$.jsx)("div",{className:Ze(),children:(0,$.jsxs)(Ge.s,{gap:4,wrap:!0,children:[(0,$.jsx)(Ge.s,{gap:4,wrap:"nowrap",children:(0,$.jsx)(ms,{...s,cluster:e})}),(0,$.jsx)("div",{className:Ze("cards-container"),children:(0,$.jsx)(gs,{...s,cluster:e})})]})})}function ms({cluster:e,loading:s}){if(s)return(0,$.jsx)(He,{});const n=[];if((0,Me.L)(e)){const{CoresUsed:s,NumberOfCpus:t,CoresTotal:l}=e,r=null!==l&&void 0!==l?l:t;(0,Pe.f8)(s)&&(0,Pe.f8)(r)&&n.push((0,$.jsx)(is,{value:s,capacity:r},"cores"))}const{StorageTotal:t,StorageUsed:l}=e;(0,Pe.f8)(t)&&(0,Pe.f8)(l)&&n.push((0,$.jsx)(vs,{value:l,capacity:t},"storage"));const{MemoryTotal:r,MemoryUsed:a}=e;return(0,Pe.f8)(r)&&(0,Pe.f8)(a)&&n.push((0,$.jsx)(cs,{value:a,capacity:r},"memory")),n}function gs({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))rs.includes(n.toLowerCase())&&s.push((0,$.jsxs)(t.Fragment,{children:[n,": ",(0,se.ZV)(l)]},n));return s}(e);if(l.push((0,$.jsx)(We,{size:"l",title:$e("label_nodes"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(hs,{value:null===e||void 0===e?void 0:e.NodesAlive}),null!==r&&void 0!==r&&r.length?(0,$.jsx)(Ie.Y,{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)(ns,{stats:n,children:[e,": ",(0,se.ZV)(n.createdGroups)," /"," ",(0,se.ZV)(n.totalGroups)]},`${e}|${n.erasure}`))}))})),s}(s),n=as(s);l.push((0,$.jsx)(We,{size:"l",title:$e("label_storage-groups"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(hs,{value:n}),(0,$.jsx)(Ie.Y,{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)(We,{size:"l",title:$e("label_hosts"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(hs,{value:null===e||void 0===e?void 0:e.Hosts}),(0,$.jsx)(Ie.Y,{tags:a,gap:3})]})},"hosts")),e.Tenants&&l.push((0,$.jsx)(We,{size:"l",title:$e("label_databases"),children:(0,$.jsx)(hs,{value:null===e||void 0===e?void 0:e.Tenants})},"tenants")),l}var js=n(42655);const xs=(0,g.cn)("cluster-info");var Ns=n(41650);function fs(){const{cores:e,logging:s}=(0,p.Zd)();return t.useMemo((()=>{const n=[],t=function(e){try{const s=(0,Ns.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,Ns.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:$e("link_cores"),url:t}),l&&n.push({title:$e("link_logging"),url:l}),r&&n.push({title:$e("link_slo-logs"),url:r}),n}),[e,s])}var bs=n(15132);const ys=(0,g.cn)("ydb-nodes-state");function Cs({state:e,children:s}){return(0,$.jsx)("div",{className:ys({[e.toLowerCase()]:!0}),children:s})}const ks={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},ws=(e,s)=>{const n=[];if((0,Me.L)(e)&&e.MapNodeStates){const s=Object.entries(e.MapNodeStates);s.sort(((e,s)=>ks[s[0]]-ks[e[0]]));const t=s.map((([e,s])=>(0,$.jsx)(Cs,{state:e,children:(0,se.ZV)(s)},e)));n.push({label:$e("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:$e("label_dc"),value:(0,$.jsx)(Ie.Y,{tags:l,gap:2,className:xs("dc")})}),n.push({label:$e("label_load"),value:(0,$.jsx)(bs.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},Ts=({cluster:e,loading:s,error:n,additionalClusterProps:t={}})=>{const{info:l=[],links:r=[]}=t,a=fs(),o=r.concat(a),i=ws(null!==e&&void 0!==e?e:{},l);return(0,$.jsxs)("div",{className:xs(),children:[n?(0,$.jsx)(w.o,{error:n,className:xs("error")}):null,s?(0,$.jsx)(js.y,{className:xs("skeleton"),rows:4}):(0,$.jsxs)(Ge.s,{gap:10,wrap:"nowrap",children:[n&&!e?null:(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{className:xs("section-title"),children:$e("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:xs("section-title"),children:$e("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 _s=n(87842);const Ss=(0,g.cn)("ydb-cluster");function Vs({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,_s.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((()=>_s.bn.find((({id:e})=>e===w))),[w]);return(0,$.jsxs)("div",{className:Ss(),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:Ss("header"),children:M?(0,$.jsx)(l.E,{className:Ss("title-skeleton")}):(0,$.jsx)(c.c,{size:"m",status:null===O||void 0===O?void 0:O.Overall,name:E,className:Ss("title")})}),(0,$.jsx)("div",{className:Ss("sticky-wrapper"),children:(0,$.jsx)(d.E,{className:Ss("auto-refresh-control")})}),C&&(0,$.jsx)(ps,{cluster:O,groupStats:L,loading:M,error:z||(null===O||void 0===O?void 0:O.error)}),(0,$.jsx)("div",{className:Ss("tabs-sticky-wrapper"),children:(0,$.jsx)(r.t,{size:"l",allowNotSelected:!0,activeTab:w,items:_s.bn,wrapTo:({id:e},s)=>{const n=(0,_s.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,_s.a)(_s.Bi.overview)).pathname,children:(0,$.jsx)(Ts,{cluster:O,versionToColor:G,loading:M,error:z,additionalClusterProps:e})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.tablets)).pathname,children:(0,$.jsx)("div",{className:Ss("tablets"),children:(0,$.jsx)(b.Q,{loading:M,tablets:A,className:Ss("tablets-table")})})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.tenants)).pathname,children:(0,$.jsx)(te,{additionalTenantsProps:s})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.nodes)).pathname,children:(0,$.jsx)(N.G,{parentRef:y,additionalNodesProps:n})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.storage)).pathname,children:(0,$.jsx)(f.z,{parentRef:y})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.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,_s.a)(w))})})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3456.72251ae0.chunk.js b/ydb/core/viewer/monitoring/static/js/3456.72251ae0.chunk.js new file mode 100644 index 0000000000..393ab756cd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3456.72251ae0.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3456],{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})})}},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"]},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})}},85469:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>Gg});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}({}),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 S={[b.EPathSubTypeSyncIndexImplTable]:"index_table",[b.EPathSubTypeAsyncIndexImplTable]:"index_table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},T={[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"},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&&S[t]||T[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"},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},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},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},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},z=e=>{var t;return null!==(t=e&&L[e])&&void 0!==t&&t},F={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},q={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!0,[x.EPathTypeExternalDataSource]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeReplication]:!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},U=(e,t)=>{var a;return null!==(a=t&&F[t]||e&&q[e])&&void 0!==a&&a},Q=e=>e===x.EPathTypeExternalTable,$=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},je=10,Se=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,je,je)}}(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)})})},Te={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,Te).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}))},j=()=>{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)(Se,{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?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),ze=a(59109),Fe=a(17594),qe=a(89073);const Ue=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 Qe=a(28539),$e=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)($e.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)(Qe.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}){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:"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}]=Ue.useCancelOperationMutation(),[s,{isLoading:i}]=Ue.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}=Ue.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)(qe.L,{children:[(0,d.jsx)(qe.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)(qe.L.Table,{loading:p,className:tt("table"),children:m?(0,d.jsx)(Fe.l,{columns:gt({database:e,refreshTable:v}),columnsWidthLSKey:"selectedOperationColumns",data:g,emptyDataMessage:Ge("title_empty")}):null})]})}var jt=a(99936),St=a(71635),Tt=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",Ft="autoIncrement",qt="defaultValue",Ut="familyName",Qt="prefferedPoolKind",$t="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:Ft,get header(){return Dt("column-title.autoIncrement")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.autoIncrement)return"\u2713"}},Jt={name:qt,get header(){return Dt("column-title.defaultValue")},width:100,render:({row:e})=>String(e.defaultValue)},Kt={name:Ut,get header(){return Dt("column-title.family")},width:100,render:({row:e})=>e.familyName},Yt={name:Qt,get header(){return Dt("column-title.media")},width:100,render:({row:e})=>e.prefferedPoolKind},Zt={name:$t,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 $(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):Q(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):Q(e)||k(e)?function(e){return Xt([Bt,Ht,Gt,Wt],e)}(p):$(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)(Tt.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)(Fe.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)(qe.L,{children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)($e.v,{value:l,onChange:e=>{a(e||void 0,"replaceIn")},placeholder:ca("search-placeholder")})}),(0,d.jsx)(qe.L.Table,{loading:i,children:o?(0,d.jsx)(de.o,{error:o}):(0,d.jsx)(Fe.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:r}=e||{};return{storeSize:t,partitionsIdleTime:(0,vt.MC)(a),partitionsWriteLag:(0,vt.i6)(n),writeSpeed:(0,va.ey)(r)}})),Sa=(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)}})))),Ta=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:Ta}),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",Fa="#f5be9d",qa=({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}),Ua=({width:e})=>(0,d.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${e} l-10 -5 m0 10 l10 -5`}),Qa=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:Fa,children:(0,d.jsx)(Ua,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(qa,{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)(qa,{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:Fa}),(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:Fa}),(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"})})})]})]}),$a=()=>(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)(Ua,{width:La})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(qa,{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)(qa,{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)(qa,{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:Fa})]}),(0,d.jsx)(Qa,{})]}),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:Fa})]}),(0,d.jsx)($a,{})]}),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=>Sa(a,e,t))),h=(0,X.N4)((a=>ja(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)($e.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)(Fe.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 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 Sn=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 "]}'),Tn=(0,Be.g4)("ydb-json-viewer",{en:Sn});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:[Fn(t),l&&(0,d.jsx)(jn,{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:Tn("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 Fn(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 qn=a(28664),Un=a(59136),Qn=a(26195),$n=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)(qn.k,{ref:u,className:fn("filter"),hasClear:!0,size:"m",type:"text",value:a,placeholder:Tn("description_search"),onUpdate:r,autoFocus:!1,onKeyDown:s,endContent:(0,d.jsx)(lt.m,{title:Tn(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:$n.A})})})}),(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Tn("action_next"),onClick:i,disabled:!m,children:(0,d.jsx)(ct.I,{data:Un.A})}),(0,d.jsx)(vn.$,{className:fn("match-btn"),view:"flat-secondary",title:Tn("action_back"),onClick:o,disabled:!m,children:(0,d.jsx)(ct.I,{data:Qn.A})})]}),(0,d.jsxs)("span",{className:fn("match-counter"),title:Tn("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:Tn("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),j=n.useRef(null),S=n.useMemo((()=>({...cr,dynamicInnerRef:f,...e})),[e]),T=({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=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:Tn("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:Tn("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:j,onKeyDown:A,onNextMatch:I,onPrevMatch:D,caseSensitive:o,onUpdateCaseSensitive:_}),(0,d.jsx)("span",{className:fn("extra-tools"),children:s})]}),(()=>{const e=[{name:"content",render:T,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:S,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")}}),jr=({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})},Sr=(e,t)=>e?(0,d.jsx)(jr,{value:e,...t}):null,Tr=(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:Sr},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),Nr={[j.METERING_MODE_REQUEST_UNITS]:"request-units",[j.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:Sr,Storage:Sr,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:Sr,IndexSize:Sr,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(Tr(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"),Fr=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)]},qr=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...Fr(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")}]},Ur=({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"]})},Qr=({data:e})=>(0,d.jsx)(Ur,{data:e,prepareData:qr});var $r=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,$r.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)(Fe.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})}],js=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)}]},Ss=({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=>ja(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:js(l)})})]}):null]})},Ts=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}),...Ts(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)(Ss,{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.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.dropReplication":"Drop async replicaton...","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:j,InFlightTxCount:S,RowUpdates:T,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:Sr(p)});const R=[_,(0,vr.jl)(_r,{LastAccessTime:h,LastUpdateTime:v}),(0,vr.jl)(_r,{ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:j,InFlightTxCount:S}),(0,vr.jl)(_r,{RowUpdates:T,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]})]})},Fs=({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:Ts(e)}),(0,d.jsx)(Ss,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})};const qs=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.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)(Fs,{data:r,path:t,database:a}),[x.EPathTypeExternalTable]:()=>(0,d.jsx)(Jr,{data:r}),[x.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Qr,{data:r}),[x.EPathTypeView]:()=>(0,d.jsx)(ss,{data:r}),[x.EPathTypeReplication]:()=>(0,d.jsx)(vs,{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 Us,Qs=a(74417);function $s(){return $s=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},$s.apply(null,arguments)}const Bs=function(e){return n.createElement("svg",$s({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),Us||(Us=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 Hs({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:Bs})})}var Gs=a(20680),Ws=a(66643),Vs=a(40014),Js=a(25533),Ks=a(90474);const Ys=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];function Zs(e){return null===e?Z.Pd:(0,vt.Xo)((0,he.CR)(ti(e),2))}function Xs(e){return null===e?Z.Pd:(0,va.z3)({value:ti(e),precision:3})}function ei(e){return null===e?Z.Pd:Math.round(100*ti(e))+"%"}function ti(e){return(0,ks.kf)(e)?Number(e):0}const ai={"30m":30*Z.r0,"1h":Z.Jg,"1d":Z.tt,"1w":7*Z.tt},ni=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),ri=(0,Be.g4)("ydb-metric-chart",{en:ni}),si=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-ai[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?ri("not-supported"):a.error)}}catch(a){return{error:a}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),ii=(0,c.cn)("ydb-metric-chart");Ws.W.set({plugins:[Js.YagrPlugin]});const oi=(e,t={})=>{const{dataType:a,scaleRange:n,showLegend:r}=t,s=(e=>{switch(e){case"ms":return Zs;case"size":return Xs;case"percent":return ei;default:return}})(a),i=!e.metrics.length,o=e.metrics.map(((e,t)=>{const a=e.color||Ys[t],n=function(e,t){const a=(0,Ks.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}}}},li={timeline:[],metrics:[]},ci=({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}=si.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=oi(m||li,l);return(0,d.jsxs)("div",{className:ii(null),style:{height:o,width:i},children:[(0,d.jsx)("div",{className:ii("title"),children:t}),g?(0,d.jsx)(ue.a,{}):u?(0,d.jsxs)("div",{className:ii("chart"),children:[(0,d.jsx)(Vs.Ay,{type:"yagr",data:y}),p?(0,d.jsx)(de.o,{className:ii("error"),error:p}):null]}):null]})},di=(0,c.cn)("ydb-timeframe-selector"),ui=({value:e,onChange:t,className:a})=>(0,d.jsx)("div",{className:di(null,a),children:Object.keys(ai).map((a=>(0,d.jsx)(vn.$,{view:"flat",selected:e===a,onClick:()=>t(a),children:a},a)))}),mi=(0,c.cn)("ydb-tenant-dashboard"),pi=({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:mi(null),style:{display:a?"none":void 0},children:[(0,d.jsx)("div",{className:mi("controls"),children:(0,d.jsx)(ui,{value:i,onChange:o})}),(0,d.jsx)("div",{className:mi("charts"),children:t.map((t=>{const n=t.metrics.map((({target:e})=>e)).join("&");return(0,d.jsx)(ci,{database:e,title:t.title,metrics:t.metrics,timeFrame:i,chartOptions:t.options,autorefresh:c,width:m,height:p,onChartDataStatusChange:u,isChartVisible:!a},n)}))})]})},hi=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"}'),vi=(0,Be.g4)("ydb-diagnostics-tenant-overview",{en:hi}),gi=[{title:vi("charts.queries-per-second"),metrics:[{target:"queries.requests",title:vi("charts.queries-per-second")}]},{title:vi("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}}],yi=({database:e})=>(0,d.jsx)(pi,{database:e,charts:gi});var xi=a(67157);const bi=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"}),fi={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},ji=e=>e.sort(((e,t)=>(fi[e.status]||0)-(fi[t.status]||0))),Si=({issue:e,data:t})=>ji(t.filter((t=>e.reason&&-1!==e.reason.indexOf(t.id)))),Ti=({data:e,roots:t})=>t?t.map((t=>{const a=Ti({roots:Si({issue:t,data:e}),data:e});return{...t,reasonsItems:a}})):[],Ni=(0,g.Mz)((e=>e),(e=>bi.endpoints.getHealthcheckInfo.select({database:e}))),Ei=(0,g.Mz)((e=>e),((e,t)=>Ni(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),wi=(0,g.Mz)(Ei,((e=[])=>{return ji((t=e).filter((e=>!t.find((t=>t.reason&&-1!==t.reason.indexOf(e.id))))));var t})),Ci=(0,g.Mz)([Ei,wi],((e=[],t=[])=>Ti({data:e,roots:t}))),Pi=(0,g.Mz)(Ei,((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])=>(fi[e]||0)-(fi[t]||0)))})(e)));let Ii=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY",e}({}),Di=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 Ai=a(63126),_i=a(54090);const Ri={[Di.UNSPECIFIED]:_i.m.Grey,[Di.GREY]:_i.m.Grey,[Di.GREEN]:_i.m.Green,[Di.BLUE]:_i.m.Blue,[Di.YELLOW]:_i.m.Yellow,[Di.ORANGE]:_i.m.Orange,[Di.RED]:_i.m.Red},ki=(0,c.cn)("issue-tree-item"),Oi=({status:e,message:t,type:a,onClick:n})=>(0,d.jsxs)("div",{className:ki(),onClick:n,children:[(0,d.jsx)("div",{className:ki("field",{status:!0}),children:(0,d.jsx)(Or.c,{mode:"icons",status:e,name:a})}),(0,d.jsx)("div",{className:ki("field",{message:!0}),children:t})]}),Mi=(0,c.cn)("issue-tree"),Li=({issueTree:e})=>{const[t,a]=n.useState({}),r=n.useCallback((e=>e?(0,d.jsx)("div",{className:Mi("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)(Ai.G,{name:(0,d.jsx)(Oi,{status:Ri[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:Mi(),children:(0,d.jsx)("div",{className:Mi("block"),children:s([e])})})},zi=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"}'),Fi=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"}'),qi=(0,Be.g4)("ydb-diagnostics-healthcheck",{ru:Fi,en:zi}),Ui=(0,c.cn)("healthcheck");function Qi({tenantName:e}){const[t]=(0,X.Nt)(),{name:a}=(0,xi.Zd)(),{issueTrees:r,loading:s,error:i}=((e,{autorefresh:t}={})=>{const{currentData:a,isFetching:n,error:r,refetch:s}=bi.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||Ii.UNSPECIFIED,o=(0,X.N4)((t=>Pi(t,e)));return{issueTrees:(0,X.N4)((t=>Ci(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:Ui("details"),children:(0,d.jsx)("div",{className:Ui("details-content-wrapper"),children:i?(0,d.jsx)(de.o,{error:i,defaultMessage:qi("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)(Li,{issueTree:e},e.id)))}):qi("status_message.ok")})})}var $i=a(8861),Bi=a(73633),Hi=a(70825),Gi=a(43937),Wi=a(10800),Vi=a(71153),Ji=a(2102),Ki=a(52358);const Yi=(0,c.cn)("healthcheck"),Zi={[Ii.UNSPECIFIED]:Bi.A,[Ii.GOOD]:Hi.A,[Ii.DEGRADED]:Gi.A,[Ii.MAINTENANCE_REQUIRED]:Wi.A,[Ii.EMERGENCY]:Vi.A};function Xi(e){const{tenantName:t,active:a}=e,[r]=(0,X.Nt)(),{metricsTab:s}=(0,X.N4)((e=>e.tenant)),{name:i}=(0,xi.Zd)(),o="ydb_ru"===i,{currentData:l,isFetching:c,error:u}=bi.useGetHealthcheckInfoQuery({database:t},{pollingInterval:o?void 0:r,skip:o}),[m,{currentData:p,isFetching:h}]=bi.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)(Ji.A,{className:Yi("preview"),active:a,children:[(0,d.jsx)("div",{className:Yi("preview-header"),children:(0,d.jsxs)("div",{className:Yi("preview-title-wrapper"),children:[(0,d.jsx)("div",{className:Yi("preview-title"),children:qi("title.healthcheck")}),o?(0,d.jsx)(ia.A,{content:"Healthcheck is disabled. Please update healthcheck manually.",placement:["top"],className:Yi("icon-wrapper"),children:()=>(0,d.jsx)(ct.I,{size:16,className:Yi("icon-warn"),data:Ki.A})}):null]})}),(()=>{if(u)return(0,d.jsx)(de.o,{error:u,defaultMessage:qi("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)||Ii.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:Yi("preview-content"),children:(0,d.jsxs)("div",{className:Yi("preview-issue",{[t]:!0}),children:[(0,d.jsx)(ct.I,{className:Yi("preview-status-icon"),data:Zi[e]}),(0,d.jsx)("div",{className:Yi("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var eo=a(15132),to=a(33775);const ao=(0,c.cn)("ydb-metrics-card"),no=e=>{let t;return"Warning"===e&&(t=_i.m.Yellow),"Danger"===e&&(t=_i.m.Red),t?(0,d.jsx)(to.k,{status:t,mode:"icons",size:"l"}):null};function ro({active:e,label:t,status:a,metrics:n}){return(0,d.jsxs)(Ji.A,{className:ao({active:e}),active:e,children:[(0,d.jsxs)("div",{className:ao("header"),children:[t&&(0,d.jsx)("div",{className:ao("label"),children:t}),no(a)]}),(0,d.jsx)("div",{className:ao("content"),children:n.map((({title:e,...t},a)=>(0,d.jsxs)("div",{className:ao("metric"),children:[(0,d.jsx)("div",{className:ao("metric-title"),children:e}),(0,d.jsx)(eo.O,{size:"xs",colorizeProgress:!0,...t})]},a)))})]})}const so=(0,c.cn)("metrics-cards");function io({poolsCpuStats:e,memoryStats:t,blobStorageStats:a,tabletStorageStats:n,tenantName:r}){const s=(0,$r.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:so(),children:[(0,d.jsx)(re.N_,{to:c.cpu,className:so("tab"),children:(0,d.jsx)(oo,{poolsCpuStats:e,active:i===ae.pA.cpu})}),(0,d.jsx)(re.N_,{to:c.storage,className:so("tab"),children:(0,d.jsx)(lo,{blobStorageStats:a,tabletStorageStats:n,active:i===ae.pA.storage})}),(0,d.jsx)(re.N_,{to:c.memory,className:so("tab"),children:(0,d.jsx)(co,{memoryStats:t,active:i===ae.pA.memory})}),(0,d.jsx)(re.N_,{to:c.healthcheck,className:so("tab"),children:(0,d.jsx)(Xi,{tenantName:r,active:i===ae.pA.healthcheck})})]})}function oo({poolsCpuStats:e=[],active:t}){let a=$i.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,Gs.sf)(n);return $i.Z[i]>$i.Z[a]&&(a=i),{title:t,value:s,capacity:r}}));return(0,d.jsx)(ro,{label:vi("cards.cpu-label"),active:t,metrics:n,status:a})}function lo({blobStorageStats:e=[],tabletStorageStats:t,active:a}){let n=$i.u.Unspecified;const r=(t||e).map((e=>{const{name:t,used:a,limit:r,usage:s}=e,i=(0,Gs.sf)(s);return $i.Z[i]>$i.Z[n]&&(n=i),{title:t,value:a,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(ro,{label:vi("cards.storage-label"),active:a,metrics:r,status:n})}function co({active:e,memoryStats:t=[]}){let a=$i.u.Unspecified;const n=t.map((e=>{const{name:t,used:n,limit:r,usage:s}=e,i=(0,Gs.sf)(s);return $i.Z[i]>$i.Z[a]&&(a=i),{title:t,value:n,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(ro,{label:vi("cards.memory-label"),active:e,metrics:n,status:a})}var uo=a(78762),mo=a(86782),po=a(15298),ho=a(40781);const vo=(0,c.cn)("tenant-overview");function go({title:e,error:t,loading:a,tableClassNameModifiers:r={},...s}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:vo("title"),children:e}),t?(0,d.jsx)(de.o,{error:t}):null,(0,d.jsx)("div",{className:vo("table",r),children:t&&0===s.data.length?null:a?(0,d.jsx)(Tt.Q,{rows:Z.Nz}):(0,d.jsx)(Fe.l,{settings:Z.jp,...s})})]})}var yo=a(82015);const xo=({prefix:e=vi("top"),entity:t,postfix:a,link:r,onClick:s})=>r?(0,d.jsxs)(n.Fragment,{children:[e," ",(0,d.jsx)(yo.E,{to:r,onClick:s,children:t})," ",a]}):`${e} ${t} ${a}`;function bo({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,uo.Nh)(e),width:void 0},a=[(0,uo.kv)(),(0,uo._E)(),t].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,ho.R)(n,mo.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=po.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=xo({entity:vi("nodes"),postfix:vi("by-pools-usage"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(go,{columnsWidthLSKey:mo.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:vi("top-nodes.empty-data")})}function fo({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,uo.Nh)(e),width:void 0},a=[(0,uo.fR)(),(0,uo._E)(),t,(0,uo.Rn)()].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,ho.R)(n,mo.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=po.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=xo({entity:vi("nodes"),postfix:vi("by-load"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(go,{columnsWidthLSKey:mo.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:vi("top-nodes.empty-data")})}var jo=a(69053),So=a(73289),To=a(16332);const No=JSON.parse('{"action_cancel":"Cancel"}'),Eo=(0,Be.g4)("ydb-confirmation-dialog",{en:No}),wo=(0,c.cn)("confirmation-dialog"),Co="confirmation-dialog";function Po({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:wo(null,l),size:"s",onClose:n,disableOutsideClick:!0,open:u,children:[(0,d.jsx)(Hn.l.Header,{caption:(0,d.jsx)("span",{className:wo("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:Eo("action_cancel"),onClickButtonCancel:n,loading:r,renderButtons:c})]})}const Io=To.vt((e=>{const t=To.hS(),a=()=>{t.hide(),t.remove()};return(0,d.jsx)(Po,{...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})}));To.kz(Co,Io);var Do=a(40569),Ao=a(36894);function _o(){const[e]=(0,X.iK)(Z.ld,[]),t=(0,X.N4)(Ao.cu).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const Ro=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"}'),ko=(0,Be.g4)("ydb-save-query-dialog",{en:Ro}),Oo=(0,c.cn)("ydb-save-query");function Mo(e){const t=(0,X.YQ)();return n.useCallback((()=>{To.Ay.show(qo,e),t((0,Ao.gJ)())}),[t,e])}function Lo({dialogProps:e,...t}){const a=Mo(e);return(0,d.jsx)(vn.$,{onClick:a,...t,children:ko("action.save")})}function zo({buttonProps:e={}}){const t=(0,X.YQ)(),a=(0,X.N4)(Ao.aW),n=Mo(),r=()=>{t((0,Ao.Wg)(a)),t((0,Ao.gJ)())};return a?(()=>{const t=[{action:r,text:ko("action.edit-existing")},{action:n,text:ko("action.save-as-new")}];return(0,d.jsx)(Do.r,{items:t,renderSwitcher:t=>(0,d.jsx)(vn.$,{...t,...e,children:ko("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)(Lo,{})}function Fo({onSuccess:e,onCancel:t,onClose:a,open:r}){const s=_o(),i=(0,X.YQ)(),[o,l]=n.useState(""),[c,u]=n.useState(),m=()=>{i((0,Ao.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:ko("action.save")}),(0,d.jsxs)("form",{onSubmit:t=>{t.preventDefault();const a=(n=o)?s.some((e=>e.name.toLowerCase()===n.trim().toLowerCase()))?ko("error.name-exists"):void 0:ko("error.name-not-empty");var n;u(a),a||(i((0,Ao.Wg)(o)),m(),null===e||void 0===e||e())},children:[(0,d.jsxs)(Hn.l.Body,{className:Oo("dialog-body"),children:[(0,d.jsx)("div",{className:Oo("dialog-row"),children:ko("description")}),(0,d.jsxs)("div",{className:Oo("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:Oo("field-title","required"),children:ko("input-label")}),(0,d.jsx)("div",{className:Oo("control-wrapper"),children:(0,d.jsx)(qn.k,{id:"queryName",placeholder:ko("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:ko("button-apply"),textButtonCancel:ko("button-cancel"),onClickButtonCancel:p,propsButtonApply:{type:"submit"}})]})]})}const qo="save-query-dialog",Uo=To.Ay.create((e=>{const t=To.Ay.useModal();return(0,d.jsx)(Fo,{...e,onClose:()=>{var a;null===(a=e.onClose)||void 0===a||a.call(e),t.hide(),t.remove()},open:t.visible})}));To.Ay.register(qo,Uo);const Qo=JSON.parse('{"action_apply":"Don\'t save","context_unsaved-changes-warning":"You have unsaved changes in query editor.\\nDo you want to proceed?"}'),$o=(0,Be.g4)("ydb-change-input-confirmation",{en:Qo});function Bo(){const e=To.Ay.useModal(Co),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)(Lo,{view:"action",size:"l",dialogProps:s})}async function Ho(){return await To.Ay.show(Co,{id:Co,caption:$o("context_unsaved-changes-warning"),textButtonApply:$o("action_apply"),propsButtonApply:{view:"l"},renderButtons:(e,t)=>(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Bo,{}),e]})})}function Go(e){const t=(0,X.N4)(So.Wp),a=n.useMemo((()=>function(e){return async t=>{await Ho()&&e(t)}}(e)),[e]);return t?a:e}const Wo=(0,c.cn)("kv-truncated-query"),Vo=({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:Wo(),children:e}),(0,d.jsx)("span",{className:Wo("message",{color:"secondary"}),children:r})]})}return(0,d.jsx)(rs,{children:e})};var Jo=a(70206),Ko=a.n(Jo);const Yo={...Z.N3,dynamicRenderType:"variable"},Zo=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"}'),Xo=(0,Be.g4)("ydb-top-queries-columns",{en:Zo}),el="topQueriesColumnsWidth",tl="CPUTime",al="QueryText",nl="EndTime",rl="ReadRows",sl="ReadBytes",il="UserSID",ol="OneLineQueryText",ll="QueryHash",cl="Duration",dl="QueryStartAt",ul="ApplicationName",ml={get CPUTime(){return Xo("cpu-time")},get QueryText(){return Xo("query-text")},get EndTime(){return Xo("end-time")},get ReadRows(){return Xo("read-rows")},get ReadBytes(){return Xo("read-bytes")},get UserSID(){return Xo("user")},get OneLineQueryText(){return Xo("query-text")},get QueryHash(){return Xo("query-hash")},get Duration(){return Xo("duration")},get QueryStartAt(){return Xo("start-time")},get ApplicationName(){return Xo("application")}},pl={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 hl(e){return pl[e]}function vl(e){return Boolean(hl(e))}const gl=(0,c.cn)("kv-top-queries"),yl={name:tl,header:ml.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},xl={name:al,header:ml.QueryText,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,d.jsx)("div",{className:gl("query"),children:(0,d.jsx)(Vo,{value:null===(t=e.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:6})})},sortable:!1,width:500},bl={name:nl,header:ml.EndTime,render:({row:e})=>(0,he.r6)(new Date(e.EndTime).getTime()),align:Rt.Ay.RIGHT,width:200},fl={name:rl,header:ml.ReadRows,render:({row:e})=>(0,he.ZV)(e.ReadRows),sortAccessor:e=>Number(e.ReadRows),align:Rt.Ay.RIGHT,width:150},jl={name:sl,header:ml.ReadBytes,render:({row:e})=>(0,he.ZV)(e.ReadBytes),sortAccessor:e=>Number(e.ReadBytes),align:Rt.Ay.RIGHT,width:150},Sl={name:il,header:ml.UserSID,render:({row:e})=>(0,d.jsx)("div",{className:gl("user-sid"),children:e.UserSID||"\u2013"}),sortAccessor:e=>String(e.UserSID),align:Rt.Ay.LEFT},Tl={name:ol,header:ml.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},Nl={name:ll,header:ml.QueryHash,render:({row:e})=>{return t=String(e.QueryText),(Ko().str(t)>>>0).toString(16).toUpperCase().padStart(8,"0");var t},width:130,sortable:!1},El={name:cl,header:ml.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},wl={name:dl,header:ml.QueryStartAt,render:({row:e})=>(0,he.r6)(new Date(e.QueryStartAt).getTime()),sortable:!0,resizeable:!1,defaultOrder:Rt.Ay.DESCENDING},Cl={name:ul,header:ml.ApplicationName,render:({row:e})=>(0,d.jsx)("div",{className:gl("user-sid"),children:e.ApplicationName||"\u2013"}),sortable:!0};function Pl({tenantName:e}){var t,a;const r=(0,X.YQ)(),s=(0,$r.zy)(),i=(0,$r.W6)(),o=(0,ye.mA)(s),[l]=(0,X.Nt)(),c=n.useMemo((()=>[Nl,Tl,yl].map((e=>({...e,sortable:!1})))),[]),{currentData:u,isFetching:m,error:p}=jo.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=Go(n.useCallback((e=>{const{QueryText:t}=e;r((0,So.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=xo({entity:vi("queries"),postfix:vi("by-cpu-time",{executionPeriod:vi("executed-last-hour")}),onClick:()=>{r((0,jo.TX)({from:void 0,to:void 0}))},link:(0,ra.YL)({...o,[ra.vh.diagnosticsTab]:ae.iJ.topQueries})});return(0,d.jsx)(go,{columnsWidthLSKey:el,data:v||[],columns:c,onRowClick:g,title:y,loading:h,error:(0,Nt.Cb)(p),rowClassName:()=>vo("top-queries-row")})}function Il(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 Dl=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:Il(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 Al=a(67884);function _l({path:e,location:t,...a}){const n=(0,ye.mA)(t),r=(0,ye.Ow)({...n,schema:e});return(0,d.jsx)(Al.N,{view:"normal",...a,href:r})}var Rl=a(80420),kl=a(13342),Ol=a(16439),Ml=a(29819);const Ll=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"}'),zl=(0,Be.g4)("ydb-top-shards-columns",{en:Ll}),Fl="topShardsColumnsWidth",ql="TabletId",Ul="CPUCores",Ql="DataSize",$l="Path",Bl="NodeId",Hl="PeakTime",Gl="InFlightTxCount",Wl="IntervalEnd",Vl={get TabletId(){return zl("tablet-id")},get CPUCores(){return zl("cpu-cores")},get DataSize(){return zl("data-size")},get Path(){return zl("path")},get NodeId(){return zl("node-id")},get PeakTime(){return zl("peak-time")},get InFlightTxCount(){return zl("in-flight-tx-count")},get IntervalEnd(){return zl("interval-end")}},Jl={TabletId:void 0,CPUCores:"CPUCores",DataSize:"DataSize",Path:void 0,NodeId:void 0,PeakTime:void 0,InFlightTxCount:"InFlightTxCount",IntervalEnd:void 0};function Kl(e){return Jl[e]}const Yl=(e,t)=>({name:$l,header:Vl.Path,render:({row:a})=>(0,d.jsx)(_l,{path:e+a.Path,location:t,children:a.Path}),sortable:!1,width:300}),Zl={name:Ul,header:Vl.CPUCores,render:({row:e})=>{return t=e.CPUCores||0,`${(0,he.CR)(100*Number(t),2)}%`;var t},align:Rt.Ay.RIGHT},Xl={name:Ql,header:Vl.DataSize,render:({row:e})=>(0,he.ZV)(e.DataSize),align:Rt.Ay.RIGHT},ec={name:ql,header:Vl.TabletId,render:({row:e})=>e.TabletId?(0,d.jsx)(Rl.$,{tabletId:e.TabletId}):"\u2013",sortable:!1,width:220},tc={name:Bl,header:Vl.NodeId,render:({row:e})=>e.NodeId?(0,d.jsx)(_a.E,{to:(0,Ml.vI)(e.NodeId),children:e.NodeId}):"\u2013",align:Rt.Ay.RIGHT},ac={name:Ul,header:Vl.CPUCores,render:({row:e})=>(0,d.jsx)(kl.U,{value:(0,he.CR)(100*Number(e.CPUCores),2),theme:(0,Ol.f)(100*Number(e.CPUCores))}),align:Rt.Ay.RIGHT,sortable:!1,width:140,resizeMinWidth:140},nc={name:Gl,header:Vl.InFlightTxCount,render:({row:e})=>(0,he.ZV)(e.InFlightTxCount),align:Rt.Ay.RIGHT},rc=({tenantName:e,path:t})=>{var a,n;const r=(0,$r.zy)(),s=(0,ye.mA)(r),[i]=(0,X.Nt)(),{currentData:o,isFetching:l,error:c}=Dl.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)=>[ec,Yl(e,t),ac])(e,r),h=xo({entity:vi("shards"),postfix:vi("by-cpu-usage"),link:(0,ra.YL)({...s,[ra.vh.diagnosticsTab]:ae.iJ.topShards})});return(0,d.jsx)(go,{columnsWidthLSKey:Fl,data:m||[],columns:p,title:h,loading:u,error:(0,Nt.Cb)(c)})},sc=[{title:vi("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 ic({tenantName:e,additionalNodesProps:t}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(pi,{database:e,charts:sc}),(0,d.jsx)(fo,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(bo,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(rc,{tenantName:e,path:e}),(0,d.jsx)(Pl,{tenantName:e})]})}var oc=a(73473);function lc({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t=[(0,uo._E)(),(0,uo.Nh)(e),(0,uo.jl)(),(0,uo.fR)(),(0,uo.iX)(),(0,uo.oz)(),(0,uo.qp)(e)].map((e=>({...e,sortable:!1}))),a=t.map((e=>e.name));return[t,(0,ho.R)(a,mo.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=po.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=xo({entity:vi("nodes"),postfix:vi("by-memory"),link:(0,ra.YL)({...a,[ra.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(go,{columnsWidthLSKey:mo.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:vi("top-nodes.empty-data")})}const cc=[{title:vi("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:vi("charts.memory-usage")}],options:{dataType:"size"}}];function dc({tenantName:e,memoryStats:t,memoryUsed:a,memoryLimit:r}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(pi,{database:e,charts:cc}),(0,d.jsx)("div",{className:vo("title"),children:"Memory details"}),(0,d.jsx)("div",{className:vo("memory-info"),children:t?(0,d.jsx)(oc.S,{formatValues:he.vX,stats:t}):(0,d.jsx)(eo.O,{value:a,capacity:r,formatValues:he.vX,colorizeProgress:!0})}),(0,d.jsx)(lc,{tenantName:e})]})}var uc=a(18863),mc=a(10174),pc=a(20831),hc=a(10360);function vc({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,pc.k)(),t=e.map((e=>e.name));return[e,(0,ho.R)(t,hc.YX)]}(),{currentData:o,isFetching:l,error:c}=mc.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=xo({entity:vi("groups"),postfix:vi("by-usage"),link:(0,ra.YL)({...t,[ra.vh.diagnosticsTab]:ae.iJ.storage})});return(0,d.jsx)(go,{columnsWidthLSKey:hc.qK,data:m,columns:s,title:p,loading:u||!a,error:c})}const gc=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`,yc=H.F.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async({path:e},{signal:t})=>{try{const a=await window.api.viewer.sendQuery({query:gc(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 xc({path:e}){var t,a;const n=(0,$r.zy)(),[r]=(0,X.Nt)(),{currentData:s,error:i,isFetching:o}=yc.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,sortable:!1,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,sortable:!1,render:({row:e})=>e.Path?(0,d.jsx)(ut.s,{content:e.Path,children:(0,d.jsx)(_l,{path:String(e.Path),location:n,children:e.Path})}):null}],m=xo({entity:vi("tables"),postfix:vi("by-size")});return(0,d.jsx)(go,{columnsWidthLSKey:"topTablesTableColumnsWidth",data:c||[],columns:u,title:m,loading:l,error:(0,Nt.Cb)(i)})}const bc=[{title:vi("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:vi("charts.storage-usage")}],options:{dataType:"size"}}];function fc({tenantName:e,metrics:t}){const{blobStorageUsed:a,tabletStorageUsed:r,blobStorageLimit:s,tabletStorageLimit:i}=t,o=[{label:(0,d.jsx)(ka,{text:vi("storage.tablet-storage-title"),popoverContent:vi("storage.tablet-storage-description")}),value:(0,d.jsx)(eo.O,{value:r,capacity:i,formatValues:he.j9,colorizeProgress:!0})},{label:(0,d.jsx)(ka,{text:vi("storage.db-storage-title"),popoverContent:vi("storage.db-storage-description")}),value:(0,d.jsx)(eo.O,{value:a,capacity:s,formatValues:he.j9,colorizeProgress:!0})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(pi,{database:e,charts:bc}),(0,d.jsx)(uc.z,{className:vo("storage-info"),title:"Storage details",info:o}),(0,d.jsx)(xc,{path:e}),(0,d.jsx)(vc,{tenant:e})]})}function jc({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),j={...l,Metrics:{...null===l||void 0===l?void 0:l.Metrics,Storage:String(f)}},{blobStorage:S,tabletStorage:T,blobStorageLimit:N,tabletStorageLimit:E,poolsStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D}=(0,Gs.uI)(j),A={blobStorageUsed:S,blobStorageLimit:N,tabletStorageUsed:T,tabletStorageLimit:E};if(u)return(0,d.jsx)("div",{className:vo("loader"),children:(0,d.jsx)(Qs.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:vo(),children:[(0,d.jsxs)("div",{className:vo("info"),children:[(0,d.jsx)("div",{className:vo("top-label"),children:v}),(0,d.jsxs)("div",{className:vo("top"),children:[(0,d.jsx)("div",{className:vo("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)(Hs,{href:_})]}),(0,d.jsx)(io,{poolsCpuStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D,tenantName:e})]}),(()=>{switch(i){case ae.pA.cpu:return(0,d.jsx)(ic,{tenantName:e,additionalNodesProps:a});case ae.pA.storage:return(0,d.jsx)(fc,{tenantName:e,metrics:A});case ae.pA.memory:return(0,d.jsx)(dc,{tenantName:e,memoryUsed:j.MemoryUsed,memoryLimit:j.MemoryLimit,memoryStats:j.MemoryStats});case ae.pA.healthcheck:return(0,d.jsx)(Qi,{tenantName:e});default:return(0,d.jsx)(yi,{database:e})}})()]})}const Sc=(0,c.cn)("kv-detailed-overview");const Tc=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:s}=e,i=a===n;return(0,d.jsx)("div",{className:Sc(),children:i?(0,d.jsx)("div",{className:Sc("section"),children:(0,d.jsx)(jc,{tenantName:a,additionalTenantProps:r,additionalNodesProps:s})}):(0,d.jsx)(qs,{type:t,path:n,database:a})})},Nc={id:ae.iJ.overview,title:"Info"},Ec={id:ae.iJ.schema,title:"Schema"},wc={id:ae.iJ.topQueries,title:"Queries"},Cc={id:ae.iJ.topShards,title:"Top shards"},Pc={id:ae.iJ.nodes,title:"Nodes"},Ic={id:ae.iJ.tablets,title:"Tablets"},Dc={id:ae.iJ.storage,title:"Storage"},Ac={id:ae.iJ.network,title:"Network"},_c={id:ae.iJ.describe,title:"Describe"},Rc={id:ae.iJ.hotKeys,title:"Hot keys"},kc={id:ae.iJ.graph,title:"Graph"},Oc={id:ae.iJ.consumers,title:"Consumers"},Mc={id:ae.iJ.partitions,title:"Partitions"},Lc=[Nc,Ic,_c],zc=[Nc,wc,Cc,Pc,Ic,Dc,Ac,_c,{id:ae.iJ.configs,title:"Configs"},{id:ae.iJ.operations,title:"Operations"}],Fc=[Nc,Ec,Cc,Pc,kc,Ic,Rc,_c],qc=[Nc,Ec,Cc,Pc,Ic,_c],Uc=[Nc,Cc,Pc,_c],Qc=[Nc,Oc,Mc,Pc,Ic,_c],$c=[Nc,Oc,Mc,Pc,Ic,_c],Bc=[Nc,_c],Hc=[Nc,Ec,_c],Gc=[Nc,Ec,_c],Wc={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:zc,[x.EPathTypeExtSubDomain]:zc,[x.EPathTypeColumnStore]:zc,[x.EPathTypeTable]:Fc,[x.EPathTypeColumnTable]:qc,[x.EPathTypeDir]:Uc,[x.EPathTypeTableIndex]:Uc,[x.EPathTypeCdcStream]:Qc,[x.EPathTypePersQueueGroup]:$c,[x.EPathTypeExternalDataSource]:Bc,[x.EPathTypeExternalTable]:Hc,[x.EPathTypeView]:Gc,[x.EPathTypeReplication]:Lc};var Vc=a(81240),Jc=a(80604);const Kc=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"}),Yc=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."}'),Zc=(0,Be.g4)("ydb-hot-keys",{en:Yc});var Xc;function ed(){return ed=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},ed.apply(null,arguments)}const td=function(e){return n.createElement("svg",ed({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Xc||(Xc=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"})))},ad=(0,c.cn)("ydb-hot-keys"),nd="accessSample";function rd({path:e,database:t}){var a,r;const{currentData:s,isFetching:i,error:o}=Kc.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:ad("primary-key-column"),children:[(0,d.jsx)(ct.I,{data:td,width:12,height:7}),e]}),render:({row:e})=>e.keyValues[t],align:Rt.Ay.RIGHT,sortable:!1}))),{name:nd,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)(sd,{}),l||m?(0,d.jsx)("div",{children:Zc("hot-keys-collecting")}):o?(0,d.jsx)(de.o,{error:o}):s?(0,d.jsx)(Fe.l,{wrapperClassName:ad("table"),columns:h,data:s,settings:Z.N3,initialSortOrder:{columnId:nd,order:Rt.Ay.DESCENDING}}):(0,d.jsx)("div",{children:Zc("no-data")})]})}function sd(){const[e,t]=(0,X.iK)(Z.Gj);return e?null:(0,d.jsxs)(Jc.Z,{theme:"info",view:"filled",type:"container",className:ad("help-card"),children:[Zc("help"),(0,d.jsx)(vn.$,{className:ad("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(ct.I,{data:Vc.A,size:18})})]})}var id=a(78524),od=a(9252);const ld=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 cd=a(88610);const dd=(0,c.cn)("node-network");function ud(){}function md({nodeId:e,connected:t,capacity:a,rack:r,status:s,onClick:i=ud,onMouseEnter:o=ud,onMouseLeave:l=ud,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?_i.m.Green:a>=70?_i.m.Yellow:a>=1?_i.m.Red:_i.m.Grey}(t,a);return(0,d.jsx)("div",{ref:m,className:dd({[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 pd=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var hd,vd,gd,yd,xd,bd,fd,jd,Sd,Td,Nd,Ed,wd,Cd,Pd;function Id(){return Id=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},Id.apply(null,arguments)}const Dd=function(e){return n.createElement("svg",Id({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),hd||(hd=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"})),vd||(vd=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"})),gd||(gd=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"})),yd||(yd=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"})),xd||(xd=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),bd||(bd=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"})),fd||(fd=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"})),jd||(jd=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"})),Sd||(Sd=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"})),Td||(Td=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"})),Nd||(Nd=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"})),Ed||(Ed=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"})),wd||(wd=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"})),Cd||(Cd=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),Pd||(Pd=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"})))},Ad=(0,c.cn)("network");function _d({tenantName:e}){var t,a;const[r]=(0,X.Nt)(),s=(0,X.N4)(cd.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}=ld.useGetNetworkInfoQuery(e,{pollingInterval:r});if(v&&void 0===h)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(Qs.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=kd(x,"NodeType"),f=o?kd(null!==(a=o.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:Ad(),children:[g?(0,d.jsx)(de.o,{error:g}):null,x.length>0?(0,d.jsx)("div",{className:Ad("inner"),children:(0,d.jsxs)("div",{className:Ad("nodes-row"),children:[(0,d.jsxs)("div",{className:Ad("left"),children:[(0,d.jsx)("div",{className:Ad("controls-wrapper"),children:(0,d.jsxs)("div",{className:Ad("controls"),children:[(0,d.jsx)(od.k,{value:s,onChange:e=>{i((0,cd.$u)(e))},className:Ad("problem-filter")}),(0,d.jsx)("div",{className:Ad("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{u(!c)},checked:c,children:"ID"})}),(0,d.jsx)("div",{className:Ad("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{p(!m)},checked:m,children:"Racks"})})]})}),(0,d.jsx)(Rd,{nodes:b,showId:c,showRacks:m,clickedNode:o,onClickNode:l})]}),(0,d.jsx)("div",{className:Ad("right"),children:o?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:Ad("label"),children:["Connectivity of node"," ",(0,d.jsx)(re.N_,{className:Ad("link"),to:(0,Ml.vI)(o.NodeId),children:o.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:Ad("nodes-row"),children:(0,d.jsx)(Rd,{nodes:f,isRight:!0,showId:c,showRacks:m,clickedNode:o,onClickNode:l})})]}):(0,d.jsxs)("div",{className:Ad("placeholder"),children:[(0,d.jsx)("div",{className:Ad("placeholder-img"),children:(0,d.jsx)(ct.I,{data:Dd,width:221,height:204})}),(0,d.jsx)("div",{className:Ad("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function Rd({nodes:e,isRight:t,showId:a,showRacks:n,clickedNode:r,onClickNode:s}){const i=(0,X.N4)(cd.yV),o=(0,X.YQ)();let l=0;const c=Object.keys(e).map(((c,u)=>{const m=kd(e[c],"Rack");return(0,d.jsxs)("div",{className:Ad("nodes-container",{right:t}),children:[(0,d.jsxs)("div",{className:Ad("nodes-title"),children:[c," nodes"]}),(0,d.jsx)("div",{className:Ad("nodes"),children:n?Object.keys(m).map(((e,n)=>(0,d.jsxs)("div",{className:Ad("rack-column"),children:[(0,d.jsx)("div",{className:Ad("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=pd(e.Peers)),i===cd.s$.PROBLEMS&&c!==u||i===cd.s$.ALL||t?(l++,(0,d.jsx)(md,{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=pd(m)),i===cd.s$.PROBLEMS&&c!==u||i===cd.s$.ALL||t?(l++,(0,d.jsx)(md,{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===cd.s$.PROBLEMS&&0===l?(0,d.jsx)(id.v,{name:"thumbsUp",width:"200"}):c}function kd(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}const Od=["NodeId","Host","Connections","NetworkUtilization","SendThroughput","ReceiveThroughput","PingTime","ClockSkew"],Md=["NodeId"],Ld=["Host","DC","Rack","Uptime","ConnectStatus","NetworkUtilization","PingTime","ClockSkew"];function zd({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,uo._E)(),(0,uo.Nh)(r,{statusForIcon:"ConnectStatus"}),(0,uo.uk)(),(0,uo.OX)(),(0,uo.jl)(),(0,uo.fr)(),(0,uo.kv)(),(0,uo.SH)(),(0,uo.H)(),(0,uo.DH)(),(0,uo.ui)(),(0,uo.wN)(),(0,uo.pt)()].map((e=>({...e,sortable:(0,mo.sp)(e.name)})))),defaultColumnsIds:Od,requiredColumnsIds:Md,selectedColumnsKey:"networkNodesTableSelectedColumns",groupByParams:Ld}):(0,d.jsx)(_d,{tenantName:e});var r})()})}var Fd=a(24600),qd=a(47058),Ud=a(69775),Qd=a(41775);const $d=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"}'),Bd=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"}'),Hd=(0,Be.g4)("ydb-diagnostics-partitions",{ru:Bd,en:$d}),Gd={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"},Wd={[Gd.PARTITION_ID]:"Partition ID",[Gd.STORE_SIZE]:"Store size",[Gd.WRITE_SPEED]:"Write speed",[Gd.READ_SPEED]:"Read speed",[Gd.WRITE_LAGS]:"Write lags, duration",[Gd.READ_LAGS]:"Read lags, duration",[Gd.UNCOMMITED_MESSAGES]:"Uncommited messages",[Gd.UNREAD_MESSAGES]:"Unread messages",[Gd.START_OFFSET]:"Start offset",[Gd.END_OFFSET]:"End offset",[Gd.COMMITED_OFFSET]:"Commited offset",[Gd.READ_SESSION_ID]:"Read session ID",[Gd.READER_NAME]:"Reader name",[Gd.PARTITION_HOST]:"Partition host",[Gd.CONNECTION_HOST]:"Connection host"},Vd="partitionWriteLag",Jd="partitionWriteIdleTime",Kd={[Vd]:"write lag",[Jd]:"write idle time"},Yd="consumerWriteLag",Zd="consumerReadLag",Xd="consumerReadIdleTime",eu={[Yd]:"write lag",[Zd]:"read lag",[Xd]:"read idle time"},tu=[Gd.PARTITION_ID,Gd.STORE_SIZE,Gd.WRITE_SPEED,Gd.WRITE_LAGS,Gd.START_OFFSET,Gd.END_OFFSET,Gd.PARTITION_HOST],au=Object.values(Gd),nu=({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:Hd("controls.consumerSelector.emptyOption")},...t]}),[e]),g=n.useMemo((()=>{const e=[];for(const t of c){const a=t===Gd.PARTITION_ID,n={title:Wd[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:hu("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(le.l,{className:hu("consumer-select"),label:Hd("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)(Qd.v,{onChange:e=>{h(e)},placeholder:Hd("controls.partitionSearch"),className:hu("search",{partition:!0}),value:p}),(0,d.jsx)(Qd.v,{onChange:e=>{m(e)},placeholder:Hd("controls.generalSearch"),className:hu("search",{general:!0}),value:u}),(0,d.jsx)(Ud.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")]})},ru=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),su=({title:e})=>(0,d.jsx)("div",{className:ru("multiline"),children:e}),iu=()=>(0,d.jsx)("div",{className:ru("read-session"),children:Wd[Gd.READ_SESSION_ID]}),ou=()=>(0,d.jsx)(ka,{className:ru("lags"),text:Wd[Gd.WRITE_LAGS],popoverContent:(0,d.jsx)(Va,{text:Hd("lagsPopover.writeLags"),type:"write"})}),lu=()=>(0,d.jsx)(ka,{className:ru("lags"),text:Wd[Gd.READ_LAGS],popoverContent:(0,d.jsx)(Va,{text:Hd("lagsPopover.readLags"),type:"read"})}),cu=()=>(0,d.jsx)(ka,{className:ru("messages"),text:Wd[Gd.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:ru("messages-popover-content"),children:Hd("headers.unread")})}),du=()=>(0,d.jsx)(ka,{className:ru("messages"),text:Wd[Gd.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:ru("messages-popover-content"),children:Hd("headers.uncommited")})}),uu=(0,c.cn)("ydb-diagnostics-partitions-columns"),mu=[{name:Gd.PARTITION_ID,header:(0,d.jsx)(su,{title:Wd[Gd.PARTITION_ID]}),sortAccessor:e=>(0,ks.kf)(e.partitionId)&&Number(e.partitionId),align:Rt.Ay.LEFT,render:({row:e})=>e.partitionId},{name:Gd.STORE_SIZE,header:(0,d.jsx)(su,{title:Wd[Gd.STORE_SIZE]}),align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.z3)(e.storeSize)},{name:Gd.WRITE_SPEED,header:Wd[Gd.WRITE_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ca,{data:e.writeSpeed})},{name:Gd.READ_SPEED,header:Wd[Gd.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:Gd.WRITE_LAGS,header:(0,d.jsx)(ou,{}),className:uu("lags-header"),sub:[{name:Vd,header:Kd[Vd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteLag)},{name:Jd,header:Kd[Jd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteIdleTime)}]},{name:Gd.READ_LAGS,header:(0,d.jsx)(lu,{}),className:uu("lags-header"),sub:[{name:Yd,header:eu[Yd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerWriteLag)},{name:Zd,header:eu[Zd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadLag)},{name:Xd,header:eu[Xd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadIdleTime)}]},{name:Gd.UNCOMMITED_MESSAGES,header:(0,d.jsx)(du,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.uncommitedMessages},{name:Gd.UNREAD_MESSAGES,header:(0,d.jsx)(cu,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.unreadMessages},{name:Gd.START_OFFSET,header:(0,d.jsx)(su,{title:Wd[Gd.START_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.startOffset)&&Number(e.startOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.startOffset},{name:Gd.END_OFFSET,header:(0,d.jsx)(su,{title:Wd[Gd.END_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.endOffset)&&Number(e.endOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.endOffset},{name:Gd.COMMITED_OFFSET,header:(0,d.jsx)(su,{title:Wd[Gd.COMMITED_OFFSET]}),sortAccessor:e=>(0,ks.kf)(e.commitedOffset)&&Number(e.commitedOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.commitedOffset},{name:Gd.READ_SESSION_ID,header:(0,d.jsx)(iu,{}),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:Gd.READER_NAME,header:(0,d.jsx)(su,{title:Wd[Gd.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:Gd.PARTITION_HOST,header:(0,d.jsx)(su,{title:Wd[Gd.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,Ml.vI)(e.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Gd.CONNECTION_HOST,header:(0,d.jsx)(su,{title:Wd[Gd.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,Ml.vI)(e.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}],pu=mu.filter((e=>tu.includes(e.name))),hu=(0,c.cn)("ydb-diagnostics-partitions"),vu=({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}=Fd.m.useGetNodesListQuery(void 0),x=v&&void 0===h,b=(0,X.N4)(Fd.K),[f,j]=(0,X.iK)(Z.bs),[S,T]=(e=>{const[t,a]=n.useState([]),[r,s]=n.useState([]);return n.useEffect((()=>{e?(a(mu),s(au)):(a(pu),s(tu))}),[e]),[t,r]})(l),N=p?y.hT:{path:e,database:t,consumerName:l},{currentData:E,isFetching:w,error:C}=qd.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,qd.WD)(void 0))}),[a,p,l,i]);const A=n.useMemo((()=>S.filter((e=>!f.includes(e.name)))),[S,f]),_=e=>{j(e)},R=e=>{a((0,qd.WD)(e))},k=p||x||P,O=g||m||C;return(0,d.jsxs)("div",{className:hu(),children:[(0,d.jsx)("div",{className:hu("controls"),children:(0,d.jsx)(nu,{consumers:i,selectedConsumer:l,onSelectedConsumerChange:R,selectDisabled:Boolean(O)||k,partitions:D,onSearchChange:s,hiddenColumns:f,onHiddenColumnsChange:_,initialColumnsIds:T})}),O?(0,d.jsx)(de.o,{error:O}):null,(0,d.jsx)("div",{className:hu("table-wrapper"),children:(0,d.jsx)("div",{className:hu("table-content"),children:E?k?(0,d.jsx)(Tt.Q,{className:hu("loader")}):(0,d.jsx)(Fe.l,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:hu("table"),data:r,columns:A,settings:Z.N3,emptyDataMessage:Hd("table.emptyDataMessage")}):null})})]})};var gu=a(44433),yu=a(23812);const xu=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),bu=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),fu=(0,Be.g4)("ydb-date-range",{ru:bu,en:xu});function ju(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 Su=(0,c.cn)("date-range"),Tu={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},Nu=({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:Su(null,a),children:(0,d.jsx)(yu.k,{withPresets:!0,className:Su("range-input",{[ju(i)]:!0}),timeZone:o,value:i||Tu,allowNullableValues:!0,size:"m",format:fu("date-time-format"),onUpdate:s,placeholder:`${fu("date-time-format")} - ${fu("date-time-format")}`,withApplyButton:!0})})},Eu=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running"}'),wu=(0,Be.g4)("ydb-diagnostics-top-queries",{en:Eu}),Cu={...Yo,disableSortReset:!0};function Pu(e){const[t,a]=(0,X.GY)({initialSortColumn:e,initialSortOrder:-1,multiple:!0}),r=n.useMemo((()=>(0,X.JN)(t,hl)),[t]);return{tableSort:t,handleTableSort:a,backendSort:r}}const Iu=({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}=Pu(dl),{currentData:u,isFetching:m,error:p}=jo.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((()=>[Sl,wl,xl,Cl].map((e=>({...e,sortable:vl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[p?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(p)}):null,(0,d.jsx)(qe.L.Table,{loading:h,children:(0,d.jsx)(Fe.l,{emptyDataMessage:wu("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:g,data:v,settings:Cu,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:o,onSort:l})})]})},Du=({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}=Pu(tl),{currentData:m,isFetching:p,error:h}=jo.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((()=>[Nl,yl,xl,bl,El,fl,jl,Sl].map((e=>({...e,sortable:vl(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[h?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(h)}):null,(0,d.jsx)(qe.L.Table,{loading:v,children:(0,d.jsx)(Fe.l,{emptyDataMessage:wu("no-data"),columnsWidthLSKey:el,columns:y,data:g||[],settings:Cu,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:l,onSort:c})})]})},Au=(0,c.cn)("kv-top-queries"),_u={top:"top",running:"running"},Ru=[{value:_u.top,get content(){return wu("mode_top")}},{value:_u.running,get content(){return wu("mode_running")}}],ku=xt.z.nativeEnum(_u).catch(_u.top),Ou=({tenantName:e})=>{const t=(0,X.YQ)(),a=(0,$r.zy)(),r=(0,$r.W6)(),[i=_u.top,o]=(0,s.useQueryParam)("queryMode",s.StringParam),l=ku.parse(i),c=l===_u.top,u=(0,X.N4)((e=>e.executeTopQueries)),m=Go(n.useCallback((e=>{t((0,So.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?Du:Iu;return(0,d.jsxs)(qe.L,{children:[(0,d.jsxs)(qe.L.Controls,{children:[(0,d.jsx)(gu.a,{options:Ru,value:l,onUpdate:o}),(0,d.jsx)($e.v,{value:u.text,onChange:e=>{t((0,jo.TX)({text:e}))},placeholder:wu("filter.text.placeholder"),className:Au("search")}),c?(0,d.jsx)(Nu,{from:u.from,to:u.to,onChange:e=>{t((0,jo.TX)(e))}}):null]}),(0,d.jsx)(p,{database:e,onRowClick:m,rowClassName:Au("row")})]})};var Mu=a(46496),Lu=a(87747);const zu=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%"}'),qu=(0,Be.g4)("ydb-diagnostics-top-shards",{ru:Fu,en:zu}),Uu=({value:e,onChange:t})=>{const a=e.mode===Lu.h.Immediate?void 0:e.from,r=e.mode===Lu.h.Immediate?void 0:e.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(gu.a,{value:e.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))(Lu.h,e)){const t=Object.values(Lu.h).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}t({mode:e})},children:[(0,d.jsx)(gu.a.Option,{value:Lu.h.Immediate,children:qu("filters.mode.immediate")}),(0,d.jsx)(gu.a.Option,{value:Lu.h.History,children:qu("filters.mode.history")})]}),(0,d.jsx)(Nu,{from:a,to:r,onChange:e=>{t({mode:Lu.h.History,...e})}})]})};const Qu=(0,c.cn)("top-shards"),$u={...Z.N3,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:Rt.Ay.DESCENDING};function Bu(e){return e?(0,he.r6)(new Date(e).getTime()):"\u2013"}function Hu(e){return e.to="now",e.from="now-1h",e}const Gu=({tenantName:e,path:t,type:a})=>{var r,s;const i=(0,X.YQ)(),o=(0,$r.zy)(),[l]=(0,X.Nt)(),c=(0,X.N4)((e=>e.shardsWorkload)),[u,m]=n.useState((()=>{const e={...c};return e.mode||(e.mode=Lu.h.Immediate),e.from||e.to||Hu(e),e})),{tableSort:p,handleTableSort:h,backendSort:v}=function(){const[e,t]=(0,X.GY)({initialSortColumn:Ul,fixedOrderType:-1,multiple:!0}),a=n.useMemo((()=>(0,X.JN)(e,Kl)),[e]);return{tableSort:e,handleTableSort:t,backendSort:a}}(),{currentData:g,isFetching:y,error:x}=Mu.Xx.useSendShardQueryQuery({database:e,path:t,sortOrder:v,filters:u},{pollingInterval:l}),b=y&&void 0===g,f=(null===g||void 0===g||null===(r=g.resultSets)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.result)||[],j=e=>{const t={...e};if(!c.from&&!c.to&&!e.from&&!e.to)switch(e.mode){case Lu.h.Immediate:t.from=t.to=void 0;break;case Lu.h.History:Hu(t)}i((0,Mu.rF)(e)),m((e=>({...e,...t})))},S=n.useMemo((()=>{const t=((e,t)=>[Yl(e,t),Zl,Xl,ec,tc,nc])(e,o),a=t.map((e=>{return{...e,sortable:(t=e.name,Boolean(Kl(t)))};var t}));return u.mode===Lu.h.History&&(a.splice(5,0,{name:Hl,render:({row:e})=>Bu(e.PeakTime),sortable:!1}),a.push({name:Wl,render:({row:e})=>Bu(e.IntervalEnd)})),a}),[u.mode,o,e]);return(0,d.jsxs)(qe.L,{children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)(Uu,{value:u,onChange:j})}),u.mode===Lu.h.History&&(0,d.jsx)("div",{className:Qu("hint"),children:qu("description")}),x?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(x)}):null,(0,d.jsx)(qe.L.Table,{loading:b,children:x&&!f?null:!f||k(a)?qu("no-data"):(0,d.jsx)(Fe.l,{columnsWidthLSKey:Fl,columns:S,data:f,settings:$u,onSort:h,sortOrder:p})})]})},Wu=(0,c.cn)("kv-tenant-diagnostics");const Vu=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?zc:zc.filter((e=>e.id!==ae.iJ.configs)))({hasFeatureFlags:u}):(p=e.type)&&Wc[p]||Uc;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:Wu(),children:[h?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:h.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:Wu("header-wrapper"),children:(0,d.jsxs)("div",{className:Wu("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:Wu("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:Wu("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)(Tc,{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)(Ou,{tenantName:l});case ae.iJ.topShards:return(0,d.jsx)(Gu,{tenantName:l,path:r,type:n});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)(St.C,{path:r,database:l});case ae.iJ.storage:return(0,d.jsx)(jt.z,{database:l,parentRef:t});case ae.iJ.network:return(0,d.jsx)(zd,{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)(rd,{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)(vu,{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..."})}})()})]})},Ju=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","query-duration.description":"Duration of server-side query execution","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","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: ","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),Ku=(0,Be.g4)("ydb-query-editor",{en:Ju}),Yu=(0,c.cn)("ydb-queries-history");const Zu=function({changeUserInput:e}){const t=(0,X.YQ)(),a=(0,X.N4)(So.py),n=(0,X.N4)(So.jY),r=[...a].reverse(),s=Go((a=>{e({input:a.queryText}),t((0,oe.sH)(ae.tQ.newQuery))})),i=[{name:"queryText",header:Ku("history.queryText"),render:({row:e})=>(0,d.jsx)("div",{className:Yu("query"),children:(0,d.jsx)(Vo,{value:e.queryText,maxQueryHeight:6})}),sortable:!1,width:600},{name:"EndTime",header:Ku("history.endTime"),render:({row:e})=>e.endTime?(0,he.r6)(e.endTime.toString()):"-",align:"right",width:200,sortable:!1},{name:"Duration",header:Ku("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)(qe.L,{className:Yu(),children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)($e.v,{value:n,onChange:e=>{t((0,So.Ni)(e))},placeholder:Ku("filter.text.placeholder"),className:Yu("search")})}),(0,d.jsx)(qe.L.Table,{children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"queriesHistoryTableColumnsWidth",columns:i,data:r,settings:Yo,emptyDataMessage:Ku(n?"history.empty-search":"history.empty"),onRowClick:e=>s(e),rowClassName:()=>Yu("table-row")})})]})};var Xu=a(13847),em=a(72093);const tm=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"});function am(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 nm=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"}'),rm=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"}'),sm=(0,Be.g4)("ydb-query-settings-dialog",{en:nm,ru:rm}),im=[{value:Nt.Wg.implicit,content:Nt._d[Nt.Wg.implicit],text:Ku("transaction-mode-description.implicit"),isDefault:!0},{value:Nt.Wg.serializable,content:Nt._d[Nt.Wg.serializable],text:Ku("transaction-mode-description.serializable")},{value:Nt.Wg.onlinero,content:Nt._d[Nt.Wg.onlinero],text:Ku("transaction-mode-description.onlinero")},{value:Nt.Wg.stalero,content:Nt._d[Nt.Wg.stalero],text:Ku("transaction-mode-description.stalero")},{value:Nt.Wg.snapshot,content:Nt._d[Nt.Wg.snapshot],text:Ku("transaction-mode-description.snapshot")}],om=[{value:Nt.ei.query,content:Nt.om[Nt.ei.query],text:Ku("method-description.query"),isDefault:!0},{value:Nt.ei.script,content:Nt.om[Nt.ei.script],text:Ku("method-description.script")},{value:Nt.ei.scan,content:Nt.om[Nt.ei.scan],text:Ku("method-description.scan")},{value:Nt.ei.data,content:Nt.om[Nt.ei.data],text:Ku("method-description.data")},{value:Nt.ei.pg,content:Nt.om[Nt.ei.pg],text:Ku("method-description.pg")}],lm=[{value:Nt.pE.none,content:Nt.Pn[Nt.pE.none],text:Ku("statistics-mode-description.none"),isDefault:!0},{value:Nt.pE.basic,content:Nt.Pn[Nt.pE.basic],text:Ku("statistics-mode-description.basic")},{value:Nt.pE.full,content:Nt.Pn[Nt.pE.full],text:Ku("statistics-mode-description.full")},{value:Nt.pE.profile,content:Nt.Pn[Nt.pE.profile],text:Ku("statistics-mode-description.profile")}],cm=[{value:Nt.PB.off,content:Nt.PX[Nt.PB.off],text:Ku("tracing-level-description.off"),isDefault:!0},{value:Nt.PB.toplevel,content:Nt.PX[Nt.PB.toplevel],text:Ku("tracing-level-description.toplevel")},{value:Nt.PB.basic,content:Nt.PX[Nt.PB.basic],text:Ku("tracing-level-description.basic")},{value:Nt.PB.detailed,content:Nt.PX[Nt.PB.detailed],text:Ku("tracing-level-description.detailed")},{value:Nt.PB.diagnostic,content:Nt.PX[Nt.PB.diagnostic],text:Ku("tracing-level-description.diagnostic")},{value:Nt.PB.trace,content:Nt.PX[Nt.PB.trace],text:Ku("tracing-level-description.trace")}],dm={transactionMode:{title:sm("form.transaction-mode"),options:im},queryMode:{title:sm("form.query-mode"),options:om},statisticsMode:{title:sm("form.statistics-mode"),options:lm},tracingLevel:{title:sm("form.tracing-level"),options:cm},timeout:{title:sm("form.timeout")},limitRows:{title:sm("form.limit-rows")}};function um({currentSettings:e,defaultSettings:t}){const a=am(e,t),n={};return a.forEach((t=>{const a=dm[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 mm=a(80967);const pm=()=>{const[e,t]=(0,mm.i)(Z.fr);let a;try{a=Nt.id.parse(e)}catch{a=void 0}return[a,t]};var hm=a(95312);const vm=()=>{const[e,t]=(0,mm.i)(Z.YQ),[a]=pm(),[n]=(0,hm.X)(),r=a?am(a,Nt.jU):[],s=n?am(n,Nt.jU):[],i=r.length>0,o=a?um({currentSettings:a,defaultSettings:Nt.jU}):{},l=n?um({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 gm=a(53472);let ym=function(e){return e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear",e}({});const xm=e=>{localStorage.setItem(e,"true")},bm=e=>{localStorage.removeItem(e)};function fm(e){return function(t,a){switch(a){case ym.triggerCollapse:return xm(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case ym.triggerExpand:return bm(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case ym.clear:return bm(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const jm=(0,c.cn)("kv-pane-visibility-button");function Sm({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:jm({hidden:a,type:"collapse"},s),children:(0,d.jsx)(ct.I,{data:gm.A,className:jm({[r]:!0})})})}),(0,d.jsx)(lt.m,{title:"Expand",children:(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:t,className:jm({hidden:!a,type:"expand"},s),children:(0,d.jsx)(ct.I,{data:gm.A,className:jm({[r]:!0},"rotate")})})})]})}var Tm=a(31819),Nm=a(72976);const Em=function({disabled:e}){const t=(0,X.YQ)();return(0,d.jsx)(vn.$,{onClick:()=>{t((0,Nm.Jf)())},view:"flat-secondary",disabled:e,title:"Fullscreen",children:(0,d.jsx)(ct.I,{data:Tm.A})})};var wm,Cm=a(98392);function Pm(){return Pm=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},Pm.apply(null,arguments)}const Im=function(e){return n.createElement("svg",Pm({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),wm||(wm=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 Am=(0,c.cn)("ydb-fullscreen"),_m=null!==(Dm=document.getElementById("fullscreen-root"))&&void 0!==Dm?Dm:void 0;const Rm=function({children:e,className:t}){const a=(0,X.N4)((e=>e.fullscreen)),r=(0,X.YQ)(),s=n.useCallback((()=>{r((0,Nm.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===_m||void 0===_m||_m.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===_m||void 0===_m||_m.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)(Cm.Z,{container:i,children:(0,d.jsxs)("div",{className:Am({fullscreen:a},t),children:[(0,d.jsx)(vn.$,{onClick:s,view:"raised",className:Am("close-button"),children:(0,d.jsx)(ct.I,{data:Im})}),(0,d.jsx)("div",{className:Am("content"),children:e})]})})}):null},km=n.memo((function(e){const{className:t,value:a}=e,n=(0,X.YQ)();return(0,d.jsx)("span",{className:Fm("cell",t),onClick:e=>n((0,pe.DK)(e.target,a,"cell")),children:a})})),Om=JSON.parse('{"empty":"Table is empty"}'),Mm=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),Lm=(0,Be.g4)("ydb-query-result-table",{ru:Mm,en:Om}),zm={...Z.N3,stripedRows:!0,sortable:!1,displayIndices:!0},Fm=(0,c.cn)("ydb-query-result-table"),qm=(e,t)=>t,Um=(e,t)=>t+1,Qm=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)(km,{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)(km,{value:String(e[a])})})))})(a)),[a,t]),i=n.useMemo((()=>({...zm,...r})),[r]);return Array.isArray(a)?s.length?(0,d.jsx)(Fe.l,{data:a,columns:s,settings:i,rowKey:qm,visibleRowIndex:Um,wrapperClassName:Fm("table-wrapper")}):(0,d.jsx)("div",{className:Fm("message"),children:Lm("empty")}):null},$m=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"}),Bm=(0,c.cn)("kv-preview"),Hm=({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}=$m.useSendQueryQuery({database:e,query:l,action:Q(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:Bm("loader-container"),children:(0,d.jsx)(Qs.a,{size:"m"})});let g;o?m&&(g=(0,d.jsx)("div",{className:Bm("message-container","error"),children:(0,Nt.Cb)(m)})):g=(0,d.jsx)("div",{className:Bm("message-container"),children:Ku("preview.not-available")});const y=null!==(s=g)&&void 0!==s?s:(0,d.jsx)("div",{className:Bm("result"),children:(0,d.jsx)(Qm,{data:h.result,columns:h.columns})});return(0,d.jsxs)("div",{className:Bm(),children:[(()=>{var e,a;return(0,d.jsxs)("div",{className:Bm("header"),children:[(0,d.jsxs)("div",{className:Bm("title"),children:[Ku("preview.title"),(0,d.jsxs)(it.E,{color:"secondary",variant:"body-2",children:[h.truncated?`${Ku("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:Bm("table-name"),children:t})]}),(0,d.jsxs)("div",{className:Bm("controls-left"),children:[(0,d.jsx)(Em,{disabled:Boolean(m)}),(0,d.jsx)(vn.$,{view:"flat-secondary",onClick:v,title:Ku("preview.close"),children:(0,d.jsx)(ct.I,{data:Vc.A,size:18})})]})]})})(),(0,d.jsx)(Rm,{children:y})]})};var Gm=a(27738),Wm=a(594),Vm=a(1155);const Jm=(0,c.cn)("ydb-query-settings-description"),Km=({querySettings:e,prefix:t})=>(0,d.jsxs)("div",{className:Jm("message"),children:[t,Object.entries(e).map((([e,t],a,n)=>(0,d.jsxs)("span",{className:Jm("description-item"),children:[`${e}: ${t}`,a<n.length-1?", ":null]},a)))]});var Ym=a(13066);async function Zm(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 Xm(e){return e.replace(/\$/g,"\\$")}const ep=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(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)`,tp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(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)`,ap=()=>'-- 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);',np=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(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?`\`${Xm(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?`\`${Xm(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"`"+Xm(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?`\`${Xm(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`\`${Xm(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?`\`${Xm(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?`\`${Xm(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?`${Xm(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?`\`${Xm(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?`\`${Xm(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?`\`${Xm(e.relativePath)}\``:"${1:<my_topic>}"};`,mp=e=>`CREATE VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(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?`\`${Xm(e.relativePath)}\``:"${1:<my_view>}"};`,hp=e=>`DROP ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_replication>}"};`,vp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication\nALTER ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_replication>}"} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,gp=e=>`ALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`,yp=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?`\`${Xm(a)}\``:"${1:<my_table>}"} DROP INDEX ${Xm(null!==t&&void 0!==t?t:"")||"${2:<index_name>}"};`},xp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(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.`,bp=()=>"-- 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.",fp=()=>"-- 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.",jp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"}\nWHERE \${2:Key1 = 1};`,Sp=()=>"-- 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.",Tp=()=>"-- 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?`\`${Xm(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.`,Ep=e=>`REVOKE \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(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.`,wp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"}\nSET \${2:Column1 = 'foo', Column2 = 'bar'}\nWHERE \${3:Key1 = 1};`,Cp=e=>`DROP TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${Xm(e.relativePath)}\``:"${1:<my_table>}"};`,Pp=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.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-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"}'),Ip=(0,Be.g4)("ydb-new-sql",{en:Pp});function Dp(){const e=(e=>{const t=t=>()=>{e(t())};return{createRowTable:t(ep),createColumnTable:t(tp),createAsyncReplication:t(ap),alterAsyncReplication:t(vp),dropAsyncReplication:t(hp),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(Cp),deleteRows:t(jp),updateTable:t(wp),createUser:t(fp),createGroup:t(bp),createCdcStream:t(xp),grantPrivilege:t(Np),revokePrivilege:t(Ep),dropUser:t(Tp),dropGroup:t(Sp),addTableIndex:t(gp),dropTableIndex:t(yp)}})(Go(n.useCallback((e=>{Zm(e)}),[]))),t=[{text:Ip("menu.tables"),items:[{text:Ip("action.create-row-table"),action:e.createRowTable},{text:Ip("action.create-column-table"),action:e.createColumnTable},{text:Ip("action.create-external-table"),action:e.createExternalTable},{text:Ip("action.upsert-to-table"),action:e.upsertQuery},{text:Ip("action.update-table"),action:e.updateTable},{text:Ip("action.alter-table"),action:e.alterTable},{text:Ip("action.select-rows"),action:e.selectQuery},{text:Ip("action.delete-rows"),action:e.deleteRows},{text:Ip("action.drop-table"),action:e.dropTable},{text:Ip("action.drop-external-table"),action:e.dropExternalTable},{text:Ip("action.add-index"),action:e.addTableIndex},{text:Ip("action.drop-index"),action:e.dropTableIndex}]},{text:Ip("menu.topics"),items:[{text:Ip("action.create-topic"),action:e.createTopic},{text:Ip("action.alter-topic"),action:e.alterTopic},{text:Ip("action.drop-topic"),action:e.dropTopic}]},{text:Ip("menu.replication"),items:[{text:Ip("action.create-async-replication"),action:e.createAsyncReplication},{text:Ip("action.alter-async-replication"),action:e.alterAsyncReplication},{text:Ip("action.drop-async-replication"),action:e.dropAsyncReplication}]},{text:Ip("menu.capture"),items:[{text:Ip("action.create-cdc-stream"),action:e.createCdcStream}]},{text:Ip("menu.users"),items:[{text:Ip("action.create-user"),action:e.createUser},{text:Ip("action.create-group"),action:e.createGroup},{text:Ip("action.drop-user"),action:e.dropUser},{text:Ip("action.drop-group"),action:e.dropGroup},{text:Ip("action.grant-privilege"),action:e.grantPrivilege},{text:Ip("action.revoke-privilege"),action:e.revokePrivilege}]}];return(0,d.jsx)(Do.r,{items:t,renderSwitcher:e=>(0,d.jsxs)(vn.$,{...e,children:[Ip("button.new-sql"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(Ym.A,{})})]}),popupProps:{placement:"top"}})}const Ap=(0,c.cn)("ydb-query-editor-controls"),_p=({onClick:e,runIsLoading:t})=>{const{changedCurrentSettings:a,changedCurrentSettingsDescriptions:n}=vm(),r=a.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(Vm.m,{disabled:0===a.length,content:(0,d.jsx)(Km,{prefix:Ku("gear.tooltip"),querySettings:n}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(vn.$,{onClick:e,loading:t,className:Ap("gear-button"),...r,children:[(0,d.jsx)(ct.I,{data:Gm.A,size:16}),r?(0,d.jsxs)("div",{className:Ap("changed-settings"),children:["(",a.length,")"]}):null]})})},Rp=({disabled:e,isLoading:t,highlightedAction:a,handleSendExecuteClick:n,onSettingsButtonClick:r,handleGetExplainQueryClick:s})=>{const i=(0,X.N4)(So.Wp),o="execute"===a?"action":void 0,l="explain"===a?"action":void 0,c=e||!i;return(0,d.jsxs)("div",{className:Ap(),children:[(0,d.jsxs)("div",{className:Ap("left"),children:[(0,d.jsxs)(vn.$,{onClick:()=>{n(i)},disabled:c,loading:t,view:o,className:Ap("run-button"),children:[(0,d.jsx)(ct.I,{data:Wm.A,size:14}),"Run"]}),(0,d.jsx)(vn.$,{onClick:()=>{s(i)},disabled:c,loading:t,view:l,children:"Explain"}),(0,d.jsx)(_p,{onClick:r,runIsLoading:t})]}),(0,d.jsxs)("div",{className:Ap("right"),children:[(0,d.jsx)(Dp,{}),(0,d.jsx)(zo,{buttonProps:{disabled:e}})]})]})},kp=(0,c.cn)("kv-divider");const Op=function(){return(0,d.jsx)("div",{className:kp()})},Mp=(0,c.cn)("ydb-query-elapsed-time");function Lp({className:e}){const[,t]=n.useState({}),[a]=n.useState(Date.now()),r=Date.now()-a;n.useEffect((()=>{const e=setInterval((()=>{t({})}),Z.KF);return()=>{clearInterval(e)}}),[]);const s=r>Z.Jg*Z.KF?(0,nt.p0)(r).format("hh:mm:ss"):(0,nt.p0)(r).format("mm:ss");return(0,d.jsx)(Ct.J,{className:Mp(null,e),children:s})}var zp=a(64280),Fp=a(80953);function qp(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 Up=(0,c.cn)("kv-query-execution-status"),Qp=()=>{const{isIndicatorShown:e,changedLastExecutionSettingsDescriptions:t}=vm();return e?(0,d.jsx)(Vm.m,{openDelay:0,content:(0,d.jsx)(Km,{prefix:Ku("banner.query-settings.message"),querySettings:t}),children:(0,d.jsx)(ct.I,{data:Gi.A,className:Up("query-settings-icon")})}):null},$p=({className:e,error:t,loading:a})=>{let n,r;if(a)n=(0,d.jsx)(Fp.t,{size:"xs"}),r="Running";else if((0,ee.F0)(t)&&"ECONNABORTED"===t.code)n=(0,d.jsx)(ct.I,{data:zp.A}),r="Connection aborted";else if(qp(t))n=(0,d.jsx)(ct.I,{data:st.A}),r="Stopped";else{const e=Boolean(t);n=(0,d.jsx)(ct.I,{data:e?Wi.A:Hi.A,className:Up("result-status-icon",{error:e})}),r=e?"Failed":"Completed"}return(0,d.jsxs)("div",{className:Up(null,e),children:[n,r,qp(t)||a?null:(0,d.jsx)(Qp,{})]})};var Bp=a(66528);const Hp=(0,c.cn)("cancel-query-button");function Gp({isLoading:e,isError:t,onClick:a}){return(0,d.jsxs)(vn.$,{loading:e,onClick:a,className:Hp("stop-button",{error:t}),children:[(0,d.jsx)(ct.I,{data:Bp.A,size:16}),Ku("action.stop")]})}const Wp=(0,c.cn)("ydb-query-duration"),Vp=({duration:e})=>{if(!e)return null;const t=(0,vt.Bi)((0,vt.Jc)(e),1);return(0,d.jsx)("span",{className:Wp(),children:(0,d.jsx)(ka,{className:Wp("item-with-popover"),contentClassName:Wp("popover-content"),text:t,popoverClassName:Wp("popover"),popoverContent:Ku("query-duration.description"),buttonProps:{className:Wp("popover-button")}})})};var Jp=a(55299);const Kp=(0,c.cn)("ydb-query-settings-banner");function Yp(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=vm();return e?(0,d.jsx)(Jp.F,{className:Kp(),theme:"info",align:"baseline",message:(0,d.jsx)(Km,{prefix:Ku("banner.query-settings.message"),querySettings:t}),onClose:a}):null}function Zp(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var Xp=a(6376);const eh=(0,c.cn)("ydb-query-ast"),th={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function ah({ast:e,theme:t}){return(0,d.jsx)("div",{className:eh(),children:(0,d.jsx)(Xp.default,{language:"s-expression",value:e,options:th,theme:`vs-${t}`})})}var nh=a(73253);function rh(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,nh.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 sh={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},ih={node:nh.SO};function oh(e){return(0,d.jsx)(rh,{...e,opts:sh,shapes:ih})}const lh=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":"Schema","action.explain-plan":"Explain Plan","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}}"}'),ch=(0,Be.g4)("ydb-execute-result",{en:lh}),dh=(0,c.cn)("ydb-query-result-stub-message");function uh({message:e}){return(0,d.jsx)("div",{className:dh(null),children:e})}const mh=(0,c.cn)("ydb-query-explain-graph");function ph({explain:e={},theme:t}){const{links:a,nodes:n}=e;return a&&n&&n.length?(0,d.jsx)("div",{className:mh("canvas-container"),children:(0,d.jsx)(oh,{data:{links:a,nodes:n}},t)}):(0,d.jsx)(uh,{message:ch("description.graph-is-not-supported")})}var hh=a(7450);const vh=(0,c.cn)("query-info-dropdown");var gh=a(112),yh=a(92159);const xh=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"}),bh=JSON.parse('{"unknown-error":"An unknown error occurred"}'),fh=(0,Be.g4)("ydb-errors",{en:bh});function jh(e,t){const a=document.createElement("a");a.href=e,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function Sh({title:e,description:t}){return(0,d.jsxs)("div",{className:vh("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 Th({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:r}){const[s,i]=n.useState(null),[o,{isLoading:l}]=xh.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 fh("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:ch("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&&jh(e,"query-plan.svg")}))};n.push([{text:(0,d.jsx)(Sh,{title:ch("text_open-execution-plan"),description:ch("text_open-execution-plan_description")}),icon:(0,d.jsx)(gh.A,{className:vh("icon")}),action:a,className:vh("menu-item")},{text:(0,d.jsx)(Sh,{title:ch("text_download"),description:ch("text_download_description")}),icon:(0,d.jsx)(yh.A,{className:vh("icon")}),action:r,className:vh("menu-item")}])}if(e){const a=()=>{const a=r?(0,Nt.KH)(r):void 0,n={...e,database:t,...a&&{error:a}},s=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),i=URL.createObjectURL(s);jh(i,`query-diagnostics-${(new Date).getTime()}.json`),URL.revokeObjectURL(i)};n.push([{text:(0,d.jsx)(Sh,{title:ch("text_diagnostics"),description:ch("text_diagnostics_description")}),icon:(0,d.jsx)(yh.A,{className:vh("icon")}),action:a,className:vh("menu-item")}])}return n}),[e,a,s,o,t,r])}}function Nh({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n}){const{isLoading:r,items:s}=Th({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n});return s.length?(0,d.jsx)(Do.r,{popupProps:{placement:["bottom-end","left"]},switcherWrapperClassName:vh("query-info-switcher-wrapper"),renderSwitcher:e=>(0,d.jsx)(lt.m,{title:ch("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)(hh.A,{})})})}),items:s,size:"xl"}):null}const Eh=(0,c.cn)("ydb-query-json-viewer");function wh({data:e}){const t=Pn(e);return(0,d.jsx)("div",{className:Eh(),children:(0,d.jsx)("div",{className:Eh("tree"),children:(0,d.jsx)(mr,{value:t})})})}var Ch=a(89954);const Ph=(0,c.cn)("ydb-query-result-error ");function Ih({error:e}){const t=(0,Nt.KH)(e);return!t||qp(e)?null:(0,ee.TX)(e)?(0,d.jsx)("div",{className:Ph("message"),children:e.message}):"object"===typeof t?(0,d.jsx)(Ch.O,{data:t}):(0,d.jsx)("div",{className:Ph("message"),children:t})}const Dh=(0,c.cn)("ydb-query-result-sets-viewer");function Ah(e){const{selectedResultSet:t,setSelectedResultSet:a,resultSets:n,error:r}=e,s=(null===n||void 0===n?void 0:n.length)||0,i=null===n||void 0===n?void 0:n[t];return(0,d.jsxs)("div",{className:Dh("result-wrapper"),children:[(()=>{if(s>1){const e=(0,Rs._e)(s).map((e=>{var t;return{id:String(e),title:`Result #${e+1}${null!==n&&void 0!==n&&null!==(t=n[e])&&void 0!==t&&t.truncated?" (T)":""}`}}));return(0,d.jsx)("div",{children:(0,d.jsx)(ne.t,{className:Dh("tabs"),size:"l",items:e,activeTab:String(t),onSelectTab:e=>a(Number(e))})})}return null})(),e.error?(0,d.jsx)(Ih,{error:r}):null,i?(0,d.jsxs)("div",{className:Dh("result"),children:[(()=>{var e;return(0,d.jsxs)("div",{className:Dh("head"),children:[(0,d.jsx)(it.E,{variant:"subheader-3",children:null!==i&&void 0!==i&&i.truncated?ch("title.truncated"):ch("title.result")}),null!==i&&void 0!==i&&i.result?(0,d.jsx)(it.E,{color:"secondary",variant:"body-2",className:Dh("row-count"),children:`(${null===i||void 0===i?void 0:i.result.length}${null!==(e=i.streamMetrics)&&void 0!==e&&e.rowsPerSecond?`, ${i.streamMetrics.rowsPerSecond.toFixed(0)} rows/s`:""})`}):null]})})(),(0,d.jsx)(Qm,{settings:e.tableSettings,data:i.result,columns:i.columns})]}):null]})}var _h=a(36590),Rh=a(79737),kh=a(79685);const Oh=(0,c.cn)("ydb-query-simplified-plan");function Mh({value:e,formatter:t}){if(!(0,ks.kf)(e))return;const a=t(Number(e));return(0,d.jsx)("div",{className:Oh("metrics-cell"),children:a})}var Lh=a(33705);const zh={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function Fh(e){return e in zh?zh[e]:"var(--g-color-text-secondary)"}function qh(e={}){const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=Fh(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=Fh(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:s},children:[n,": ",(0,he.vN)(r)]},e))}}return t}function Uh({params:e}){return e?(0,d.jsxs)("span",{className:Oh("operation-params"),children:["(",qh(e),")"]}):null}function Qh({modifiers:e,left:t}){return(0,d.jsx)("div",{className:Oh("divider",e),style:{left:t}})}function $h({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)(Qh,{modifiers:{horizontal:!0},left:10+25*(r-1)},"last")):n.push((0,d.jsx)(Qh,{modifiers:{last:!0},left:9+25*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(Qh,{modifiers:{first:!0},left:9+25*r},"first")),a[r]&&n.push((0,d.jsx)(Qh,{left:9+25*(r-1)},r));return n}(i,o)),[i,o]);return(0,d.jsxs)("div",{style:{paddingLeft:25*t},className:Oh("operation-name"),children:[l,(0,d.jsxs)(ot.s,{gap:1,alignItems:"center",className:Oh("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)(Lh.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:Oh("operation-name-content"),children:(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:Oh("operation-name"),children:r}),"\xa0",(0,d.jsx)(Uh,{params:s})]})})]})]})}function Bh(e){return(0,d.jsx)(Mh,{value:e.getValue(),formatter:e=>e<1e8?(0,kh.p)(e).format():(0,ks.z0)(e,1)})}const Hh=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(Rh.A,{children:"Operation"}),size:600,cell:e=>(0,d.jsx)($h,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(Rh.A,{children:"A-Cpu"}),size:90,minSize:90,cell:function(e){return(0,d.jsx)(Mh,{value:e.getValue(),formatter:e=>(0,vt.Xo)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(Rh.A,{children:"A-Rows"}),size:90,minSize:90,cell:Bh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(Rh.A,{children:"E-Cost"}),size:90,minSize:90,cell:Bh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(Rh.A,{children:"E-Rows"}),size:90,minSize:90,cell:Bh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(Rh.A,{children:"E-Size"}),size:90,minSize:90,cell:Bh,meta:{align:"right",verticalAlign:"top"}}];function Gh({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,_h.K)({columns:Hh,data:t,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:r,state:{expanded:a},enableColumnResizing:!0,columnResizeMode:"onChange"});return(0,d.jsx)(Rh.X,{wrapperClassName:Oh(),table:s,stickyHeader:!0,width:"max"})}function Wh({traceId:e}){const{traceView:t}=(0,xi.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:[ch("trace"),(0,d.jsx)(vn.$.Icon,{children:(0,d.jsx)(gh.A,{})})]}):null}const Vh=(0,c.cn)("ydb-query-result"),Jh="result",Kh="schema",Yh="simplified",Zh="json",Xh="stats",ev="ast",tv={get result(){return ch("action.result")},get schema(){return ch("action.schema")},get simplified(){return ch("action.explain-plan")},get json(){return ch("action.json")},get stats(){return ch("action.stats")},get ast(){return ch("action.ast")}},av=["result","schema","simplified","stats"],nv=["schema","json","simplified","ast"];function rv({result:e,resultType:t="execute",isResultsCollapsed:a,theme:r,tenantName:s,queryText:i,isCancelling:l,isCancelError:c,tableSettings:u,onCancelRunningQuery:m,onCollapseResults:p,onExpandResults:h}){const v=(0,X.YQ)(),g="execute"===t,y="explain"===t,[x,b]=n.useState(0),[f,j]=n.useState((()=>g?Jh:Kh)),[S]=(0,X.iK)(Z.lr),{error:T,isLoading:N,data:E={}}=e,{preparedPlan:w,simplifiedPlan:C,stats:P,resultSets:I,ast:D}=E;n.useEffect((()=>{"execute"!==t||av.includes(f)||j("result"),"explain"!==t||nv.includes(f)||j("schema")}),[f,t]);const A=n.useMemo((()=>{let e=[];return g?e=av:y&&(e=nv),e.map((e=>({value:e,content:tv[e]})))}),[g,y]);n.useEffect((()=>()=>{v((0,Nm.sM)())}),[v]);const _=e=>{j(e)},R=()=>{switch(f){case Jh:{var e;const t=null===E||void 0===E||null===(e=E.resultSets)||void 0===e?void 0:e[x],a=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(Zp).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(Zp("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 Zh:return null===w||void 0===w?void 0:w.pristine;case Yh:return null===C||void 0===C?void 0:C.pristine;case Xh:return P;case ev:return D;default:return}},k=()=>{if(N)return null;const e=R(),t=(0,he.vN)(e);return t?(0,d.jsx)(pn.b,{text:t,view:"flat-secondary",title:ch("action.copy",{activeSection:f})}):null},O=()=>(0,d.jsx)(uh,{message:ch("description.empty-result",{activeSection:tv[f]})});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:Vh("controls"),children:[(0,d.jsxs)("div",{className:Vh("controls-left"),children:[(0,d.jsx)($p,{error:T,loading:N}),!T&&!N&&(0,d.jsxs)(n.Fragment,{children:[(0,Rs.f8)(null===P||void 0===P?void 0:P.DurationUs)?(0,d.jsx)(Vp,{duration:Number(P.DurationUs)}):null,A.length&&f?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Op,{}),(0,d.jsx)(gu.a,{options:A,value:f,onUpdate:_})]}):null]}),N?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Lp,{className:Vh("elapsed-time")}),(0,d.jsx)(Gp,{isLoading:l,isError:c,onClick:m})]}):null,null!==E&&void 0!==E&&E.traceId&&g?(0,d.jsx)(Wh,{traceId:E.traceId}):null]}),(0,d.jsxs)("div",{className:Vh("controls-right"),children:[N||qp(T)?null:(0,d.jsx)(Nh,{queryResultsInfo:{queryText:i,ast:E.ast,stats:E.stats,plan:E.plan},error:T,database:s,hasPlanToSvg:Boolean((null===E||void 0===E?void 0:E.plan)&&S&&g)}),k(),(0,d.jsx)(Em,{}),(0,d.jsx)(Sm,{onCollapse:p,onExpand:h,isCollapsed:a,initialDirection:"bottom"})]})]}),N||qp(T)?null:(0,d.jsx)(Yp,{}),(0,d.jsx)(o.r,{loading:N&&!E.resultSets,children:(0,d.jsx)(Rm,{className:Vh("result"),children:(()=>{return f===Jh?(0,d.jsx)(Ah,{resultSets:I,error:T,selectedResultSet:x,tableSettings:u,setSelectedResultSet:b}):T?(0,d.jsx)(Ih,{error:T}):f===Kh?null!==w&&void 0!==w&&null!==(e=w.nodes)&&void 0!==e&&e.length?(0,d.jsx)(ph,{theme:r,explain:w}):O():f===Zh?null!==w&&void 0!==w&&w.pristine?(0,d.jsx)(wh,{data:null===w||void 0===w?void 0:w.pristine}):O():f===Yh?null!==C&&void 0!==C&&null!==(t=C.plan)&&void 0!==t&&t.length?(0,d.jsx)(Gh,{plan:C.plan}):O():f===Xh?P?(0,d.jsx)(wh,{data:P}):O():f===ev?D?(0,d.jsx)(ah,{ast:D,theme:r}):O():null;var e,t})()})})]})}var sv=a(16122),iv=a(23971);const ov=()=>-1,lv=(0,c.cn)("ydb-query-settings-select");function cv(e){return(0,d.jsx)("div",{className:lv("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:ov,popupClassName:lv("popup"),renderOption:e=>(0,d.jsxs)("div",{className:lv("item",{type:e.value}),children:[(0,d.jsxs)("div",{className:lv("item-title"),children:[e.content,e.isDefault?sm("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:lv("item-description"),children:e.text})]}),width:"max"})})}const dv=(0,c.cn)("ydb-query-settings-dialog");function uv(){const e=(0,X.YQ)(),t=(0,X.N4)(Ao.xM),[a,r]=(0,X.XS)(),s=n.useCallback((()=>{e((0,Ao.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:dv(),hasCloseButton:!1,children:[(0,d.jsx)(Hn.l.Header,{caption:sm("action.settings")}),(0,d.jsx)(mv,{initialValues:a,onSubmit:i,onClose:s})]})}function mv({initialValues:e,onSubmit:t,onClose:a}){const{control:r,handleSubmit:s,formState:{errors:i}}=(0,iv.mN)({defaultValues:e,resolver:(0,sv.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:dv("dialog-body"),children:[(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:dv("field-title"),children:dm.queryMode.title}),(0,d.jsx)("div",{className:dv("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(iv.xI,{name:"queryMode",control:r,render:({field:e})=>(0,d.jsx)(cv,{id:"queryMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:dm.queryMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:dv("field-title"),children:dm.timeout.title}),(0,d.jsx)("div",{className:dv("control-wrapper"),children:(0,d.jsx)(iv.xI,{name:"timeout",control:r,render:({field:e})=>{var t,a;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(qn.k,{id:"timeout",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:dv("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:dv("timeout-suffix"),children:sm("form.timeout.seconds")})]})}})})]}),l&&(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:dv("field-title"),children:dm.tracingLevel.title}),(0,d.jsx)("div",{className:dv("control-wrapper"),children:(0,d.jsx)(iv.xI,{name:"tracingLevel",control:r,render:({field:e})=>(0,d.jsx)(cv,{id:"tracingLevel",setting:e.value,onUpdateSetting:e.onChange,settingOptions:dm.tracingLevel.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:dv("field-title"),children:dm.transactionMode.title}),(0,d.jsx)("div",{className:dv("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(iv.xI,{name:"transactionMode",control:r,render:({field:e})=>(0,d.jsx)(cv,{id:"transactionMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:dm.transactionMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:dv("field-title"),children:dm.statisticsMode.title}),(0,d.jsx)(Vm.m,{className:dv("statistics-mode-tooltip"),disabled:!o,openDelay:0,content:sm("tooltip_plan-to-svg-statistics"),children:(0,d.jsx)("div",{className:dv("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(iv.xI,{name:"statisticsMode",control:r,render:({field:e})=>(0,d.jsx)(cv,{id:"statisticsMode",disabled:o,setting:e.value,onUpdateSetting:e.onChange,settingOptions:dm.statisticsMode.options})})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:dv("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:dv("field-title"),children:dm.limitRows.title}),(0,d.jsx)("div",{className:dv("control-wrapper"),children:(0,d.jsx)(iv.xI,{name:"limitRows",control:r,render:({field:e})=>{var t,a;return(0,d.jsx)(qn.k,{id:"limitRows",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:dv("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:sm("button-done"),textButtonCancel:sm("button-cancel"),onClickButtonCancel:a,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:dv("buttons-container"),children:[(0,d.jsx)(Al.N,{href:"https://ydb.tech/docs",target:"_blank",className:dv("documentation-link"),children:sm("docs")}),(0,d.jsxs)("div",{className:dv("main-buttons"),children:[t,e]})]})})]})}var pv=a(52400);const hv=(0,a(99006)._)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,6376))).default})),"Editor");var vv=a(41614),gv=a(67913);const yv=JSON.parse('{"context_syntax-error":"Syntax error"}'),xv=(0,Be.g4)("ydb-monaco",{en:yv}),bv=(0,Xu.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,vv.kh)(t.getValue()).errors;if(!a.length)return void jv();const n=a.map((e=>({message:xv("context_syntax-error"),source:e.message,severity:gv.MarkerSeverity.Error,startLineNumber:e.startLine,startColumn:e.startColumn+1,endLineNumber:e.endLine,endColumn:e.endColumn+1})));gv.editor.setModelMarkers(t,"ydb",n)}),500);function fv(){const e=(t=bv,n.useEffect((()=>()=>{t.cancel()}),[t]),t);var t;return n.useCallback((()=>{jv(),e()}),[e])}function jv(){gv.editor.removeAllMarkers("ydb")}const Sv=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"}),Tv={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1},fixedOverflowWidgets:!0};const Nv="navigation";function Ev({changeUserInput:e,theme:t,handleSendExecuteClick:a,handleGetExplainQueryClick:r}){const s=(0,X.N4)(So.Wp),i=(0,X.YQ)(),[o,l]=n.useState(),c=(0,X.N4)(So.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",...Tv}}),[e,t])}(),p=fv(),[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]=Sv.useLazyGetCodeAssistSuggestionsQuery(),[t]=Sv.useAcceptSuggestionMutation(),[a]=Sv.useDiscardSuggestionMutation(),[r]=Sv.useIgnoreSuggestionMutation(),[s]=Sv.useSendUserQueriesDataMutation(),i=(0,X.N4)(So.py),o=_o(),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)(hv,{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,pv._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){wv(e.getValue(),t()),e.onDidChangeModelContent((()=>{wv(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(e,v),e.focus(),e.addAction({id:"sendQuery",label:Ku("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:Nv,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:Ku("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:Nv,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:Ku("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:Nv,contextMenuOrder:2,run:()=>{i((0,So.JK)())}}),e.addAction({id:"next-query",label:Ku("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:Nv,contextMenuOrder:3,run:()=>{i((0,So.tS)())}}),e.addAction({id:"save-query",label:Ku("action.save-query"),keybindings:[n.saveQuery],run:()=>{To.Ay.show(qo)}})},theme:`vs-${t}`,editorWillUnmount:()=>{window.ydbEditor=void 0}})}function wv(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const Cv=(0,c.cn)("query-editor"),Pv={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};function Iv(e){const t=(0,X.YQ)(),{tenantName:a,path:r,type:s,theme:i,changeUserInput:o}=e,l=(0,X.N4)(So.yJ),c=(0,X.N4)(So.wf),u=(0,X.N4)(So.py),m=(0,X.N4)(So.Kz),p=(0,X.N4)(Y.Ab),v=Boolean(c),[g]=(0,X.XS)(),y=(0,ie.Oi)(),[x,b]=pm(),{resetBanner:f}=vm(),[j,S]=(0,X.iK)(Z.zk),[T,N]=n.useState(""),[E]=(0,X.iK)(Z.kO),w=(0,ie.j2)()&&E,[C]=So.JO.useUseSendQueryMutation(),[P]=So.JO.useUseStreamQueryMutation(),[I,D]=tm.useCancelQueryMutation(),A=n.useRef(null),_=n.useMemo((()=>w?{displayIndices:{maxIndex:(g.limitRows||Nt.jU.limitRows)+1}}:void 0),[w,g.limitRows]);n.useEffect((()=>{l!==a&&t((0,So.Id)(a))}),[t,a,l]);const[R,k]=n.useReducer(fm(Z.GV),Pv);n.useEffect((()=>{k(ym.triggerCollapse)}),[]),n.useEffect((()=>{k(p||v?ym.triggerExpand:ym.triggerCollapse)}),[p,v]);const O=(0,X.A5)(((e,n)=>{S(Nt.x5.execute),N(e),(0,Xu.isEqual)(x,g)||(f(),b(g));const r=(0,em.A)();var s;(A.current=w?P({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:r}):C({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:r}),t((0,Y.o)(!1)),n)||e!==(null===(s=u[m])||void 0===s?void 0:s.queryText)&&t((0,So.nO)({queryText:e,queryId:r}));k(ym.triggerExpand)})),M=()=>{t((0,Ao.NJ)("settings"))},L=(0,X.A5)((e=>{S(Nt.x5.explain),N(e),(0,Xu.isEqual)(x,g)||(f(),b(g));const n=(0,em.A)();A.current=C({actionType:"explain",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:n}),t((0,Y.o)(!1)),k(ym.triggerExpand)})),z=n.useCallback((()=>{w&&A.current?A.current.abort():null!==c&&void 0!==c&&c.queryId&&I({queryId:null===c||void 0===c?void 0:c.queryId,database:a})}),[w,null===c||void 0===c?void 0:c.queryId,I,a]);return(0,d.jsxs)("div",{className:Cv(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.l_,triggerCollapse:R.triggerCollapse,triggerExpand:R.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{k(ym.clear)},children:[(0,d.jsxs)("div",{className:Cv("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:Cv("monaco-wrapper"),children:(0,d.jsx)("div",{className:Cv("monaco"),children:(0,d.jsx)(Ev,{changeUserInput:o,theme:i,handleSendExecuteClick:O,handleGetExplainQueryClick:L})})}),(0,d.jsx)(Rp,{handleSendExecuteClick:O,onSettingsButtonClick:M,isLoading:Boolean(null===c||void 0===c?void 0:c.isLoading),handleGetExplainQueryClick:L,highlightedAction:j})]}),(0,d.jsx)("div",{className:Cv("pane-wrapper"),children:(0,d.jsx)(Dv,{resultVisibilityState:R,onExpandResultHandler:()=>{k(ym.triggerExpand)},onCollapseResultHandler:()=>{k(ym.triggerCollapse)},type:s,theme:i,result:c,cancelQueryResponse:D,tenantName:a,path:r,showPreview:p,queryText:T,onCancelRunningQuery:z,tableSettings:_},null===c||void 0===c?void 0:c.queryId)})]}),(0,d.jsx)(uv,{})]})}function Dv({resultVisibilityState:e,cancelQueryResponse:t,onExpandResultHandler:a,onCollapseResultHandler:n,type:r,theme:s,result:i,tenantName:o,path:l,showPreview:c,queryText:u,tableSettings:m,onCancelRunningQuery:p}){return c?(0,d.jsx)(Hm,{database:o,path:l,type:r}):i?(0,d.jsx)(rv,{result:i,resultType:null===i||void 0===i?void 0:i.type,theme:s,tenantName:o,isResultsCollapsed:e.collapsed,isCancelError:Boolean(null===t||void 0===t?void 0:t.error),isCancelling:Boolean(null===t||void 0===t?void 0:t.isLoading),tableSettings:m,onExpandResults:a,onCollapseResults:n,queryText:u,onCancelRunningQuery:p}):null}const Av=[{id:ae.tQ.newQuery,title:Ku("tabs.newQuery")},{id:ae.tQ.history,title:Ku("tabs.history")},{id:ae.tQ.saved,title:Ku("tabs.saved")}],_v=({className:e,activeTab:t})=>{const a=(0,$r.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:Av,wrapTo:({id:e},t)=>{const a=(0,ra.YL)({...n,[ra.vh.queryTab]:e});return(0,d.jsx)(yo.E,{to:a,children:t},e)}})})};var Rv=a(65872),kv=a(64470);const Ov=(0,c.cn)("ydb-saved-queries"),Mv=({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:Ku("delete-dialog.header")}),(0,d.jsxs)(Hn.l.Body,{className:Ov("dialog-body"),children:[Ku("delete-dialog.question"),(0,d.jsx)("span",{className:Ov("dialog-query-name"),children:` ${t}?`})]}),(0,d.jsx)(Hn.l.Footer,{textButtonApply:Ku("delete-dialog.delete"),textButtonCancel:Ku("delete-dialog.cancel"),onClickButtonCancel:a,onClickButtonApply:n})]}),Lv=({changeUserInput:e})=>{const t=_o(),a=(0,X.YQ)(),r=(0,X.N4)(Ao.cu),[s,i]=n.useState(!1),[o,l]=n.useState(""),c=()=>{i(!1),l("")},u=Go(n.useCallback((({queryText:t,queryName:n})=>{e({input:t}),a((0,Ao.JP)(n)),a((0,oe.sH)(ae.tQ.newQuery))}),[e,a])),m=[{name:"name",header:"Name",render:({row:e})=>(0,d.jsx)("div",{className:Ov("query-name"),children:e.name}),width:200},{name:"body",header:"Query Text",render:({row:e})=>{return(0,d.jsxs)("div",{className:Ov("query"),children:[(0,d.jsx)("div",{className:Ov("query-body"),children:(0,d.jsx)(Vo,{value:e.body,maxQueryHeight:6})}),(0,d.jsxs)("span",{className:Ov("controls"),children:[(0,d.jsx)(vn.$,{view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:Rv.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:kv.A})})]})]});var t},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(qe.L,{className:Ov(),children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)($e.v,{onChange:e=>{a((0,Ao.ys)(e))},placeholder:Ku("filter.text.placeholder"),className:Ov("search")})}),(0,d.jsx)(qe.L.Table,{children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:m,data:t,settings:Yo,emptyDataMessage:Ku(r?"history.empty-search":"saved.empty"),rowClassName:()=>Ov("row"),onRowClick:e=>u({queryText:e.body,queryName:e.name}),initialSortOrder:{columnId:"name",order:Rt.Ay.ASCENDING}})})]}),(0,d.jsx)(Mv,{visible:s,queryName:o,onCancelClick:()=>{c()},onConfirmClick:()=>{c(),a((0,Ao.fu)(o)),l("")}})]})},zv=(0,c.cn)("ydb-query"),Fv=e=>{const t=(0,X.YQ)(),{queryTab:a=ae.tQ.newQuery}=(0,X.N4)((e=>e.tenant)),s=e=>{t((0,So.iZ)(e))},i=n.useMemo((()=>Av.find((({id:e})=>e===a))),[a]);return(0,d.jsxs)("div",{className:zv(),children:[i?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:i.title})}):null,(0,d.jsx)(_v,{className:zv("tabs"),activeTab:a}),(0,d.jsx)("div",{className:zv("content"),children:(()=>{switch(a){case ae.tQ.newQuery:return(0,d.jsx)(Iv,{changeUserInput:s,...e});case ae.tQ.history:return(0,d.jsx)(Zu,{changeUserInput:s});case ae.tQ.saved:return(0,d.jsx)(Lv,{changeUserInput:s});default:return null}})()})]})};var qv=a(46649),Uv=a(93844);const Qv=["query","diagnostics"],$v={query:qv.A,diagnostics:Uv.A};const Bv=(0,c.cn)("ydb-tenant-navigation"),Hv=({id:e,title:t,icon:a})=>({value:e,content:(0,d.jsxs)("span",{className:Bv("item"),children:[(0,d.jsx)(ct.I,{data:a,size:16,className:Bv("icon")}),(0,d.jsx)("span",{className:Bv("text"),children:t})]})}),Gv=()=>{const e=function(){const e=(0,$r.W6)(),t=(0,$r.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=Qv.map((t=>{const n=ae.Dg[t],i=(0,ra.YL)({...a,[ae.Dt]:n});return{id:n,title:Cs(`pages.${t}`),icon:$v[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:Bv(),children:(0,d.jsx)(gu.a,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Bv("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Hv)})})},Wv=(0,c.cn)("object-general");const Vv=function(e){const t=(0,te.i)(),{tenantPage:a}=(0,X.N4)((e=>e.tenant));return(0,d.jsxs)("div",{className:Wv(),children:[(0,d.jsx)(Gv,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:s,tenantName:i,path:o}=e;return a===ae.Dg.query?(0,d.jsx)(Fv,{tenantName:i,path:o,theme:t,type:n}):(0,d.jsx)(Vu,{type:n,tenantName:i,path:o,additionalTenantProps:r,additionalNodesProps:s})})()]})};var Jv=a(40336),Kv=a(1956);const Yv=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"}),Zv=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"}'),Xv=(0,Be.g4)("ydb-acl",{en:Zv}),eg=(0,c.cn)("ydb-acl"),tg=["access","type","inheritance"],ag={access:"Access",type:"Access type",inheritance:"Inheritance type"},ng=new Set(["Object","Container"]);function rg({value:e}){const t="string"===typeof e?[e]:e;return(0,d.jsx)("div",{className:eg("definition-content"),children:t.map((e=>(0,d.jsx)("span",{children:e},e)))})}function sg(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)!==ng.size||r.some((e=>!ng.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)(rg,{value:a[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:eg("group-label"),children:e}),items:tg.map((e=>{const a=t[e];if(a)return{name:ag[e],content:(0,d.jsx)(rg,{value:a}),multilineName:!0}})).filter(Rs.f8)}}))}const ig=({path:e,database:t})=>{const{currentData:a,isFetching:r,error:s}=Yv.useGetSchemaAclQuery({path:e,database:t}),i=r&&!a,{acl:o,effectiveAcl:l,owner:c,interruptInheritance:u}=a||{},m=sg(o),p=sg(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:Xv("title_owner"),multilineName:!0}]:[]}(c),v=u?[{name:Xv("title_interupt-inheritance"),content:(0,d.jsx)(ct.I,{data:Kv.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:Xv("description_empty")});const g=h.concat(m);return(0,d.jsxs)("div",{className:eg(),children:[(0,d.jsx)(og,{items:v}),(0,d.jsx)(og,{items:g,title:Xv("title_rights")}),(0,d.jsx)(og,{items:p,title:Xv("title_effective-rights")})]})};function og({items:e,title:t}){return e.length?(0,d.jsxs)(n.Fragment,{children:[t&&(0,d.jsx)("div",{className:eg("list-title"),children:t}),(0,d.jsx)(Kr.u,{items:e,nameMaxWidth:200,className:eg("result",{"no-title":!t}),responsive:!0})]}):null}var lg=a(87285);const cg=(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)}}},dg=(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:lg.A})}),ug=(e,t,a)=>(n,r)=>{const s=cg(n,e,t),i=dg(s,a);return{async_replication:void 0,database:void 0,directory: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]},mg=(e,t,a)=>(n,r)=>{const s=cg(n,e,t);return{preview:dg(s,a)}[r]};var pg=a(57949),hg=a(1064);const vg=5*Z.KF,gg=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:vg}));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:vg}));return{data:ta(a,r.data)}}catch(r){return{error:r}}}})})});var yg=a(51016),xg=a(49917),bg=a(32133),fg=a.n(bg);function jg(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 Sg(e,t){return t===x.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const Tg=({text:e,action:t,isLoading:a})=>({text:(0,d.jsxs)(ot.s,{justifyContent:"space-between",alignItems:"center",children:[e,a&&(0,d.jsx)(Fp.t,{size:"xs"})]}),action:t,disabled:a}),Ng=(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),Zm(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(ep),createColumnTable:l(tp),createAsyncReplication:l(ap),alterAsyncReplication:l(vp),dropAsyncReplication:l(hp),alterTable:l(np),dropTable:l(Cp),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(yp),addTableIndex:l(gp),createCdcStream:l(xp),copyPath:()=>{try{fg()(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:jg(n,a),tenantName:a,type:r},e,t),i={text:Cs("actions.copyPath"),action:s.copyPath,iconEnd:(0,d.jsx)(yg.A,{})},o={text:Cs("actions.connectToDB"),action:s.getConnectToDBDialog,iconEnd:(0,d.jsx)(xg.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.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},Tg({text:Cs("actions.selectQuery"),action:s.selectQuery,isLoading:t.isSchemaDataLoading}),Tg({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}]],database:u,directory:m,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]},Eg=(0,c.cn)("ydb-schema-create-directory-dialog"),wg="relativePath";function Cg({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:wg,className:Eg("label"),children:[(0,d.jsx)("span",{className:Eg("description"),children:Cs("schema.tree.dialog.description")}),`${r}/`]}),(0,d.jsx)("div",{className:Eg("input-wrapper"),children:(0,d.jsx)(qn.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:wg,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 Pg=n.createContext(void 0),Ig=n.createContext(void 0);function Dg({children:e}){const[t,a]=n.useState("");return(0,d.jsx)(Pg.Provider,{value:t,children:(0,d.jsx)(Ig.Provider,{value:a,children:e})})}function Ag(){const e=n.useContext(Ig);if(void 0===e)throw new Error("useDispatchTreeKey must be used within a TreeKeyProvider");return e}function _g(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)(So.Wp),[u,{currentData:m,isFetching:p}]=gg.useLazyGetTableSchemaDataQuery(),[h,v]=(0,X.XS)(),[g,y]=n.useState(!1),[x,b]=n.useState(""),f=Ag(),j=function(){const e=n.useContext(Pg);if(void 0===e)throw new Error("useTreeKey must be used within a TreeKeyProvider");return e}(),S=Sg(a,s)?"database":E(s);n.useEffect((()=>{null!==i&&void 0!==i&&i.startsWith(a)||o(a)}),[i,o,a]);const T=e=>{b(e),y(!0)},w=n.useMemo((()=>Ng(l,{setActivePath:o,updateQueryExecutionSettings:e=>v({...h,...e}),showCreateDirectoryDialog:t?T:void 0,getConfirmation:c?Ho:void 0,getConnectToDBDialog:hg.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)(Cg,{onClose:()=>{y(!1)},open:g,database:a,parentPath:x,onSuccess:e=>{const t=`${x}/${e}`;o(t),f(t)}}),(0,d.jsx)(pg.F,{rootState:{path:a,name:r,type:S,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=U(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:ug(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},j)]})}const Rg=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"}'),kg=(0,Be.g4)("ydb-object-summary",{en:Rg}),Og=(0,c.cn)("ydb-object-summary");function Mg({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:Og("tree-wrapper"),children:[(0,d.jsx)("div",{className:Og("tree-header"),children:kg("title_navigation")}),(0,d.jsx)("div",{className:Og("tree"),children:i?(0,d.jsx)(_g,{rootPath:e,rootName:i.Name||e,rootType:i.PathType,currentPath:t,onActivePathUpdate:o}):null})]})}var Lg=a(16963);function zg(){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:kg("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:Lg.A,size:14})})})}var Fg=a(8873),qg=a(97091);function Ug(){const e=Ag(),t=(0,X.YQ)();return(0,d.jsx)(lt.m,{title:"Refresh",children:(0,d.jsx)(vn.$,{className:Og("refresh-button"),view:"flat-secondary",onClick:()=>{e((0,qg.Ak)()),t(H.F.util.invalidateTags(["SchemaTree"]))},children:(0,d.jsx)(ct.I,{data:Fg.A})})})}const Qg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.hh))});function $g({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(fm(Z.hh),void 0,Qg),{summaryTab:g=ae.ml.overview}=(0,X.N4)((e=>e.tenant)),y=(0,$r.zy)(),f=Aa().parse(y.search,{ignoreQueryPrefix:!0}),{currentData:j}=G.useGetOverviewQuery({path:r,database:a}),S=null===j||void 0===j||null===(c=j.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 T=()=>{const t=D(e)?[...ra.x$,...ra.nb]:ra.x$;return(0,d.jsx)("div",{className:Og("tabs"),children:(0,d.jsxs)(ot.s,{className:Og("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:Og("tab"),children:t},e)},allowNotSelected:!0}),g===ae.ml.schema&&(0,d.jsx)(zg,{})]})})},N=()=>{switch(g){case ae.ml.acl:return(0,d.jsx)(ig,{path:r,database:a});case ae.ml.schema:return(0,d.jsx)(na,{type:e,path:r,tenantName:a});default:return(()=>{var e;if(!S)return;const{CreateStep:t,PathType:a,PathSubType:s,PathId:i,PathVersion:o}=S,l=[],c=Sg(r,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:kg("field_type"),content:c}),s!==b.EPathSubTypeEmpty&&l.push({name:kg("field_subtype"),content:null===s||void 0===s?void 0:s.replace(/^EPathSubType/,"")}),l.push({name:kg("field_id"),content:i}),l.push({name:kg("field_version"),content:o}),l.push({name:kg("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:kg("field_data-size"),content:Sr(e)},{name:kg("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:kg("field_paths"),content:s},{name:kg("field_shards"),content:i}]},p={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeTable]:()=>{var e;return[{name:kg("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:kg("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:kg("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:kg("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:kg("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:kg("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:kg("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:kg("field_source-type"),content:n},{name:kg("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:kg("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:kg("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:Og("overview-item-content"),children:e.content})})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:Og("overview-title"),children:(0,d.jsx)(Ps,{data:u})}),(0,d.jsx)(Jv.u,{responsive:!0,children:v.map((e=>(0,d.jsx)(Jv.u.Item,{name:e.name,children:e.content},e.name)))})]})})()}},E=()=>{v(ym.triggerCollapse)},w=()=>{v(ym.triggerExpand)},C=()=>{v(ym.clear)},P=jg(r,a),I=()=>{const a=D(e)&&!_(t);return(0,d.jsxs)(n.Fragment,{children:[a&&mg(u,{setActivePath:m},"m")(r,"preview"),(0,d.jsx)(pn.b,{text:P,view:"flat-secondary",title:kg("action_copySchemaPath")}),(0,d.jsx)(Sm,{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 Sg(r,e)&&(t="domain"),(0,d.jsx)("div",{className:Og("entity-type"),children:t})}let n;return t&&a&&(n=`${t}: ${a}`),(0,d.jsx)("div",{className:Og("entity-type",{error:!0}),children:(0,d.jsx)(Ra.B,{content:n,offset:{left:0}})})};return(0,d.jsx)(Dg,{children:(0,d.jsxs)("div",{className:Og(),children:[(0,d.jsx)("div",{className:Og({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)(Mg,{tenantName:a,path:r}),(0,d.jsxs)("div",{className:Og("info"),children:[(0,d.jsxs)("div",{className:Og("sticky-top"),children:[(0,d.jsxs)("div",{className:Og("info-header"),children:[(0,d.jsxs)("div",{className:Og("info-title"),children:[A(),(0,d.jsx)("div",{className:Og("path-name"),children:P})]}),(0,d.jsx)("div",{className:Og("info-controls"),children:I()})]}),T()]}),(0,d.jsx)("div",{className:Og("overview-wrapper"),children:N()})]})]})}),(0,d.jsxs)(ot.s,{className:Og("actions"),gap:.5,children:[!l&&(0,d.jsx)(Ug,{}),(0,d.jsx)(Sm,{onCollapse:i,onExpand:o,isCollapsed:l,initialDirection:"left"})]})]})})}const Bg=(0,c.cn)("tenant-page"),Hg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.jX))});function Gg(e){var t,l,c,u,m,p,g,y,x,b;const[f,j]=n.useReducer(fm(Z.jX),void 0,Hg),[{database:S,name:T,schema:N},E]=(0,s.useQueryParams)({database:s.StringParam,name:s.StringParam,schema:s.StringParam});n.useEffect((()=>{T&&!S&&E({database:T,name:void 0},"replaceIn")}),[S,T,E]);const w=null!==S&&void 0!==S?S:T;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 F=I||Cs("page.title");return(0,d.jsxs)("div",{className:Bg(),children:[(0,d.jsx)(r.mg,{defaultTitle:`${F} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${F} \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(ym.clear)},children:[(0,d.jsx)($g,{type:k,subType:O,tenantName:w,path:I,onCollapseSummary:()=>{j(ym.triggerCollapse)},onExpandSummary:()=>{j(ym.triggerExpand)},isCollapsed:f.collapsed}),(0,d.jsx)("div",{className:Bg("main"),children:(0,d.jsx)(Vv,{type:k,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:w,path:I})})]})})})]})}},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},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},66574:()=>{},2748:()=>{},52246:()=>{}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/371.adb771f2.chunk.js b/ydb/core/viewer/monitoring/static/js/371.adb771f2.chunk.js deleted file mode 100644 index 9b1a4cc8af..0000000000 --- a/ydb/core/viewer/monitoring/static/js/371.adb771f2.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[371],{56735:(e,s,a)=>{a.d(s,{Q:()=>N});var t=a(87184),l=a(92459),i=a(78668),n=a(7435),d=a(46549),o=a(77506),r=a(56839),c=a(31684),u=a(90182),v=a(18863),p=a(25196),h=a(15132),m=a(33775),g=a(48372);const k=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"}'),f=(0,g.g4)("ydb-pDisk-info",{en:k});var b=a(60712);const x=(0,o.cn)("ydb-pdisk-info");function N({pDisk:e,nodeId:s,withPDiskPageLink:a,className:o}){const g=(0,u.N4)(i._5),[k,N,j,I]=function({pDisk:e,nodeId:s,withPDiskPageLink:a,isUserAllowedToMakeChanges:t}){const{PDiskId:i,Path:o,Guid:u,Category:v,Type:g,Device:k,Realtime:N,State:j,SerialNumber:I,TotalSize:S,AllocatedSize:D,StatusV2:w,NumActiveSlots:y,ExpectedSlotCount:z,LogUsedSize:T,LogTotalSize:P,SystemSize:E,SharedWithOs:V}=e||{},R=[];(0,n.f8)(v)&&R.push({label:f("type"),value:g}),(0,n.f8)(o)&&R.push({label:f("path"),value:o}),(0,n.f8)(u)&&R.push({label:f("guid"),value:u}),I&&R.push({label:f("serial-number"),value:I}),(0,n.f8)(V)&&R.push({label:f("shared-with-os"),value:f("yes")});const A=[];(0,n.f8)(w)&&A.push({label:f("drive-status"),value:w}),(0,n.f8)(j)&&A.push({label:f("state"),value:j}),(0,n.f8)(k)&&A.push({label:f("device"),value:(0,b.jsx)(m.k,{status:k})}),(0,n.f8)(N)&&A.push({label:f("realtime"),value:(0,b.jsx)(m.k,{status:N})});const O=[];O.push({label:f("space"),value:(0,b.jsx)(h.O,{value:D,capacity:S,formatValues:r.vX,colorizeProgress:!0})}),(0,n.f8)(y)&&(0,n.f8)(z)&&O.push({label:f("slots"),value:(0,b.jsx)(h.O,{value:y,capacity:z})}),(0,n.f8)(T)&&(0,n.f8)(P)&&O.push({label:f("log-size"),value:(0,b.jsx)(h.O,{value:T,capacity:P,formatValues:r.vX})}),(0,n.f8)(E)&&O.push({label:f("system-size"),value:(0,d.z3)({value:E})});const C=[];if((a||t)&&(0,n.f8)(i)&&(0,n.f8)(s)){const e=(0,l.Ck)(i,s),n=(0,c.ar)({nodeId:s,pDiskId:i});C.push({label:f("links"),value:(0,b.jsxs)("span",{className:x("links"),children:[a&&(0,b.jsx)(p.K,{title:f("pdisk-page"),url:e,external:!1}),t&&(0,b.jsx)(p.K,{title:f("developer-ui"),url:n})]})})}return[R,A,O,C]}({pDisk:e,nodeId:s,withPDiskPageLink:a,isUserAllowedToMakeChanges:g});return(0,b.jsxs)(t.s,{className:o,gap:2,direction:"row",wrap:!0,children:[(0,b.jsxs)(t.s,{direction:"column",gap:2,width:500,children:[(0,b.jsx)(v.z,{info:k,renderEmptyState:()=>null}),(0,b.jsx)(v.z,{info:j,renderEmptyState:()=>null})]}),(0,b.jsxs)(t.s,{direction:"column",gap:2,width:500,children:[(0,b.jsx)(v.z,{info:N,renderEmptyState:()=>null}),(0,b.jsx)(v.z,{info:I,renderEmptyState:()=>null})]})]})}},59984:(e,s,a)=>{a.d(s,{Y:()=>o});a(59284);var t=a(87184),l=a(77506),i=a(60712);const n=(0,l.cn)("tag"),d=({text:e,type:s})=>(0,i.jsx)("div",{className:n({type:s}),children:e}),o=({tags:e,tagsType:s,className:a="",gap:l=1})=>(0,i.jsx)(t.s,{className:a,gap:l,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,a)=>(0,i.jsx)(d,{text:e,type:s},a)))})},67440:(e,s,a)=>{a.d(s,{E:()=>N});a(59284);var t=a(92459),l=a(78668),i=a(7435),n=a(77506),d=a(56839),o=a(31684),r=a(7187),c=a(90182),u=a(41650),v=a(60073),p=a(25196),h=a(15132),m=a(33775),g=a(48372);const k=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"}'),f=(0,g.g4)("ydb-vDisk-info",{en:k});var b=a(60712);const x=(0,n.cn)("ydb-vdisk-info");function N({data:e,withVDiskPageLink:s,withTitle:a,...n}){var r,g;const k=(0,c.N4)(l._5),{AllocatedSize:N,DiskSpace:I,FrontQueues:S,Guid:D,Replicated:w,VDiskState:y,VDiskSlotId:z,Kind:T,SatisfactionRank:P,AvailableSize:E,HasUnreadableBlobs:V,IncarnationGuid:R,InstanceGuid:A,StoragePoolName:O,ReadThroughput:C,WriteThroughput:L,PDiskId:U,NodeId:F}=e||{},M=[];var q,G;((0,i.f8)(z)&&M.push({label:f("slot-id"),value:z}),(0,i.f8)(O)&&M.push({label:f("pool-name"),value:O}),(0,i.f8)(y)&&M.push({label:f("state-status"),value:y}),Number(N)>=0&&Number(E)>=0&&M.push({label:f("size"),value:(0,b.jsx)(h.O,{value:N,capacity:Number(N)+Number(E),formatValues:d.vX,colorizeProgress:!0})}),(0,i.f8)(T)&&M.push({label:f("kind"),value:T}),(0,i.f8)(D)&&M.push({label:f("guid"),value:D}),(0,i.f8)(R)&&M.push({label:f("incarnation-guid"),value:R}),(0,i.f8)(A)&&M.push({label:f("instance-guid"),value:A}),(0,i.f8)(w)&&M.push({label:f("replication-status"),value:f(w?"yes":"no")}),(0,i.f8)(I)&&M.push({label:f("space-status"),value:(0,b.jsx)(m.k,{status:I})}),(0,i.f8)(null===P||void 0===P||null===(r=P.FreshRank)||void 0===r?void 0:r.Flag))&&M.push({label:f("fresh-rank-satisfaction"),value:(0,b.jsx)(m.k,{status:null===P||void 0===P||null===(q=P.FreshRank)||void 0===q?void 0:q.Flag})});(0,i.f8)(null===P||void 0===P||null===(g=P.LevelRank)||void 0===g?void 0:g.Flag)&&M.push({label:f("level-rank-satisfaction"),value:(0,b.jsx)(m.k,{status:null===P||void 0===P||null===(G=P.LevelRank)||void 0===G?void 0:G.Flag})});(0,i.f8)(S)&&M.push({label:f("front-queues"),value:(0,b.jsx)(m.k,{status:S})}),(0,i.f8)(V)&&M.push({label:f("has-unreadable-blobs"),value:f(V?"yes":"no")}),(0,i.f8)(C)&&M.push({label:f("read-throughput"),value:(0,u.O4)(C)}),(0,i.f8)(L)&&M.push({label:f("write-throughput"),value:(0,u.O4)(L)});if((0,i.f8)(U)&&(0,i.f8)(F)&&(0,i.f8)(z)){const e=[];if(s){const s=(0,t.yX)(z,U,F);e.push((0,b.jsx)(p.K,{title:f("vdisk-page"),url:s,external:!1},s))}if(k){const s=(0,o.Wg)({nodeId:F,pDiskId:U,vDiskSlotId:z});e.push((0,b.jsx)(p.K,{title:f("developer-ui"),url:s},s))}e.length&&M.push({label:f("links"),value:(0,b.jsx)("div",{className:x("links"),children:e})})}const _=e&&a?(0,b.jsx)(j,{data:e}):null;return(0,b.jsx)(v.z_,{info:M,title:_,...n})}function j({data:e}){return(0,b.jsxs)("div",{className:x("title"),children:[f("vdiks-title"),(0,b.jsx)(m.k,{status:(0,r.XY)(e.Severity)}),e.StringifiedId]})}},49020:(e,s,a)=>{a.r(s),a.d(s,{Node:()=>Ie});var t=a(59284),l=a(23871),i=a(61750),n=a(10755),d=a(52905),o=a(67087),r=a(90053),c=a(112),u=a(99991),v=a(78668),p=a(77506),h=a(31684),m=a(90182),g=a(10508),k=a(59984),f=a(60712);const b=(0,p.cn)("basic-node-viewer"),x=({node:e,additionalNodesProps:s,className:a})=>{const l=(0,m.N4)(v._5);let i;if(null!==s&&void 0!==s&&s.getNodeRef){const a=s.getNodeRef(e);i=a?(0,h.Un)(a):void 0}else if(e.NodeId){const s=(0,h.Kx)(e.NodeId);i=(0,h.Un)(s)}return(0,f.jsx)("div",{className:b(null,a),children:e?(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)("div",{className:b("title"),children:"Node"}),(0,f.jsx)(g.c,{status:e.SystemState,name:e.Host}),i&&l?(0,f.jsx)("a",{rel:"noopener noreferrer",className:b("link",{external:!0}),href:i,target:"_blank",children:(0,f.jsx)(u.I,{data:c.A})}):null,(0,f.jsxs)("div",{className:b("id"),children:[(0,f.jsx)("label",{className:b("label"),children:"NodeID"}),(0,f.jsx)("label",{children:e.NodeId})]}),e.DC&&(0,f.jsx)(k.Y,{tags:[e.DC]}),e.Roles&&(0,f.jsx)(k.Y,{tags:e.Roles,tagsType:"blue"})]}):(0,f.jsx)("div",{className:"error",children:"no data"})})};var N=a(44508),j=a(76086),I=a(18863);const S=(0,p.cn)("ydb-pool-usage"),D=e=>{let s="green";return e>60&&e<=80?s="yellow":e>80&&(s="red"),s},w=({data:e={}})=>{const{Threads:s,Name:a="Unknown",Usage:t=0}=e,l=t&&s,i=Math.floor(100*t),n=i>100?100:i;return(0,f.jsxs)("div",{className:S(),children:[(0,f.jsxs)("div",{className:S("info"),children:[(0,f.jsx)("div",{className:S("pool-name"),children:a}),l&&(0,f.jsxs)("div",{className:S("value"),children:[(0,f.jsxs)("div",{className:S("percents"),children:[i<1?"<1":i,"%"]}),(0,f.jsxs)("div",{className:S("threads"),children:["(\xd7",s,")"]})]})]}),(0,f.jsx)("div",{className:S("visual"),children:(0,f.jsx)("div",{className:S("usage-line",{type:D(n)}),style:{width:`${n}%`}})})]})};var y=a(15132),z=a(41826);const T=(0,p.cn)("full-node-viewer"),P=({node:e,className:s})=>{var a,t,l,i;const n=null===e||void 0===e||null===(a=e.Endpoints)||void 0===a?void 0:a.map((({Name:e,Address:s})=>({label:e,value:s}))),d=[];null!==e&&void 0!==e&&null!==(t=e.Tenants)&&void 0!==t&&t.length&&d.push({label:"Database",value:e.Tenants[0]}),d.push({label:"Version",value:null===e||void 0===e?void 0:e.Version},{label:"Uptime",value:(0,f.jsx)(z.p,{StartTime:null===e||void 0===e?void 0:e.StartTime,DisconnectTime:null===e||void 0===e?void 0:e.DisconnectTime})},{label:"DC",value:(null===e||void 0===e?void 0:e.DataCenterDescription)||(null===e||void 0===e?void 0:e.DC)},{label:"Rack",value:null===e||void 0===e?void 0:e.Rack});const o=null===e||void 0===e||null===(l=e.LoadAveragePercents)||void 0===l?void 0:l.map(((e,s)=>({label:j.GT[s],value:(0,f.jsx)(y.O,{value:e,percents:!0,colorizeProgress:!0,capacity:100})})));return(0,f.jsx)("div",{className:`${T()} ${s}`,children:e?(0,f.jsxs)("div",{className:T("common-info"),children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{className:T("section-title"),children:"Pools"}),(0,f.jsx)("div",{className:T("section",{pools:!0}),children:null===e||void 0===e||null===(i=e.PoolStats)||void 0===i?void 0:i.map(((e,s)=>(0,f.jsx)(w,{data:e},s)))})]}),n&&n.length&&(0,f.jsx)(I.z,{title:"Endpoints",className:T("section"),info:n}),(0,f.jsx)(I.z,{title:"Common info",className:T("section"),info:d}),(0,f.jsx)(I.z,{title:"Load average",className:T("section",{average:!0}),info:o})]}):(0,f.jsx)("div",{className:"error",children:"no data"})})};var E=a(52248),V=a(92459),R=a(67028),A=a(40174),O=a(21334),C=a(78034);const L=e=>{var s;if(null===(s=e.SystemStateInfo)||void 0===s||!s.length)return{};const a=e.SystemStateInfo[0];return(0,C.q1)(a)},U=O.F.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async({nodeId:e},{signal:s})=>{try{const a=await window.api.viewer.getNodeInfo(e,{signal:s});return{data:L(a)}}catch(a){return{error:a}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async({nodeId:e},{signal:s})=>{try{return{data:await window.api.viewer.getStorageInfo({nodeId:e},{signal:s})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var F=a(99936),M=a(76768),q=a(29819),G=a(905),_=a.n(G),Q=a(53850),K=a(56839),W=a(27295);const $=(0,Q.Mz)((e=>e),(e=>U.endpoints.getNodeStructure.select({nodeId:e}))),B=(0,Q.Mz)((e=>e),((e,s)=>$(s)),((e,s)=>s(e).data)),X=(0,Q.Mz)(((e,s)=>Number(s)),((e,s)=>B(e,s)),((e,s)=>{const a=null===s||void 0===s?void 0:s.StoragePools,t={};null===a||void 0===a||a.forEach((s=>{const a=s.Groups;null===a||void 0===a||a.forEach((a=>{var l;const i=null===(l=a.VDisks)||void 0===l?void 0:l.filter((s=>s.NodeId===e)).map(W.WT);null===i||void 0===i||i.forEach((a=>{var l;const i=(0,K.U9)(a.VDiskId),n=null===(l=a.PDisk)||void 0===l?void 0:l.PDiskId;t[String(n)]||(t[String(n)]={vDisks:{},...a.PDisk}),t[String(n)].vDisks[i]={...a,PDiskId:n,NodeId:e,StoragePoolName:s.Name}}))}))}));return Object.keys(t).reduce(((e,s)=>{const a=t[s].vDisks,l=Object.keys(a).reduce(((e,s,t)=>(e.push({...a[s],id:s,order:t}),e)),[]);return e[s]={...t[s],vDisks:l},e}),{})}));var Y=a(45720),H=a(4557),J=a(84476),Z=a(84375),ee=a(33705),se=a(56735),ae=a(33775),te=a(67440),le=a(54090),ie=a(67375),ne=a(7435),de=a(48372);const oe=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page"}'),re=JSON.parse('{"pdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 PDisk \u0432 Developer UI","vdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 VDisk \u0432 Developer UI"}'),ce=(0,de.g4)("ydb-node-page",{en:oe,ru:re}),ue=(0,p.cn)("kv-node-structure");function ve({label:e,value:s,className:a}){return(0,f.jsxs)("span",{className:ue("pdisk-title-item",a),children:[e&&(0,f.jsxs)("span",{className:ue("pdisk-title-item-label"),children:[e,":"]}),(0,f.jsx)("span",{className:ue("pdisk-title-item-value"),children:s})]})}const pe=(0,p.cn)("kv-node-structure");var he=function(e){return e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info",e}(he||{});const me={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function ge({pDiskId:e,selectedVdiskId:s,nodeId:a,withDeveloperUILink:t}){return[{name:he.slotId,header:me[he.slotId],width:100,render:({row:l})=>{const i=l.VDiskSlotId;let n=null;return(0,ne.f8)(a)&&(0,ne.f8)(e)&&(0,ne.f8)(i)&&(n=(0,h.Wg)({nodeId:a,pDiskId:e,vDiskSlotId:i})),(0,f.jsxs)("div",{className:pe("vdisk-id",{selected:l.id===s}),children:[(0,f.jsx)("span",{children:i}),n&&t?(0,f.jsx)(J.$,{size:"s",className:pe("external-button",{hidden:!0}),href:n,target:"_blank",title:ce("vdisk.developer-ui-button-title"),children:(0,f.jsx)(u.I,{data:c.A})}):null]})},align:H.Ay.LEFT},{name:he.VDiskState,header:me[he.VDiskState],width:70,render:({row:e})=>(0,f.jsx)(ae.k,{status:e.VDiskState===ie.W.OK?le.m.Green:le.m.Red}),sortAccessor:e=>e.VDiskState===ie.W.OK?1:0,align:H.Ay.CENTER},{name:he.Size,header:me[he.Size],width:170,render:({row:e})=>(0,f.jsx)(y.O,{value:e.AllocatedSize,capacity:Number(e.AllocatedSize)+Number(e.AvailableSize),formatValues:K.vX,colorizeProgress:!0}),sortAccessor:e=>Number(e.AllocatedSize),align:H.Ay.CENTER},{name:he.Info,header:me[he.Info],width:70,render:({row:e})=>(0,f.jsx)(Z.A,{placement:["right"],content:(0,f.jsx)(te.E,{data:e,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:pe("vdisk-details"),children:(0,f.jsx)(J.$,{view:"flat-secondary",className:pe("vdisk-details-button",{selected:e.id===s}),children:(0,f.jsx)(u.I,{data:Y.A,size:18})})}),sortable:!1}]}function ke({id:e,data:s,selectedVdiskId:a,nodeId:l,unfolded:i}){const n=(0,m.N4)(v._5),[d,o]=t.useState(null!==i&&void 0!==i&&i),{TotalSize:r=0,AvailableSize:c=0,Device:u,PDiskId:p,Type:h,vDisks:g}=s,k=Number(r),b=Number(c);return(0,f.jsxs)("div",{className:pe("pdisk"),id:e,children:[(0,f.jsxs)("div",{className:pe("pdisk-header"),children:[(0,f.jsxs)("div",{className:pe("pdisk-title-wrapper"),children:[(0,f.jsx)(ae.k,{status:u}),(0,f.jsx)(ve,{label:"PDiskID",value:p,className:pe("pdisk-title-id")}),(0,f.jsx)(ve,{value:h,className:pe("pdisk-title-type")}),(0,f.jsx)(y.O,{value:k-b,capacity:k,formatValues:K.vX,colorizeProgress:!0,className:pe("pdisk-title-size")}),(0,f.jsx)(ve,{label:"VDisks",value:g.length})]}),(0,f.jsx)(J.$,{onClick:d?()=>{o(!1)}:()=>{o(!0)},view:"flat-secondary",children:(0,f.jsx)(ee.I,{direction:d?"top":"bottom"})})]}),d&&(_()(s)?(0,f.jsx)("div",{children:"No information about PDisk"}):(0,f.jsxs)("div",{children:[(0,f.jsx)(se.Q,{pDisk:s,nodeId:l,className:pe("pdisk-details"),withPDiskPageLink:!0}),(0,f.jsxs)("div",{className:pe("vdisks-container"),children:[(0,f.jsx)("div",{className:pe("vdisks-header"),children:"VDisks"}),(0,f.jsx)(H.Ay,{theme:"yandex-cloud",data:g,columns:ge({nodeId:l,pDiskId:p,selectedVdiskId:a,withDeveloperUILink:n}),settings:{...j.N3,dynamicRender:!1},rowClassName:e=>e.id===a?pe("selected-vdisk"):""})]})]}))]})}const fe=(0,p.cn)("kv-node-structure");function be({type:e,id:s}){return`${e}-${s}`}const xe=function({nodeId:e,className:s}){const a=(0,m.N4)((s=>X(s,e))),[l]=(0,m.Nt)(),{currentData:i,isFetching:n,error:d}=U.useGetNodeStructureQuery({nodeId:e},{pollingInterval:l}),r=n&&void 0===i,[{pdiskId:c,vdiskId:u}]=(0,o.useQueryParams)({pdiskId:o.StringParam,vdiskId:o.StringParam}),v=t.useRef(null),p=t.useRef(!1);return t.useEffect((()=>{if(!_()(a)&&!p.current&&v.current&&c){const s=document.getElementById(be({type:"pdisk",id:c}));let t=0;if(u){var e;const s=null===(e=a[c])||void 0===e?void 0:e.vDisks,l=null===s||void 0===s?void 0:s.find((e=>e.id===u)),i=l?document.querySelector(".data-table"):void 0,n=(null===l||void 0===l?void 0:l.order)||0;i&&(t+=i.offsetTop+40*n)}s&&(v.current.scrollTo({behavior:"smooth",top:t||s.offsetTop}),p.current=!0)}}),[a,c,u]),(0,f.jsxs)("div",{className:fe(),ref:v,children:[d?(0,f.jsx)(N.o,{error:d,className:fe("error")}):null,(0,f.jsx)("div",{className:s,children:r?(0,f.jsx)(E.a,{size:"m"}):d&&!i?null:(()=>{const s=Object.keys(a);return s.length>0?s.map((s=>(0,f.jsx)(ke,{data:a[s],id:be({type:"pdisk",id:s}),unfolded:c===s,selectedVdiskId:u,nodeId:e},s))):"There is no information about node structure."})()})]})},Ne=(0,p.cn)("node"),je="Storage";function Ie(e){var s,a;const c=t.useRef(null),u=(0,m.YQ)(),v=null!==(s=(0,n.W5)(V.Ay.node))&&void 0!==s?s:Object.create(null),{id:p,activeTab:h}=v.params,[{database:g}]=(0,o.useQueryParams)(q.Gi),[k]=(0,m.Nt)(),{currentData:b,isFetching:j,error:I}=U.useGetNodeInfoQuery({nodeId:p},{pollingInterval:k}),S=j&&void 0===b,D=b,w=(0,R.Pm)(),y=(0,R.c2)(),{activeTabVerified:z,nodeTabs:T}=t.useMemo((()=>{var e;let s=(null===D||void 0===D||null===(e=D.Roles)||void 0===e?void 0:e.find((e=>e===je)))?q.qn:q.qn.filter((e=>e.id!==q.O3));y&&(s=s.filter((e=>e.id!==q.mX)));const a=s.map((e=>({...e,title:e.name})));let t=a.find((({id:e})=>e===h));return t||(t=a[0]),{activeTabVerified:t,nodeTabs:a}}),[h,D,y]),O=(null===D||void 0===D||null===(a=D.Tenants)||void 0===a?void 0:a[0])||(null===g||void 0===g?void 0:g.toString());let C;if(D){var L;const e=!(null!==D&&void 0!==D&&null!==(L=D.Tenants)&&void 0!==L&&L[0]);C=e?"Storage":"Compute"}t.useEffect((()=>{u((0,A.g)("node",{tenantName:O,nodeRole:C,nodeId:p}))}),[u,O,p,C]);const G=()=>{switch(z.id){case q.O3:return(0,f.jsx)("div",{className:Ne("storage"),ref:c,children:(0,f.jsx)(F.z,{nodeId:p,parentRef:c,viewContext:{nodeId:null===p||void 0===p?void 0:p.toString()}})});case q.q7:return(0,f.jsx)(M.C,{nodeId:p,database:O,className:Ne("node-page-wrapper")});case q.mX:return(0,f.jsx)(xe,{className:Ne("node-page-wrapper"),nodeId:p});case q.wS:return(0,f.jsx)(P,{node:D,className:Ne("overview-wrapper")});default:return!1}};return S||!w?(0,f.jsx)(E.a,{size:"l"}):D?(0,f.jsxs)("div",{className:Ne(null,e.className),children:[(0,f.jsx)(i.mg,{titleTemplate:`%s \u2014 ${D.Host} \u2014 YDB Monitoring`,defaultTitle:`${D.Host} \u2014 YDB Monitoring`,children:(0,f.jsx)("title",{children:z.title})}),(0,f.jsx)(x,{node:D,additionalNodesProps:e.additionalNodesProps,className:Ne("header")}),I?(0,f.jsx)(N.o,{error:I,className:Ne("error")}):null,(0,f.jsxs)("div",{className:Ne("tabs"),children:[(0,f.jsx)(l.t,{size:"l",items:T,activeTab:z.id,wrapTo:({id:e},s)=>(0,f.jsx)(d.N_,{to:(0,q.vI)(p,{database:O},e),className:Ne("tab"),children:s},e),allowNotSelected:!0}),(0,f.jsx)(r.E,{})]}),(0,f.jsx)("div",{className:Ne("content"),children:G()})]}):I?(0,f.jsx)(N.o,{error:I}):(0,f.jsx)("div",{className:"error",children:"no node data"})}},76768:(e,s,a)=>{a.d(s,{C:()=>b});var t=a(44992),l=a(44508),i=a(53850),n=a(62060),d=a.n(n),o=a(21334),r=a(24600);const c=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(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),u=(0,i.Mz)((e=>e),(e=>c.endpoints.getTabletsInfo.select(e)),{argsMemoize:i.i5,argsMemoizeOptions:{equalityCheck:d()}}),v=(0,i.Mz)((e=>e),((e,s)=>u(s)),((e,s)=>s(e).data)),p=(0,i.Mz)(((e,s)=>v(e,s)),(e=>(0,r.K)(e)),((e,s)=>null!==e&&void 0!==e&&e.TabletStateInfo?s?e.TabletStateInfo.map((e=>{var a;const t=void 0===e.NodeId||null===(a=s.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:t}})):e.TabletStateInfo:[]));var h=a(77506),m=a(90182),g=a(88616),k=a(60712);const f=(0,h.cn)("tablets");function b({nodeId:e,path:s,database:a,className:i}){const[n]=(0,m.Nt)();let d={};const o=void 0===e?void 0:String(e);void 0!==o?d={nodeId:o,database:a}:s&&(d={path:s,database:a});const{currentData:r,isFetching:u,error:v}=c.useGetTabletsInfoQuery(0===Object.keys(d).length?t.hT:d,{pollingInterval:n}),h=u&&void 0===r,b=(0,m.N4)((e=>p(e,d)));return(0,k.jsxs)("div",{className:f(null,i),children:[v?(0,k.jsx)(l.o,{error:v}):null,r||h?(0,k.jsx)(g.Q,{tablets:b,database:a,loading:h}):null]})}},76938:(e,s,a)=>{a.d(s,{A:()=>l});var t=a(59284);const l=e=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.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"}))},18677:(e,s,a)=>{a.d(s,{A:()=>l});var t=a(59284);const l=e=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.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"}))},74321:(e,s,a)=>{a.d(s,{S:()=>r});var t=a(59284),l=a(64222),i=a(46898);function n(e){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),t.createElement("path",{d:"M4 7h9v3H4z"}))}function d(e){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),t.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,a(69220).om)("checkbox"),r=t.forwardRef((function(e,s){const{size:a="m",indeterminate:r,disabled:c=!1,content:u,children:v,title:p,style:h,className:m,qa:g}=e,{checked:k,inputProps:f}=(0,l.v)(e),b=u||v,x=t.createElement("span",{className:o("indicator")},t.createElement("span",{className:o("icon"),"aria-hidden":!0},r?t.createElement(n,{className:o("icon-svg",{type:"dash"})}):t.createElement(d,{className:o("icon-svg",{type:"tick"})})),t.createElement("input",Object.assign({},f,{className:o("control")})),t.createElement("span",{className:o("outline")}));return t.createElement(i.m,{ref:s,title:p,style:h,size:a,disabled:c,className:o({size:a,disabled:c,indeterminate:r,checked:k},m),qa:g,control:x},b)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3779.31972bdb.chunk.js b/ydb/core/viewer/monitoring/static/js/3779.31972bdb.chunk.js new file mode 100644 index 0000000000..7d2feba62f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3779.31972bdb.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3779],{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")})]})]})}},52248:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(47334)},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"})}},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})})}},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)}})}},95963:(e,s,t)=>{t.d(s,{v:()=>r.v});var r=t(41775)},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]})}},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])}}},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})}},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}},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})))}},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:"_"}))},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)))}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3779.9f31a4d0.chunk.js b/ydb/core/viewer/monitoring/static/js/3779.9f31a4d0.chunk.js deleted file mode 100644 index aa68cb4127..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3779.9f31a4d0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3779],{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}){const s=(0,i.YQ)(),[t,o]=(0,i.Nt)();return(0,v.jsxs)("div",{className:m(null,e),children:[(0,v.jsx)(a.$,{view:"flat-secondary",onClick:()=>{s(n.F.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,v.jsx)(a.$.Icon,{children:(0,v.jsx)(r.A,{})})}),(0,v.jsxs)(l.l,{value:[String(t)],onUpdate:e=>{o(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")})]})]})}},52248:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(47334)},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"})}},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})})}},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)}})}},95963:(e,s,t)=>{t.d(s,{v:()=>r.v});var r=t(41775)},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),$=t(34271);const H=(0,z.cn)("kv-user");function M({login:e,className:s}){const t=(0,$.x)("StaffCard");return(0,k.jsx)("div",{className:H(null,s),children:(0,k.jsx)(t,{login:e,children:(0,k.jsx)("div",{className:H("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)(M,{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]),$=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:$,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]})}},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])}}},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})}},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}},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})))}},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:"_"}))},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)))}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3812.325f3251.chunk.js b/ydb/core/viewer/monitoring/static/js/3812.325f3251.chunk.js deleted file mode 100644 index ca045b710e..0000000000 --- a/ydb/core/viewer/monitoring/static/js/3812.325f3251.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,{$:()=>o});var l=s(77506),t=s(33775),r=s(60712);const n=(0,l.cn)("ydb-entity-page-title");function o({entityName:e,status:a,id:s,className:l}){return(0,r.jsxs)("div",{className:n(null,l),children:[(0,r.jsx)("span",{className:n("prefix"),children:e}),(0,r.jsx)(t.k,{className:n("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:()=>c});var l=s(87184),t=s(77506),r=s(90053),n=s(70043),o=s(60712);const u=(0,t.cn)("ydb-page-meta");function i({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("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...a}){return(0,o.jsxs)(l.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:u(null,e),children:[(0,o.jsx)(i,{...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),b=s(15132),y=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)(y.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)(b.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)(y.k,{status:r})}),(0,d.f8)(S)&&I.push({label:N("latency"),value:(0,j.jsx)(y.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)(),b=G.S.useGetStorageGroupsInfoQuery((0,d.f8)(g)?{groupId:g,shouldUseGroupsHandler:m,with:"all",fieldsRequired:"all"}:t.hT,{pollingInterval:v,skip:!h}),y=null===(e=b.data)||void 0===e||null===(a=e.groups)||void 0===a?void 0:a[0],f=b.isFetching&&void 0===y;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===y||void 0===y?void 0:y.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===y||void 0===y?void 0:y.Overall)||E.m.Grey,id:g}),b.error?(0,j.jsx)(u.o,{error:b.error}):null,f?(0,j.jsx)(i.y,{className:I("info"),rows:10}):(0,j.jsx)(k,{data:y,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/3812.368eb751.chunk.js b/ydb/core/viewer/monitoring/static/js/3812.368eb751.chunk.js new file mode 100644 index 0000000000..1d5adec33a --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3812.368eb751.chunk.js @@ -0,0 +1 @@ +"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/4024.021c61dd.chunk.js b/ydb/core/viewer/monitoring/static/js/4024.021c61dd.chunk.js deleted file mode 100644 index b5a5a7f7b1..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4024.021c61dd.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4024],{94024:(e,t,n)=>{n.d(t,{registerYQLCompletionItemProvider:()=>B});var i=n(67913),s=n(23195),a=n(80781);const o=["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"],r=["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"],l=["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"],u=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)}),[]),c=["ROW_NUMBER","LAG","LEAD","FIRST_VALUE","LAST_VALUE","RANK","DENSE_RANK","SessionState"],m=[],T=["TablePathPrefix","Warning"],d={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"]},g={Method:0,Function:1,Constructor:2,Field:3,Variable:4,Class:5,Struct:6,Interface:7,Module:8,Property:9,Event:10,Operator:11,Unit:12,Value:13,Constant:14,Enum:15,EnumMember:16,Keyword:17,Text:18,Color:19,File:20,Reference:21,Customcolor:22,Folder:23,TypeParameter:24,User:25,Issue:26,Snippet:27},p=/[\s'"-/@]/,S={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"]},I=["dir","unknown","ext_sub_domain"],L=["dir","ext_sub_domain"];function y(e){let t=e;return e.match(p)&&(t=`\`${e}\``),t}function b(e){let t=0,n=e.length;return e.startsWith("`")&&(t=1),e.endsWith("`")&&(n=-1),e.slice(t,n)}function A(e){return e.startsWith("$")}function C(e){return e.startsWith("/")?e.slice(1):e}function h(e="",t){const n=b(e);if(!n.startsWith("/"))return n;let i=C(n);const s=C(t);return i.startsWith(s)&&(i=i.slice(s.length)),C(i)}const D={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 f(e){return D[e]}async function v(e,t,n,i){const s=h(i,n),o=await window.api.viewer.autocomplete({database:n,prefix:s,limit:1e3}),r=null===i||void 0===i?void 0:i.startsWith("`");if(o.Success){const n=function(e,t){const n=t.reduce(((e,t)=>{const n=S[t];return n&&n.forEach((t=>e.add(t))),e}),new Set(I));return null===e||void 0===e?void 0:e.filter((({Type:e})=>n.has(e)))}(o.Result.Entities,t);return n?n.reduce(((t,{Name:n,Type:i})=>{var s;const o=L.includes(i),l=o?`${n}/`:n;let u;o&&!r&&(u=`\`${l}$0\``);const c=t.length;return t.push({label:l,insertText:null!==(s=u)&&void 0!==s?s:l,kind:o?g.Folder:g.Text,insertTextRules:u?a.languages.CompletionItemInsertTextRule.InsertAsSnippet:a.languages.CompletionItemInsertTextRule.None,detail:i,range:e,command:l.endsWith("/")?{id:"editor.action.triggerSuggest",title:""}:void 0,sortText:G(f("suggestEntity"))+G(c)}),t}),[]):[]}return[]}async function F(e){return(await async function(){return r}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Function",range:e,sortText:G(f("suggestFunctions"))})))}async function E(e){return(await async function(){return o}()).map((t=>({label:t,insertText:t,kind:g.TypeParameter,detail:"Type",range:e,sortText:G(f("suggestSimpleTypes"))})))}async function M(e){return(await async function(){return u}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"UDF",range:e,sortText:G(f("suggestUdfs"))})))}async function N(e){return(await async function(){return c}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Window function",range:e,sortText:G(f("suggestWindowFunctions"))})))}async function R(e){return(await async function(){return m}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Table function",range:e,sortText:G(f("suggestTableFunctions"))})))}async function _(e){return(await async function(){return l}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Aggregate function",range:e,sortText:G(f("suggestAggregateFunctions"))})))}async function P(e){return(await async function(){return T}()).map((t=>({label:t,insertText:t,kind:g.Module,detail:"Pragma",range:e,sortText:G(f("suggestPragmas"))})))}async function x(e,t){const n=await async function(e){return d[e]}(t);return n.map((t=>({label:t,insertText:t,kind:g.Property,detail:"Setting",range:e,sortText:G(f("suggestEntitySettings"))})))}const O="abcdefghijklmnopqrstuvwxyz";function G(e){const t=O[e];if(t)return t;const n=Math.floor(e/O.length),i=e%O.length;return O.slice(-1).repeat(n)+O[i]}function U(e){return async(t,i,s,a)=>{const o=function(e,t){const{startColumn:n,endColumn:i}=e.getWordUntilPosition(t),s="$"===e.getLineContent(t.lineNumber)[n-2]?1:0;return{startColumn:n-s,startLineNumber:t.lineNumber,endColumn:i,endLineNumber:t.lineNumber}}(t,i),r=await async function(e,t,i,s){const{parseYqlQuery:a}=await Promise.resolve().then(n.bind(n,41614)),o={line:t.lineNumber,column:t.column},r=a(e.getValue(),o);let l=[],u=[],c=[],m=[],T=[],d=[],p=[],S=[],I=[],L=[];if(r.suggestEntity){const n=function(e,t){var n,i,s,a;const o=e.findPreviousMatch("\\s(`?[^\\s]*)",t,!0,!1,null,!0),r=e.findNextMatch("([^\\s]*)`?",t,!0,!1,null,!0);return`${null!==(n=null===o||void 0===o||null===(i=o.matches)||void 0===i?void 0:i[1])&&void 0!==n?n:""}${null!==(s=null===r||void 0===r||null===(a=r.matches)||void 0===a?void 0:a[1])&&void 0!==s?s:""}`}(e,t);l=await v(i,r.suggestEntity,s,n)}r.suggestFunctions&&(u=await F(i));r.suggestAggregateFunctions&&(c=await _(i));r.suggestWindowFunctions&&(m=await N(i));r.suggestTableFunctions&&(T=await R(i));r.suggestSimpleTypes&&(p=await E(i));r.suggestVariables&&(L=function(e,t){return t?t.map((({name:t})=>{const n="$"+t;return{label:n,insertText:n,kind:g.Variable,detail:"Variable",range:e,sortText:G(f("suggestVariables"))}})):[]}(i,r.suggestVariables));r.suggestUdfs&&(d=await M(i));r.suggestPragmas&&(S=await P(i));r.suggestEntitySettings&&(I=await x(i,r.suggestEntitySettings));const C=await function(e,t){return t?null===t||void 0===t?void 0:t.map((t=>({label:t.name,insertText:t.name,kind:g.Variable,detail:"Column alias",range:e,sortText:G(f("suggestColumnAliases"))}))):[]}(i,r.suggestColumnAliases),D=await async function(e,t,n,i){var s,a,o;if(null===t||void 0===t||!t.tables)return[];const r=[],l=t.all?[]:void 0,u=t.tables.length>1,c=null!==(s=null===(a=t.tables)||void 0===a?void 0:a.map((e=>{let t=b(e.name);return t.endsWith("/")||A(t)||(t=`${t}/`),{...e,name:h(t,i)}})))&&void 0!==s?s:[],m=c.map((e=>e.name)),T=Array.from(new Set(m)),d=T.filter((e=>!A(e)));let p=[];if(d.length){const e=await window.api.viewer.autocomplete({database:i,table:d,limit:1e3});var S;e.Success&&(p=null!==(S=e.Result.Entities)&&void 0!==S?S:[])}const I=T.filter(A),L=[];I.length&&I.forEach((e=>{var t,i,s,a;const o=null!==(t=null===n||void 0===n||null===(i=n.find((t=>e.slice(1)===t.name)))||void 0===i||null===(s=i.value)||void 0===s||null===(a=s.columns)||void 0===a?void 0:a.map((t=>({Name:t,Type:"column",Parent:e}))))&&void 0!==t?t:[];L.push(...o)}));const C=c.reduce(((e,t)=>{const n=t.columns;return n&&e.push(...n.map((e=>({Name:e,Type:"column",Parent:t.name})))),e}),[]),D=null===(o=t.tables)||void 0===o?void 0:o.reduce(((e,t)=>{var n;const s=h(b(t.name),i),a=null!==(n=e[s])&&void 0!==n?n:[];return t.alias&&a.push(t.alias),e[s]=a,e}),{});if([...p,...L,...C].forEach((t=>{if("column"!==t.Type)return;const n=function(e){const{PKIndex:t,NotNull:n,Default:i}=e,s=[];return void 0!==t&&s.push(`PK${t}`),n&&s.push("NN"),i&&s.push("Default"),s.length?s.join(", "):""}(t),s=y(t.Name),a=h(t.Parent,i),o=D[a],c=r.length;if(null!==o&&void 0!==o&&o.length)o.forEach((t=>{const i=`${t}.${s}`;r.push({label:{label:i,description:n},insertText:i,kind:g.Variable,detail:"Column",range:e,sortText:G(f("suggestColumns"))+G(c)}),null===l||void 0===l||l.push(i)}));else{let t=s;u&&(t=`${y(a)}.${s}`),r.push({label:{label:t,description:n},insertText:t,kind:g.Variable,detail:"Column",range:e,sortText:G(f("suggestColumns"))+G(c)}),null===l||void 0===l||l.push(t)}})),l&&l.length>1){const t=l.join(", ");r.push({label:t,insertText:t,kind:g.Variable,range:e,sortText:G(f("suggestAllColumns"))})}return r}(i,r.suggestColumns,r.suggestVariables,s),O=function(e,t){return t?t.map((t=>({label:t.value,insertText:t.value,kind:g.Keyword,detail:"Keyword",range:e,sortText:G(f("suggestKeywords"))}))):[]}(i,r.suggestKeywords),U=[...l,...u,...m,...T,...d,...p,...S,...C,...D,...O,...c,...I,...L];return U}(t,i,o,e);return{suggestions:r}}}let w;function B(e){w&&w.dispose(),w=i.eo.registerCompletionItemProvider(s.l,{triggerCharacters:[" ",".","`","(","/"],provideCompletionItems:U(e)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4187.ab11fc96.chunk.js b/ydb/core/viewer/monitoring/static/js/4187.ab11fc96.chunk.js deleted file mode 100644 index 3cb66893c4..0000000000 --- a/ydb/core/viewer/monitoring/static/js/4187.ab11fc96.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4187],{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})})}},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"]},76768:(e,t,a)=>{"use strict";a.d(t,{C:()=>b});var n=a(44992),r=a(44508),s=a(53850),i=a(62060),o=a.n(i),l=a(21334),c=a(24600);const d=l.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"}),u=(0,s.Mz)((e=>e),(e=>d.endpoints.getTabletsInfo.select(e)),{argsMemoize:s.i5,argsMemoizeOptions:{equalityCheck:o()}}),m=(0,s.Mz)((e=>e),((e,t)=>u(t)),((e,t)=>t(e).data)),p=(0,s.Mz)(((e,t)=>m(e,t)),(e=>(0,c.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 h=a(77506),v=a(90182),g=a(88616),y=a(60712);const x=(0,h.cn)("tablets");function b({nodeId:e,path:t,database:a,className:s}){const[i]=(0,v.Nt)();let o={};const l=void 0===e?void 0:String(e);void 0!==l?o={nodeId:l,database:a}:t&&(o={path:t,database:a});const{currentData:c,isFetching:u,error:m}=d.useGetTabletsInfoQuery(0===Object.keys(o).length?n.hT:o,{pollingInterval:i}),h=u&&void 0===c,b=(0,v.N4)((e=>p(e,o)));return(0,y.jsxs)("div",{className:x(null,s),children:[m?(0,y.jsx)(r.o,{error:m}):null,c||h?(0,y.jsx)(g.Q,{tablets:b,database:a,loading:h}):null]})}},16516:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>ag});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}({}),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 S={[b.EPathSubTypeSyncIndexImplTable]:"index_table",[b.EPathSubTypeAsyncIndexImplTable]:"index_table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},T={[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"},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&&S[t]||T[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"},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},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},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},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},z=e=>{var t;return null!==(t=e&&L[e])&&void 0!==t&&t},F={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},q={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!0,[x.EPathTypeExternalDataSource]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeReplication]:!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},Q=(e,t)=>{var a;return null!==(a=t&&F[t]||e&&q[e])&&void 0!==a&&a},U=e=>e===x.EPathTypeExternalTable,B=e=>e===x.EPathTypeTable,$=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"]})})}),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 Y({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 K=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},je=10,Se=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,je,je)}}(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)})})},Te={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,Te).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}))},j=()=>{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)(Se,{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?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),ze=a(59109),Fe=a(17594),qe=a(89073);const Qe=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),Be=a(95963),$e=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,$e.g4)("ydb-operations",{en:He}),We="id",Ve="status",Je="created_by",Ye="create_time",Ke="end_time",Ze="duration",Xe={[We]:Ge("column_operationId"),[Ve]:Ge("column_status"),[Je]:Ge("column_createdBy"),[Ye]:Ge("column_createTime"),[Ke]: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)(Be.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}){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:"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:Ye,header:Xe[Ye],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:r}]=Qe.useCancelOperationMutation(),[s,{isLoading:i}]=Qe.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,isFetching:p,error:h,refetch:v}=Qe.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)(qe.L,{children:[(0,d.jsx)(qe.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)(qe.L.Table,{loading:p,className:tt("table"),children:m?(0,d.jsx)(Fe.l,{columns:gt({database:e,refreshTable:v}),columnsWidthLSKey:"selectedOperationColumns",data:g,emptyDataMessage:Ge("title_empty")}):null})]})}var jt=a(99936),St=a(76768),Tt=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"]})}),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,$e.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=>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=>e.isPartitioningKeyColumn&&e.name)).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}const Ot="name",Mt="type",Lt="notNull",zt="autoIncrement",Ft="defaultValue",qt="familyName",Qt="prefferedPoolKind",Ut="columnCodec",Bt={name:"id",get header(){return Dt("column-title.id")},width:60,render:({row:e})=>e.id},$t={name:Ot,get header(){return Dt("column-title.name")},width:120,render:({row:e})=>e.name},Ht={name:Mt,get header(){return Dt("column-title.type")},width:100,render:({row:e})=>e.type},Gt={name:Lt,get header(){return Dt("column-title.notNull")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.notNull)return"\u2713"}},Wt={name:zt,get header(){return Dt("column-title.autoIncrement")},width:100,defaultOrder:Rt.Ay.DESCENDING,render:({row:e})=>{if(e.autoIncrement)return"\u2713"}},Vt={name:Ft,get header(){return Dt("column-title.defaultValue")},width:100,render:({row:e})=>String(e.defaultValue)},Jt={name:qt,get header(){return Dt("column-title.family")},width:100,render:({row:e})=>e.familyName},Yt={name:Qt,get header(){return Dt("column-title.media")},width:100,render:({row:e})=>e.prefferedPoolKind},Kt={name:Ut,get header(){return Dt("column-title.compression")},width:130,render:({row:e})=>e.columnCodec};function Zt(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 Xt(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?void 0:r.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===r||void 0===r?void 0:r.filter((e=>-1===e.keyColumnIndex)))||[]]}function ea(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:r}=(null===t||void 0===t?void 0:t.PathDescription)||{};return B(e)?Xt(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;const{Id:a,Name:n,Type:s,NotNull:o}=e,l=null!==(t=null===r||void 0===r?void 0:r.findIndex((e=>e===n)))&&void 0!==t?t:-1,c=Boolean(null===i||void 0===i?void 0:i.find((e=>e===n)));return{id:a,name:n,keyColumnIndex:l,isPartitioningKeyColumn:c,type:s,notNull:o}}));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 ta(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 aa=({type:e,path:t,tenantName:a,extended:r=!1})=>{const[s]=(0,X.Nt)(),{currentData:i,isLoading:o}=G.useGetOverviewQuery({path:t,database:a},{pollingInterval:s}),l=$(e)?{path:t,database:a}:y.hT,{data:c,isLoading:u}=wt.useGetViewSchemaQuery(l),m=n.useMemo((()=>$(e)?ta(c):ea(e,i)),[i,e,c]),p=n.useMemo((()=>m.some((e=>e.autoIncrement))),[m]),h=n.useMemo((()=>m.some((e=>e.defaultValue))),[m]),v=n.useMemo((()=>$(e)?Zt([$t,Ht],m):U(e)||k(e)?function(e){return Zt([Bt,$t,Ht,Gt],e)}(m):B(e)?function(e,t,a,n){const r=[Bt,$t,Ht,Gt];return n&&r.push(Vt),t&&r.push(Jt,Yt,Kt),a&&r.push(Wt),Zt(r,e)}(m,r,p,h):[]),[e,r,p,h,m]);return o||u?(0,d.jsx)(Tt.Q,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:At("keys-wrapper"),children:[(0,d.jsx)(_t,{tableData:m,extended:r,type:"primary"}),(0,d.jsx)(_t,{tableData:m,extended:r,type:"partitioning"})]}),(0,d.jsx)("div",{className:At(),children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"schemaTableColumnsWidth",data:m,columns:v,settings:Z.N3})})]})};var na=a(54309),ra=a(96589),sa=a(84375),ia=a(85589);const oa=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"}'),la=(0,$e.g4)("ydb-diagnostics-configs",{en:oa}),ca=(0,c.cn)("ydb-diagnostics-configs"),da=[{name:"Touched",header:"",render:({row:e})=>e.Current?(0,d.jsx)(sa.A,{content:la("flag-touched"),className:ca("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 la("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 la("td-default")},render:({row:e})=>{switch(e.Default){case!0:return la("enabled");case!1:return la("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return la("td-current")},render:({row:e})=>{var t;return(0,d.jsx)(ia.d,{disabled:!0,checked:(null!==(t=e.Current)&&void 0!==t?t:e.Default)||!1})},width:100,sortable:!1,resizeable:!1}],ua=({database:e})=>{const[t,a]=(0,s.useQueryParam)("search",s.StringParam),[n]=(0,X.Nt)(),{currentData:r=[],isFetching: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)(qe.L,{children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)(Be.v,{value:l,onChange:e=>{a(e||void 0,"replaceIn")},placeholder:la("search-placeholder")})}),(0,d.jsx)(qe.L.Table,{loading:i,children:o?(0,d.jsx)(de.o,{error:o}):(0,d.jsx)(Fe.l,{emptyDataMessage:la(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:da,data:c,settings:Z.N3})})]})};var ma=a(23536),pa=a.n(ma),ha=a(46549);const va=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"}),ga=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>va.endpoints.getTopic.select({path:e,database:t}))),ya=(0,g.Mz)((e=>e),((e,t,a)=>ga(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),xa=(0,g.Mz)((e=>e),((e,t,a)=>ga(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),ba=(0,g.Mz)(xa,(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)))),fa=(0,g.Mz)(ya,(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,ha.ey)(r)}})),ja=(0,g.Mz)(xa,(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,ha.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"}'),Ta=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"}'),Na=(0,$e.g4)("ydb-components-speed-multimeter",{ru:Ta,en:Sa}),Ea=(0,c.cn)("speed-multimeter"),wa=({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,ha.z3)({value:e,size:t,withSpeedLabel:!0}),u=[{value:c(s),label:Na("perMinute")},{value:c(i),label:Na("perHour")},{value:c(o),label:Na("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:Ea(),children:(0,d.jsxs)("div",{className:Ea("content"),children:[a&&(0,d.jsx)("div",{className:Ea("displayed-value"),children:c(m)}),(0,d.jsx)(sa.A,{content:(0,d.jsxs)("div",{className:Ea("popover-content"),children:[(0,d.jsx)("span",{className:Ea("popover-header"),children:Na("averageSpeed")}),u.map(((e,t)=>{return(0,d.jsx)("span",{className:Ea("popover-row",(a=b(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:Ea("popover-container"),placement:"bottom",disabled:!r,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:Ea("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:Ea("bar-container",{highlighted:f(a)}),onMouseEnter:x.bind(null,l,a),children:(0,d.jsx)("div",{className:Ea("bar",{color:b(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},Ca=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),Pa=({data:e})=>{const{writeSpeed:t,partitionsWriteLag:a,partitionsIdleTime:n}=e||{},r=[{label:"Write speed",value:(0,d.jsx)(wa,{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:Ca("wrapper"),children:r.map(((e,t)=>(0,d.jsxs)("div",{className:Ca("item"),children:[(0,d.jsx)("div",{className:Ca("label"),children:e.label}),(0,d.jsx)("div",{className:Ca("value"),children:e.value})]},t)))})};var Ia=a(74309),Da=a.n(Ia),Aa=a(44294),_a=a(6170);const Ra=({text:e,popoverContent:t,popoverClassName:a,className:n,contentClassName:r,buttonProps:s})=>(0,d.jsxs)("div",{className:n,children:[e,"\xa0",(0,d.jsx)(_a.B,{className:a,buttonProps:s,content:t,contentClassName:r})]}),ka=70,Oa=54,Ma=268,La="#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}),qa=({width:e})=>(0,d.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${e} l-10 -5 m0 10 l10 -5`}),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)(qa,{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:ka,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"})})})]})]}),Ua=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:La,children:(0,d.jsx)(qa,{width:Ma})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(Fa,{width:ka,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:ka,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:La}),(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:La}),(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:La}),(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})}),$a=()=>(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:Ma,height:Oa,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:La}),(0,d.jsx)(Ba,{id:"latest-write",fill:za})]}),(0,d.jsx)(Qa,{})]}),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:Ma,height:Oa,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:La}),(0,d.jsx)(Ba,{id:"latest-write",fill:za})]}),(0,d.jsx)(Ua,{})]}),Ga=(0,c.cn)("ydb-lag-popover-content"),Wa=({text:e,type:t})=>(0,d.jsxs)("div",{className:Ga({type:t}),children:[(0,d.jsx)("div",{className:Ga("text"),children:e}),(0,d.jsx)("div",{children:"read"===t?(0,d.jsx)(Ha,{}):(0,d.jsx)($a,{})})]}),Va=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"}'),Ya=(0,$e.g4)("ydb-diagnostics-consumers",{ru:Ja,en:Va}),Ka="consumer",Za="readSpeed",Xa="readLags",en={[Ka]:"Consumer",[Za]:"Read speed",[Xa]:"Read lags, duration"},tn="writeLag",an="readLag",nn="readIdleTime",rn={[tn]:"write lag",[an]:"read lag",[nn]:"read idle time"},sn=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),on=()=>(0,d.jsx)(Ra,{className:sn("lags"),text:en[Xa],popoverContent:(0,d.jsx)(Wa,{text:Ya("lagsPopover.readLags"),type:"read"})}),ln=(0,c.cn)("ydb-diagnostics-consumers-columns"),cn=[{name:Ka,header:en[Ka],align:Rt.Ay.LEFT,render:({row:e})=>{if(!e.name)return"\u2013";const t=Da().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)(Aa.E,{to:(0,na.YL)({...t,[na.vh.diagnosticsTab]:ae.iJ.partitions,selectedConsumer:e.name}),children:e.name})}},{name:Za,header:en[Za],align:Rt.Ay.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:({row:e})=>(0,d.jsx)(wa,{data:e.readSpeed})},{name:Xa,header:(0,d.jsx)(on,{}),className:ln("lags-header"),sub:[{name:tn,header:rn[tn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.writeLag)},{name:an,header:rn[an],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readLag)},{name:nn,header:rn[nn],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.readIdleTime)}]}],dn=(0,c.cn)("ydb-diagnostics-consumers"),un=({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}=va.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=>fa(a,e,t))),v=n.useMemo((()=>{if(!p)return[];const e=new RegExp(pa()(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:dn(),children:[(0,d.jsxs)("div",{className:dn("controls"),children:[(0,d.jsx)(Be.v,{onChange:e=>{i(e)},placeholder:Ya("controls.search"),className:dn("search"),value:s}),h&&(0,d.jsx)(Pa,{data:h})]}),u?(0,d.jsx)(de.o,{error:u}):null,p?(0,d.jsx)("div",{className:dn("table-wrapper"),children:(0,d.jsx)("div",{className:dn("table-content"),children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:dn("table"),data:v,columns:cn,settings:Z.N3,emptyDataMessage:Ya("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:Ya("noConsumersMessage."+(r?"stream":"topic"))})};var mn=a(96873),pn=a(97434),hn=a(84476),vn=a(67063),gn=a.n(vn);const yn=JSON.parse('{"context_case-sensitive-search":"Case sensitive search enadled","context_case-sensitive-search-disabled":"Case sensitive search disabled"}'),xn=(0,$e.g4)("ydb-json-tree",{en:yn});var bn=a(94630);a(91434);const fn=(0,c.cn)("ydb-json-tree");function jn({treeClassName:e,search:t,...a}){const[n,r]=(0,X.iK)(Z.iD,!1);return(0,d.jsxs)("div",{className:fn(),children:[(0,d.jsx)(gn(),{className:fn("tree",e),filterOptions:{ignoreCase:!n},searchOptions:{debounceTime:300},...a}),!1!==t&&(0,d.jsx)(lt.m,{title:xn(n?"context_case-sensitive-search":"context_case-sensitive-search-disabled"),children:(0,d.jsx)(hn.$,{view:"outlined",className:fn("case"),onClick:()=>r(!n),selected:n,children:(0,d.jsx)(ct.I,{data:bn.A})})})]})}const Sn=(0,c.cn)("ydb-describe"),Tn=new Map,Nn=({path:e,database:t,type:a})=>{const[n]=(0,X.Nt)(),r=z(a),s=(0,X.N4)((n=>J(n,e,a,t)),pn.bN);let i=[];r?s&&(i=[e,...s]):i=[e];const{mergedDescribe:o,loading:l,error:c}=Y({paths:i,autoRefreshInterval:n,database:t});let u;if(o){const e=Object.keys(o);u=1===e.length?o[e[0]]:o}return l||r&&!s?(0,d.jsx)(ue.a,{size:"m"}):u||c?(0,d.jsxs)("div",{className:Sn(),children:[c?(0,d.jsx)(de.o,{error:c}):null,u?(0,d.jsxs)("div",{className:Sn("result"),children:[(0,d.jsx)(jn,{data:u,onClick:({path:e})=>{const t=!Tn.get(e);Tn.set(e,t)},isExpanded:e=>Tn.get(e)||!1}),(0,d.jsx)(mn.b,{view:"flat-secondary",text:JSON.stringify(u),className:Sn("copy")})]}):null]}):(0,d.jsx)("div",{className:Sn("message-container"),children:"Empty"})};var En=a(60073);const wn=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},Cn=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 Pn=a(5741),In=a(82176);const Dn=(0,In.H)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring(9),CreateStep:he.r6},labels:{PathType:(0,Pn.A)("common.type"),CreateStep:(0,Pn.A)("common.created")}}),An=({value:e,withSpeedLabel:t,...a})=>{const n=(0,ha.z3)({value:e,withSpeedLabel:t,...a}),r=(0,ha.z3)({value:e,withSpeedLabel:t,size:"b"});return(0,d.jsx)("span",{title:r,children:n})},_n=(e,t)=>e?(0,d.jsx)(An,{value:e,significantDigits:2,...t}):null,Rn=(0,In.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:_n},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),kn={[j.METERING_MODE_REQUEST_UNITS]:"request-units",[j.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},On=(0,In.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"}}),Mn=(0,In.H)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&kn[e]},labels:{MeteringMode:"Metering mode"}}),Ln=(0,In.H)({values:{StorageLimitBytes:he.z3,WriteSpeedInBytesPerSecond:he.tC},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),zn=(0,In.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)}}),Fn=(0,In.H)({values:{CPU:he.iM,Memory:_n,Storage:_n,Network:he.tC,ReadThroughput:he.tC,WriteThroughput:he.tC},defaultValueFormatter:he.ZV}),qn=(0,In.H)({values:{FollowerCount:he.ZV},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),Qn=(0,In.H)({values:{FollowerCount:he.ZV,CrossDataCenterFollowerCount:he.ZV}}),Un=(0,In.H)({values:{DataSize:_n,IndexSize:_n,LastAccessTime:he.r6,LastUpdateTime:he.r6},defaultValueFormatter:he.ZV}),Bn=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),$n=({data:e})=>{var t;const a=wn(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)Bn.has(s)&&r.push(Rn(s,null===n||void 0===n?void 0:n[s]));return(0,d.jsx)(En.z_,{title:a,info:r})};var Hn=a(10508);const Gn=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"}'),Wn=(0,$e.g4)("ydb-tenant-objects-info",{en:Gn}),Vn=(0,c.cn)("ydb-external-data-source-info"),Jn=e=>{var t,a,n,r;return[{label:Wn("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},Dn("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep)]},Yn=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...Jn(e),{label:Wn("external-objects.location"),value:(0,d.jsx)(Hn.c,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Vn("location")})},{label:Wn("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?Wn("external-objects.auth-method.service-account"):Wn("external-objects.auth-method.none")}]},Kn=({data:e,prepareData:t})=>{const a=wn(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(En.z_,{title:a,info:t(e)}):(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]})},Zn=({data:e})=>(0,d.jsx)(Kn,{data:e,prepareData:Yn});var Xn=a(10755),er=a(25196);const tr=(0,c.cn)("ydb-external-table-info"),ar=(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:Wn("external-objects.source-type"),value:s},Dn("CreateStep",r),{label:Wn("external-objects.data-source"),value:i&&(0,d.jsx)("span",{title:i,children:(0,d.jsx)(er.K,{title:o||"",url:t})})}]},nr=(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[...ar(e,t),{label:Wn("external-objects.location"),value:(0,d.jsx)(Hn.c,{name:r,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:tr("location")})}]},rr=({data:e,prepareData:t})=>{var a,n;const r=(0,Xn.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=wn(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(En.z_,{title:o,info:t(e,i)}):(0,d.jsxs)("div",{className:"error",children:["No ",o," data"]})},sr=({data:e})=>(0,d.jsx)(rr,{data:e,prepareData:nr});var ir=a(57439);const or=JSON.parse('{"no-data":"No data"}'),lr=(0,$e.g4)("ydb-definition-list",{en:or}),cr=(0,c.cn)("ydb-definition-list");function dr({title:e,items:t,nameMaxWidth:a=220,copyPosition:n="outside",className:r,itemClassName:s,...i}){return(0,d.jsxs)("div",{className:cr(null),children:[e?(0,d.jsx)("div",{className:cr("title"),children:e}):null,t.length?(0,d.jsx)(ir.u,{items:t,nameMaxWidth:a,copyPosition:n,className:cr("properties-list",r),itemClassName:cr("item",s),...i}):lr("no-data")]})}var ur=a(96298),mr=a(8300);ur.A.registerLanguage("yql",mr.TL);const pr=(0,c.cn)("yql-highlighter"),hr=({children:e,className:t})=>{const a=(0,te.i)(),n="dark"===a||"dark-hc"===a;return(0,d.jsx)("div",{className:pr(null,t),children:(0,d.jsx)(ur.A,{language:"yql",style:n?mr.XT:mr.BB,children:e})})};function vr({data:e}){const t=wn(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:Wn("view.query-text"),copyText:n,content:n?(0,d.jsx)(hr,{children:n}):null}]})(e);return(0,d.jsx)(dr,{title:t,items:a})}function gr({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 yr=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),xr=(0,$e.g4)("ydb-diagnostics-async-replication-paths",{en:yr}),br=(0,c.cn)("ydb-async-replication-paths"),fr=[{name:xr("column.srcPath.name"),render:({row:e})=>e.SrcPath,sortAccessor:e=>e.SrcPath},{name:xr("column.dstPath.name"),render:({row:e})=>e.DstPath,sortAccessor:e=>e.DstPath}];function jr({config:e}){if(!e)return null;let t=xr("noData");var a,n;e.Everything&&(t=(0,d.jsxs)("span",{children:[xr("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)(Fe.l,{data:e.Specific.Targets,settings:Z.jp,columns:fr})),(0,d.jsxs)("div",{className:br(),children:[(0,d.jsx)("div",{className:br("title"),children:xr("title")}),t]})}function Sr({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 Tr=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"}'),Nr=(0,$e.g4)("ydb-diagnostics-async-replication-info",{en:Tr});function Er({data:e}){var t,a;const n=wn(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:[Nr("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:Nr("state.label"),content:(0,d.jsx)(gr,{state:r})});i&&l.push({name:Nr("srcConnection.endpoint.label"),copyText:i,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:i})});o&&l.push({name:Nr("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(it.E,{variant:"code-inline-2",children:o})});s&&l.push({name:Nr("credentials.label"),content:(0,d.jsx)(Sr,{connection:s})});return l}(e);return(0,d.jsxs)(ot.s,{direction:"column",gap:"4",children:[(0,d.jsx)(dr,{title:n,items:r}),(0,d.jsx)(jr,{config:null===(t=e.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const wr=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),Cr=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"}'),Pr=(0,$e.g4)("ydb-diagnostics-overview-topic-stats",{ru:Cr,en:wr}),Ir=(0,c.cn)("ydb-overview-topic-stats"),Dr=e=>[{label:"Store size",value:(0,he.z3)(e.storeSize)},{label:(0,d.jsx)(Ra,{text:"Write idle time",popoverContent:(0,d.jsx)(Wa,{text:Pr("writeIdleTimePopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsIdleTime)},{label:(0,d.jsx)(Ra,{text:"Write lag",popoverContent:(0,d.jsx)(Wa,{text:Pr("writeLagPopover"),type:"write"})}),value:(0,vt.Bi)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(wa,{data:e.writeSpeed,withValue:!1})}],Ar=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)}]},_r=({path:e,database:t})=>{const[a]=(0,X.Nt)(),{currentData:r,isFetching:s,error:i}=va.useGetTopicQuery({path:e,database:t},{pollingInterval:a}),o=s&&void 0===r,l=(0,X.N4)((a=>fa(a,e,t)));if(o)return(0,d.jsx)("div",{className:Ir(),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:Ir(),children:[(0,d.jsx)("div",{className:Ir("title"),children:"Stats"}),c,l?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:Ir("info"),children:(0,d.jsx)(En.z_,{info:Dr(l),multilineLabels:!0})}),(0,d.jsx)("div",{className:Ir("bytes-written"),children:(0,d.jsx)(En.z_,{info:Ar(l)})})]}):null]})},Rr=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,En.jl)(On,{Partitions:n,PQTabletConfig:r}),...(0,En.jl)(Ln,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,En.jl)(Mn,{Codecs:s,MeteringMode:i})]},kr=(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[Dn("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,En.jl)(zn,{Mode:i,Format:o}),...Rr(t)]},Or=({path:e,database:t,data:a,topic:n})=>{const r=wn(null===a||void 0===a?void 0:a.PathDescription);return a&&n?(0,d.jsxs)("div",{children:[(0,d.jsx)(En.z_,{title:r,info:kr(a,n)}),(0,d.jsx)(_r,{path:e,database:t})]}):(0,d.jsxs)("div",{className:"error",children:["No ",r," data"]})},Mr=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.createView":"Create view...","actions.dropTable":"Drop table...","actions.dropTopic":"Drop topic...","actions.dropView":"Drop view...","actions.alterTable":"Alter table...","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.dropReplication":"Drop async replicaton...","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"}'),Lr=(0,$e.g4)("ydb-tenant",{en:Mr});function zr({data:e}){const t=wn(e);return Cn(e)?(0,d.jsxs)(ot.s,{gap:1,wrap:"nowrap",children:[t," ",(0,d.jsx)(Ct.J,{children:Lr("label.read-only")})]}):t}const Fr=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"}'),qr=(0,$e.g4)("ydb-diagnostics-overview-table-info",{en:Fr});var Qr=a(62091),Ur=a.n(Qr),Br=a(7435),$r=a(41650);const Hr=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=qr("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,vt.Bi)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:qr("label.ttl"),value:t}}};const Gr=(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:j,InFlightTxCount:S,RowUpdates:T,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?qr("value.partitioning-by-size.enabled",{size:(0,he.z3)(n.SizeToSplit)}):qr("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?qr("enabled"):qr("disabled");if(i.push({label:qr("label.partitioning-by-size"),value:o},{label:qr("label.partitioning-by-load"),value:l},{label:qr("label.partitions-min"),value:(0,he.ZV)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&i.push({label:qr("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:qr("label.read-replicas"),value:n})}if(t){const e=Hr(t);e&&i.push(e)}return(0,Br.f8)(s)&&i.push({label:qr("label.bloom-filter"),value:qr(s?"enabled":"disabled")}),i})(s,i);break;case x.EPathTypeColumnTable:A=function(e){var t,a;const n=[];var r;if(n.push({label:qr("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:qr("label.partitioning"),value:(0,d.jsx)(it.E,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=Hr(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const _=(0,En.jl)(Un,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m});(0,$r.kf)(p)&&(s.EnableFilterByKey||Number(p)>0)&&_.push({label:"BloomFilterSize",value:_n(p)});const R=[_,(0,En.jl)(Un,{LastAccessTime:h,LastUpdateTime:v}),(0,En.jl)(Un,{ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:j,InFlightTxCount:S}),(0,En.jl)(Un,{RowUpdates:T,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C})],k=(0,En.jl)(Fn,Ur()(r,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let O=[];return Array.isArray(P)&&P.length>0?O=(0,En.jl)(qn,P[0]):void 0!==I?O.push(Qn("FollowerCount",I)):void 0!==D&&O.push(Qn("CrossDataCenterFollowerCount",D)),{generalInfo:A,tableStatsInfo:R,tabletMetricsInfo:k,partitionConfigInfo:O}},Wr=(0,c.cn)("ydb-diagnostics-table-info"),Vr=({data:e,type:t})=>{const a=(0,d.jsx)(zr,{data:null===e||void 0===e?void 0:e.PathDescription}),{generalInfo:r,tableStatsInfo:s,tabletMetricsInfo:i=[],partitionConfigInfo:o=[]}=n.useMemo((()=>Gr(e,t)),[e,t]);return(0,d.jsxs)("div",{className:Wr(),children:[(0,d.jsx)(En.z_,{info:r,title:a,className:Wr("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:Wr("title"),children:a})}),(0,d.jsxs)("div",{className:Wr("row"),children:[s?(0,d.jsx)("div",{className:Wr("col"),children:s.map(((e,t)=>(0,d.jsx)(En.z_,{info:e,title:0===t?qr("tableStats"):void 0,className:Wr("info-block"),renderEmptyState:()=>null},t)))}):null,i.length>0||o.length>0?(0,d.jsxs)("div",{className:Wr("col"),children:[(0,d.jsx)(En.z_,{info:i,title:qr("tabletMetrics"),className:Wr("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(En.z_,{info:o,title:qr("partitionConfig"),className:Wr("info-block"),renderEmptyState:()=>null})]}):null]})]})},Jr=({data:e,path:t,database:a})=>{const n=wn(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsxs)("div",{children:[(0,d.jsx)(En.z_,{title:n,info:Rr(e)}),(0,d.jsx)(_r,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})};const Yr=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)),pn.bN);let o=[];s?i&&(o=[t,...i]):o=[t];const{mergedDescribe:l,loading:c,error:u}=Y({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.EPathTypeTable]:void 0,[x.EPathTypeSubDomain]:void 0,[x.EPathTypeTableIndex]:()=>(0,d.jsx)($n,{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)(Or,{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)(Jr,{data:r,path:t,database:a}),[x.EPathTypeExternalTable]:()=>(0,d.jsx)(sr,{data:r}),[x.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Zn,{data:r}),[x.EPathTypeView]:()=>(0,d.jsx)(vr,{data:r}),[x.EPathTypeReplication]:()=>(0,d.jsx)(Er,{data:r})};return e&&(null===(n=s[e])||void 0===n?void 0:n.call(s))||(0,d.jsx)(Vr,{data:r,type:e})})()]})};var Kr,Zr=a(74417);function Xr(){return Xr=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},Xr.apply(null,arguments)}const es=function(e){return n.createElement("svg",Xr({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),Kr||(Kr=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 ts({href:e,className:t,size:a="xs"}){return(0,d.jsx)(hn.$,{href:e,target:"_blank",className:t,size:a,title:"Monitoring dashboard",children:(0,d.jsx)(ct.I,{data:es})})}var as=a(20680),ns=a(66643),rs=a(40014),ss=a(25533),is=a(90474);const os=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];function ls(e){return null===e?Z.Pd:(0,vt.Xo)((0,he.CR)(us(e),2))}function cs(e){return null===e?Z.Pd:(0,ha.z3)({value:us(e),precision:3})}function ds(e){return null===e?Z.Pd:Math.round(100*us(e))+"%"}function us(e){return(0,$r.kf)(e)?Number(e):0}const ms={"30m":30*Z.r0,"1h":Z.Jg,"1d":Z.tt,"1w":7*Z.tt},ps=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),hs=(0,$e.g4)("ydb-metric-chart",{en:ps}),vs=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-ms[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?hs("not-supported"):a.error)}}catch(a){return{error:a}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),gs=(0,c.cn)("ydb-metric-chart");ns.W.set({plugins:[ss.YagrPlugin]});const ys=(e,t={})=>{const{dataType:a,scaleRange:n,showLegend:r}=t,s=(e=>{switch(e){case"ms":return ls;case"size":return cs;case"percent":return ds;default:return}})(a),i=!e.metrics.length,o=e.metrics.map(((e,t)=>{const a=e.color||os[t],n=function(e,t){const a=(0,is.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}}}},xs={timeline:[],metrics:[]},bs=({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}=vs.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=ys(m||xs,l);return(0,d.jsxs)("div",{className:gs(null),style:{height:o,width:i},children:[(0,d.jsx)("div",{className:gs("title"),children:t}),g?(0,d.jsx)(ue.a,{}):u?(0,d.jsxs)("div",{className:gs("chart"),children:[(0,d.jsx)(rs.Ay,{type:"yagr",data:y}),p?(0,d.jsx)(de.o,{className:gs("error"),error:p}):null]}):null]})},fs=(0,c.cn)("ydb-timeframe-selector"),js=({value:e,onChange:t,className:a})=>(0,d.jsx)("div",{className:fs(null,a),children:Object.keys(ms).map((a=>(0,d.jsx)(hn.$,{view:"flat",selected:e===a,onClick:()=>t(a),children:a},a)))}),Ss=(0,c.cn)("ydb-tenant-dashboard"),Ts=({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:Ss(null),style:{display:a?"none":void 0},children:[(0,d.jsx)("div",{className:Ss("controls"),children:(0,d.jsx)(js,{value:i,onChange:o})}),(0,d.jsx)("div",{className:Ss("charts"),children:t.map((t=>{const n=t.metrics.map((({target:e})=>e)).join("&");return(0,d.jsx)(bs,{database:e,title:t.title,metrics:t.metrics,timeFrame:i,chartOptions:t.options,autorefresh:c,width:m,height:p,onChartDataStatusChange:u,isChartVisible:!a},n)}))})]})},Ns=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"}'),Es=(0,$e.g4)("ydb-diagnostics-tenant-overview",{en:Ns}),ws=[{title:Es("charts.queries-per-second"),metrics:[{target:"queries.requests",title:Es("charts.queries-per-second")}]},{title:Es("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}}],Cs=({database:e})=>(0,d.jsx)(Ts,{database:e,charts:ws});var Ps=a(67157);const Is=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"}),Ds={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},As=e=>e.sort(((e,t)=>(Ds[e.status]||0)-(Ds[t.status]||0))),_s=({issue:e,data:t})=>As(t.filter((t=>e.reason&&-1!==e.reason.indexOf(t.id)))),Rs=({data:e,roots:t})=>t?t.map((t=>{const a=Rs({roots:_s({issue:t,data:e}),data:e});return{...t,reasonsItems:a}})):[],ks=(0,g.Mz)((e=>e),(e=>Is.endpoints.getHealthcheckInfo.select({database:e}))),Os=(0,g.Mz)((e=>e),((e,t)=>ks(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),Ms=(0,g.Mz)(Os,((e=[])=>{return As((t=e).filter((e=>!t.find((t=>t.reason&&-1!==t.reason.indexOf(e.id))))));var t})),Ls=(0,g.Mz)([Os,Ms],((e=[],t=[])=>Rs({data:e,roots:t}))),zs=(0,g.Mz)(Os,((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])=>(Ds[e]||0)-(Ds[t]||0)))})(e)));let Fs=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY",e}({}),qs=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 Qs=a(63126),Us=a(54090);const Bs={[qs.UNSPECIFIED]:Us.m.Grey,[qs.GREY]:Us.m.Grey,[qs.GREEN]:Us.m.Green,[qs.BLUE]:Us.m.Blue,[qs.YELLOW]:Us.m.Yellow,[qs.ORANGE]:Us.m.Orange,[qs.RED]:Us.m.Red},$s=(0,c.cn)("issue-tree-item"),Hs=({status:e,message:t,type:a,onClick:n})=>(0,d.jsxs)("div",{className:$s(),onClick:n,children:[(0,d.jsx)("div",{className:$s("field",{status:!0}),children:(0,d.jsx)(Hn.c,{mode:"icons",status:e,name:a})}),(0,d.jsx)("div",{className:$s("field",{message:!0}),children:t})]}),Gs=(0,c.cn)("issue-tree"),Ws=({issueTree:e})=>{const[t,a]=n.useState({}),r=n.useCallback((e=>e?(0,d.jsx)("div",{className:Gs("info-panel"),children:(0,d.jsx)(jn,{data:e,search:!1,isExpanded:()=>!0,treeClassName:Gs("inspector")})}):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)(Qs.G,{name:(0,d.jsx)(Hs,{status:Bs[i],message:o,type:l}),collapsed:p,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[r(Ur()(m,["reason"])),s(c||[])]},n)}))),[t,r]);return(0,d.jsx)("div",{className:Gs(),children:(0,d.jsx)("div",{className:Gs("block"),children:s([e])})})},Vs=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"}'),Js=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"}'),Ys=(0,$e.g4)("ydb-diagnostics-healthcheck",{ru:Js,en:Vs}),Ks=(0,c.cn)("healthcheck");function Zs({tenantName:e}){const[t]=(0,X.Nt)(),{name:a}=(0,Ps.Zd)(),{issueTrees:r,loading:s,error:i}=((e,{autorefresh:t}={})=>{const{currentData:a,isFetching:n,error:r,refetch:s}=Is.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||Fs.UNSPECIFIED,o=(0,X.N4)((t=>zs(t,e)));return{issueTrees:(0,X.N4)((t=>Ls(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:Ks("details"),children:(0,d.jsx)("div",{className:Ks("details-content-wrapper"),children:i?(0,d.jsx)(de.o,{error:i,defaultMessage:Ys("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)(Ws,{issueTree:e},e.id)))}):Ys("status_message.ok")})})}var Xs=a(8861),ei=a(73633),ti=a(70825),ai=a(43937),ni=a(10800),ri=a(71153),si=a(2102),ii=a(52358);const oi=(0,c.cn)("healthcheck"),li={[Fs.UNSPECIFIED]:ei.A,[Fs.GOOD]:ti.A,[Fs.DEGRADED]:ai.A,[Fs.MAINTENANCE_REQUIRED]:ni.A,[Fs.EMERGENCY]:ri.A};function ci(e){const{tenantName:t,active:a}=e,[n]=(0,X.Nt)(),{name:r}=(0,Ps.Zd)(),s="ydb_ru"===r,{currentData:i,isFetching:o,error:l}=Is.useGetHealthcheckInfoQuery({database:t},{pollingInterval:s?void 0:n}),c=o&&void 0===i;return(0,d.jsxs)(si.A,{className:oi("preview"),active:a,children:[(0,d.jsx)("div",{className:oi("preview-header"),children:(0,d.jsxs)("div",{className:oi("preview-title-wrapper"),children:[(0,d.jsx)("div",{className:oi("preview-title"),children:Ys("title.healthcheck")}),n&&s?(0,d.jsx)(sa.A,{content:"Autorefresh is disabled. Please update healthcheck manually.",placement:["top"],className:oi("icon-wrapper"),children:()=>(0,d.jsx)(ct.I,{size:16,className:oi("icon-warn"),data:ii.A})}):null]})}),(()=>{if(l)return(0,d.jsx)(de.o,{error:l,defaultMessage:Ys("no-data")});if(c)return(0,d.jsx)(ue.a,{size:"m"});const e=(null===i||void 0===i?void 0:i.self_check_result)||Fs.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:oi("preview-content"),children:(0,d.jsxs)("div",{className:oi("preview-issue",{[t]:!0}),children:[(0,d.jsx)(ct.I,{className:oi("preview-status-icon"),data:li[e]}),(0,d.jsx)("div",{className:oi("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var di=a(15132),ui=a(33775);const mi=(0,c.cn)("ydb-metrics-card"),pi=e=>{let t;return"Warning"===e&&(t=Us.m.Yellow),"Danger"===e&&(t=Us.m.Red),t?(0,d.jsx)(ui.k,{status:t,mode:"icons",size:"l"}):null};function hi({active:e,label:t,status:a,metrics:n}){return(0,d.jsxs)(si.A,{className:mi({active:e}),active:e,children:[(0,d.jsxs)("div",{className:mi("header"),children:[t&&(0,d.jsx)("div",{className:mi("label"),children:t}),pi(a)]}),(0,d.jsx)("div",{className:mi("content"),children:n.map((({title:e,...t},a)=>(0,d.jsxs)("div",{className:mi("metric"),children:[(0,d.jsx)("div",{className:mi("metric-title"),children:e}),(0,d.jsx)(di.O,{size:"xs",colorizeProgress:!0,...t})]},a)))})]})}const vi=(0,c.cn)("metrics-cards");function gi({poolsCpuStats:e,memoryStats:t,blobStorageStats:a,tabletStorageStats:n,tenantName:r}){const s=(0,Xn.zy)(),{metricsTab:i}=(0,X.N4)((e=>e.tenant)),o=(0,ye.mA)(s),l=e=>e===i?"":e,c={[ae.pA.cpu]:(0,na.YL)({...o,[na.vh.metricsTab]:l(ae.pA.cpu)}),[ae.pA.storage]:(0,na.YL)({...o,[na.vh.metricsTab]:l(ae.pA.storage)}),[ae.pA.memory]:(0,na.YL)({...o,[na.vh.metricsTab]:l(ae.pA.memory)}),[ae.pA.healthcheck]:(0,na.YL)({...o,[na.vh.metricsTab]:l(ae.pA.healthcheck)})};return(0,d.jsxs)("div",{className:vi(),children:[(0,d.jsx)(re.N_,{to:c.cpu,className:vi("tab"),children:(0,d.jsx)(yi,{poolsCpuStats:e,active:i===ae.pA.cpu})}),(0,d.jsx)(re.N_,{to:c.storage,className:vi("tab"),children:(0,d.jsx)(xi,{blobStorageStats:a,tabletStorageStats:n,active:i===ae.pA.storage})}),(0,d.jsx)(re.N_,{to:c.memory,className:vi("tab"),children:(0,d.jsx)(bi,{memoryStats:t,active:i===ae.pA.memory})}),(0,d.jsx)(re.N_,{to:c.healthcheck,className:vi("tab"),children:(0,d.jsx)(ci,{tenantName:r,active:i===ae.pA.healthcheck})})]})}function yi({poolsCpuStats:e=[],active:t}){let a=Xs.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,as.sf)(n);return Xs.Z[i]>Xs.Z[a]&&(a=i),{title:t,value:s,capacity:r}}));return(0,d.jsx)(hi,{label:Es("cards.cpu-label"),active:t,metrics:n,status:a})}function xi({blobStorageStats:e=[],tabletStorageStats:t,active:a}){let n=Xs.u.Unspecified;const r=(t||e).map((e=>{const{name:t,used:a,limit:r,usage:s}=e,i=(0,as.sf)(s);return Xs.Z[i]>Xs.Z[n]&&(n=i),{title:t,value:a,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(hi,{label:Es("cards.storage-label"),active:a,metrics:r,status:n})}function bi({active:e,memoryStats:t=[]}){let a=Xs.u.Unspecified;const n=t.map((e=>{const{name:t,used:n,limit:r,usage:s}=e,i=(0,as.sf)(s);return Xs.Z[i]>Xs.Z[a]&&(a=i),{title:t,value:n,capacity:r,formatValues:he.j9}}));return(0,d.jsx)(hi,{label:Es("cards.memory-label"),active:e,metrics:n,status:a})}var fi=a(78762),ji=a(86782),Si=a(15298),Ti=a(40781);const Ni=(0,c.cn)("tenant-overview");function Ei({title:e,error:t,loading:a,tableClassNameModifiers:r={},...s}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:Ni("title"),children:e}),t?(0,d.jsx)(de.o,{error:t}):null,(0,d.jsx)("div",{className:Ni("table",r),children:t&&0===s.data.length?null:a?(0,d.jsx)(Tt.Q,{rows:Z.Nz}):(0,d.jsx)(Fe.l,{settings:Z.jp,...s})})]})}var wi=a(82015);const Ci=({prefix:e=Es("top"),entity:t,postfix:a,link:r,onClick:s})=>r?(0,d.jsxs)(n.Fragment,{children:[e," ",(0,d.jsx)(wi.E,{to:r,onClick:s,children:t})," ",a]}):`${e} ${t} ${a}`;function Pi({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,fi.Nh)(e),width:void 0},a=[(0,fi.kv)(),(0,fi._E)(),t].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,Ti.R)(n,ji.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=Si.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=Ci({entity:Es("nodes"),postfix:Es("by-pools-usage"),link:(0,na.YL)({...a,[na.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(Ei,{columnsWidthLSKey:ji.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:Es("top-nodes.empty-data")})}function Ii({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t={...(0,fi.Nh)(e),width:void 0},a=[(0,fi.fR)(),(0,fi._E)(),t,(0,fi.Rn)()].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,Ti.R)(n,ji.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=Si.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=Ci({entity:Es("nodes"),postfix:Es("by-load"),link:(0,na.YL)({...a,[na.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(Ei,{columnsWidthLSKey:ji.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:Es("top-nodes.empty-data")})}var Di=a(69053),Ai=a(10468),_i=a(16332),Ri=a(2198);const ki=JSON.parse('{"action_cancel":"Cancel"}'),Oi=(0,$e.g4)("ydb-confirmation-dialog",{en:ki}),Mi=(0,c.cn)("confirmation-dialog"),Li="confirmation-dialog";function zi({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)(Ri.l,{className:Mi(null,l),size:"s",onClose:n,disableOutsideClick:!0,open:u,children:[(0,d.jsx)(Ri.l.Header,{caption:(0,d.jsx)("span",{className:Mi("caption"),children:e})}),(0,d.jsx)(Ri.l.Body,{children:t}),(0,d.jsx)(Ri.l.Footer,{onClickButtonApply:a,propsButtonApply:{view:o},textButtonApply:s,textButtonCancel:null!==i&&void 0!==i?i:Oi("action_cancel"),onClickButtonCancel:n,loading:r,renderButtons:c})]})}const Fi=_i.vt((e=>{const t=_i.hS(),a=()=>{t.hide(),t.remove()};return(0,d.jsx)(zi,{...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})}));_i.kz(Li,Fi);var qi=a(40569),Qi=a(28664),Ui=a(36894);function Bi(){const[e]=(0,X.iK)(Z.ld,[]),t=(0,X.N4)(Ui.cu).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const $i=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"}'),Hi=(0,$e.g4)("ydb-save-query-dialog",{en:$i}),Gi=(0,c.cn)("ydb-save-query");function Wi(e){const t=(0,X.YQ)();return n.useCallback((()=>{_i.Ay.show(Ki,e),t((0,Ui.gJ)())}),[t,e])}function Vi({dialogProps:e,...t}){const a=Wi(e);return(0,d.jsx)(hn.$,{onClick:a,...t,children:Hi("action.save")})}function Ji({buttonProps:e={}}){const t=(0,X.YQ)(),a=(0,X.N4)(Ui.aW),n=Wi(),r=()=>{t((0,Ui.Wg)(a)),t((0,Ui.gJ)())};return a?(()=>{const t=[{action:r,text:Hi("action.edit-existing")},{action:n,text:Hi("action.save-as-new")}];return(0,d.jsx)(qi.r,{items:t,renderSwitcher:t=>(0,d.jsx)(hn.$,{...t,...e,children:Hi("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)(Vi,{})}function Yi({onSuccess:e,onCancel:t,onClose:a,open:r}){const s=Bi(),i=(0,X.YQ)(),[o,l]=n.useState(""),[c,u]=n.useState(),m=()=>{i((0,Ui.NJ)("idle")),l(""),u(void 0),null===a||void 0===a||a()},p=()=>{null===t||void 0===t||t(),m()};return(0,d.jsxs)(Ri.l,{open:r,hasCloseButton:!1,size:"s",onClose:p,children:[(0,d.jsx)(Ri.l.Header,{caption:Hi("action.save")}),(0,d.jsxs)("form",{onSubmit:t=>{t.preventDefault();const a=(n=o)?s.some((e=>e.name.toLowerCase()===n.trim().toLowerCase()))?Hi("error.name-exists"):void 0:Hi("error.name-not-empty");var n;u(a),a||(i((0,Ui.Wg)(o)),m(),null===e||void 0===e||e())},children:[(0,d.jsxs)(Ri.l.Body,{className:Gi("dialog-body"),children:[(0,d.jsx)("div",{className:Gi("dialog-row"),children:Hi("description")}),(0,d.jsxs)("div",{className:Gi("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:Gi("field-title","required"),children:Hi("input-label")}),(0,d.jsx)("div",{className:Gi("control-wrapper"),children:(0,d.jsx)(Qi.k,{id:"queryName",placeholder:Hi("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)(Ri.l.Footer,{textButtonApply:Hi("button-apply"),textButtonCancel:Hi("button-cancel"),onClickButtonCancel:p,propsButtonApply:{type:"submit"}})]})]})}const Ki="save-query-dialog",Zi=_i.Ay.create((e=>{const t=_i.Ay.useModal();return(0,d.jsx)(Yi,{...e,onClose:()=>{var a;null===(a=e.onClose)||void 0===a||a.call(e),t.hide(),t.remove()},open:t.visible})}));_i.Ay.register(Ki,Zi);const Xi=JSON.parse('{"action_apply":"Don\'t save","context_unsaved-changes-warning":"You have unsaved changes in query editor.\\nDo you want to proceed?"}'),eo=(0,$e.g4)("ydb-change-input-confirmation",{en:Xi});function to(){const e=_i.Ay.useModal(Li),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)(Vi,{view:"action",size:"l",dialogProps:s})}async function ao(){return await _i.Ay.show(Li,{id:Li,caption:eo("context_unsaved-changes-warning"),textButtonApply:eo("action_apply"),propsButtonApply:{view:"l"},renderButtons:(e,t)=>(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(to,{}),e]})})}function no(e){const t=(0,X.N4)(Ai.Wp),a=n.useMemo((()=>function(e){return async t=>{await ao()&&e(t)}}(e)),[e]);return t?a:e}const ro=(0,c.cn)("kv-truncated-query"),so=({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)(hr,{className:ro(),children:e}),(0,d.jsx)("span",{className:ro("message",{color:"secondary"}),children:r})]})}return(0,d.jsx)(hr,{children:e})};var io=a(70206),oo=a.n(io);const lo={...Z.N3,dynamicRenderType:"variable"},co=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"}'),uo=(0,$e.g4)("ydb-top-queries-columns",{en:co}),mo="topQueriesColumnsWidth",po="CPUTime",ho="QueryText",vo="EndTime",go="ReadRows",yo="ReadBytes",xo="UserSID",bo="OneLineQueryText",fo="QueryHash",jo="Duration",So="QueryStartAt",To="ApplicationName",No={get CPUTime(){return uo("cpu-time")},get QueryText(){return uo("query-text")},get EndTime(){return uo("end-time")},get ReadRows(){return uo("read-rows")},get ReadBytes(){return uo("read-bytes")},get UserSID(){return uo("user")},get OneLineQueryText(){return uo("query-text")},get QueryHash(){return uo("query-hash")},get Duration(){return uo("duration")},get QueryStartAt(){return uo("start-time")},get ApplicationName(){return uo("application")}},Eo={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 wo(e){return Eo[e]}function Co(e){return Boolean(wo(e))}const Po=(0,c.cn)("kv-top-queries"),Io={name:po,header:No.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},Do={name:ho,header:No.QueryText,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,d.jsx)("div",{className:Po("query"),children:(0,d.jsx)(so,{value:null===(t=e.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:6})})},sortable:!1,width:500},Ao={name:vo,header:No.EndTime,render:({row:e})=>(0,he.r6)(new Date(e.EndTime).getTime()),align:Rt.Ay.RIGHT,width:200},_o={name:go,header:No.ReadRows,render:({row:e})=>(0,he.ZV)(e.ReadRows),sortAccessor:e=>Number(e.ReadRows),align:Rt.Ay.RIGHT,width:150},Ro={name:yo,header:No.ReadBytes,render:({row:e})=>(0,he.ZV)(e.ReadBytes),sortAccessor:e=>Number(e.ReadBytes),align:Rt.Ay.RIGHT,width:150},ko={name:xo,header:No.UserSID,render:({row:e})=>(0,d.jsx)("div",{className:Po("user-sid"),children:e.UserSID||"\u2013"}),sortAccessor:e=>String(e.UserSID),align:Rt.Ay.LEFT},Oo={name:bo,header:No.OneLineQueryText,render:({row:e})=>{var t;return(0,d.jsx)(hr,{children:(null===(t=e.QueryText)||void 0===t?void 0:t.toString())||""})},sortable:!1,width:500},Mo={name:fo,header:No.QueryHash,render:({row:e})=>{return t=String(e.QueryText),(oo().str(t)>>>0).toString(16).toUpperCase().padStart(8,"0");var t},width:130,sortable:!1},Lo={name:jo,header:No.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},zo={name:So,header:No.QueryStartAt,render:({row:e})=>(0,he.r6)(new Date(e.QueryStartAt).getTime()),sortable:!0,resizeable:!1,defaultOrder:Rt.Ay.DESCENDING},Fo={name:To,header:No.ApplicationName,render:({row:e})=>(0,d.jsx)("div",{className:Po("user-sid"),children:e.ApplicationName||"\u2013"}),sortable:!0};function qo({tenantName:e}){var t,a;const r=(0,X.YQ)(),s=(0,Xn.zy)(),i=(0,Xn.W6)(),o=(0,ye.mA)(s),[l]=(0,X.Nt)(),c=n.useMemo((()=>[Mo,Oo,Io].map((e=>({...e,sortable:!1})))),[]),{currentData:u,isFetching:m,error:p}=Di.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=no(n.useCallback((e=>{const{QueryText:t}=e;r((0,Ai.iZ)({input:t}));const a=(0,ye.mA)(s),n=(0,na.YL)({...a,[ae.Dt]:ae.Dg.query,[na.vh.queryTab]:ae.tQ.newQuery});i.push(n)}),[r,i,s])),y=Ci({entity:Es("queries"),postfix:Es("by-cpu-time",{executionPeriod:Es("executed-last-hour")}),onClick:()=>{r((0,Di.TX)({from:void 0,to:void 0}))},link:(0,na.YL)({...o,[na.vh.diagnosticsTab]:ae.iJ.topQueries})});return(0,d.jsx)(Ei,{columnsWidthLSKey:mo,data:v||[],columns:c,onRowClick:g,title:y,loading:h,error:(0,Nt.Cb)(p),rowClassName:()=>Ni("top-queries-row")})}function Qo(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 Uo=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:Qo(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 Bo=a(67884);function $o({path:e,location:t,...a}){const n=(0,ye.mA)(t),r=(0,ye.Ow)({...n,schema:e});return(0,d.jsx)(Bo.N,{view:"normal",...a,href:r})}var Ho=a(80420),Go=a(13342),Wo=a(16439),Vo=a(29819);const Jo=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"}'),Yo=(0,$e.g4)("ydb-top-shards-columns",{en:Jo}),Ko="topShardsColumnsWidth",Zo="TabletId",Xo="CPUCores",el="DataSize",tl="Path",al="NodeId",nl="PeakTime",rl="InFlightTxCount",sl="IntervalEnd",il={get TabletId(){return Yo("tablet-id")},get CPUCores(){return Yo("cpu-cores")},get DataSize(){return Yo("data-size")},get Path(){return Yo("path")},get NodeId(){return Yo("node-id")},get PeakTime(){return Yo("peak-time")},get InFlightTxCount(){return Yo("in-flight-tx-count")},get IntervalEnd(){return Yo("interval-end")}},ol={TabletId:void 0,CPUCores:"CPUCores",DataSize:"DataSize",Path:void 0,NodeId:void 0,PeakTime:void 0,InFlightTxCount:"InFlightTxCount",IntervalEnd:void 0};function ll(e){return ol[e]}const cl=(e,t)=>({name:tl,header:il.Path,render:({row:a})=>(0,d.jsx)($o,{path:e+a.Path,location:t,children:a.Path}),sortable:!1,width:300}),dl={name:Xo,header:il.CPUCores,render:({row:e})=>{return t=e.CPUCores||0,`${(0,he.CR)(100*Number(t),2)}%`;var t},align:Rt.Ay.RIGHT},ul={name:el,header:il.DataSize,render:({row:e})=>(0,he.ZV)(e.DataSize),align:Rt.Ay.RIGHT},ml={name:Zo,header:il.TabletId,render:({row:e})=>e.TabletId?(0,d.jsx)(Ho.$,{tabletId:e.TabletId}):"\u2013",sortable:!1,width:220},pl={name:al,header:il.NodeId,render:({row:e})=>e.NodeId?(0,d.jsx)(Aa.E,{to:(0,Vo.vI)(e.NodeId),children:e.NodeId}):"\u2013",align:Rt.Ay.RIGHT},hl={name:Xo,header:il.CPUCores,render:({row:e})=>(0,d.jsx)(Go.U,{value:(0,he.CR)(100*Number(e.CPUCores),2),theme:(0,Wo.f)(100*Number(e.CPUCores))}),align:Rt.Ay.RIGHT,sortable:!1,width:140,resizeMinWidth:140},vl={name:rl,header:il.InFlightTxCount,render:({row:e})=>(0,he.ZV)(e.InFlightTxCount),align:Rt.Ay.RIGHT},gl=({tenantName:e,path:t})=>{var a,n;const r=(0,Xn.zy)(),s=(0,ye.mA)(r),[i]=(0,X.Nt)(),{currentData:o,isFetching:l,error:c}=Uo.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)=>[ml,cl(e,t),hl])(e,r),h=Ci({entity:Es("shards"),postfix:Es("by-cpu-usage"),link:(0,na.YL)({...s,[na.vh.diagnosticsTab]:ae.iJ.topShards})});return(0,d.jsx)(Ei,{columnsWidthLSKey:Ko,data:m||[],columns:p,title:h,loading:u,error:(0,Nt.Cb)(c)})},yl=[{title:Es("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 xl({tenantName:e,additionalNodesProps:t}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ts,{database:e,charts:yl}),(0,d.jsx)(Ii,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(Pi,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(gl,{tenantName:e,path:e}),(0,d.jsx)(qo,{tenantName:e})]})}var bl=a(73473);function fl({tenantName:e,additionalNodesProps:t}){const a=(0,X.e4)(),[n]=(0,X.Nt)(),[r,s]=function(e){const t=[(0,fi._E)(),(0,fi.Nh)(e),(0,fi.jl)(),(0,fi.fR)(),(0,fi.iX)(),(0,fi.oz)(),(0,fi.qp)(e)].map((e=>({...e,sortable:!1}))),a=t.map((e=>e.name));return[t,(0,Ti.R)(a,ji.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=Si.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=Ci({entity:Es("nodes"),postfix:Es("by-memory"),link:(0,na.YL)({...a,[na.vh.diagnosticsTab]:ae.iJ.nodes})});return(0,d.jsx)(Ei,{columnsWidthLSKey:ji.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:Es("top-nodes.empty-data")})}const jl=[{title:Es("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:Es("charts.memory-usage")}],options:{dataType:"size"}}];function Sl({tenantName:e,memoryStats:t,memoryUsed:a,memoryLimit:r}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ts,{database:e,charts:jl}),(0,d.jsx)("div",{className:Ni("title"),children:"Memory details"}),(0,d.jsx)("div",{className:Ni("memory-info"),children:t?(0,d.jsx)(bl.S,{formatValues:he.vX,stats:t}):(0,d.jsx)(di.O,{value:a,capacity:r,formatValues:he.vX,colorizeProgress:!0})}),(0,d.jsx)(fl,{tenantName:e})]})}var Tl=a(18863),Nl=a(10174),El=a(20831),wl=a(10360);function Cl({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,El.k)(),t=e.map((e=>e.name));return[e,(0,Ti.R)(t,wl.YX)]}(),{currentData:o,isFetching:l,error:c}=Nl.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=Ci({entity:Es("groups"),postfix:Es("by-usage"),link:(0,na.YL)({...t,[na.vh.diagnosticsTab]:ae.iJ.storage})});return(0,d.jsx)(Ei,{columnsWidthLSKey:wl.qK,data:m,columns:s,title:p,loading:u||!a,error:c})}const Pl=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`,Il=H.F.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async({path:e},{signal:t})=>{try{const a=await window.api.viewer.sendQuery({query:Pl(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 Dl({path:e}){var t,a;const n=(0,Xn.zy)(),[r]=(0,X.Nt)(),{currentData:s,error:i,isFetching:o}=Il.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,sortable:!1,render:({row:e})=>(e=>{const t=(0,ha.dd)(null!==c&&void 0!==c&&c.length?Number(c[0].Size):0,0);return(0,ha.z3)({value:e,size:t,precision:1})})(Number(e.Size)),align:Rt.Ay.RIGHT},{name:"Path",width:700,sortable:!1,render:({row:e})=>e.Path?(0,d.jsx)(ut.s,{content:e.Path,children:(0,d.jsx)($o,{path:String(e.Path),location:n,children:e.Path})}):null}],m=Ci({entity:Es("tables"),postfix:Es("by-size")});return(0,d.jsx)(Ei,{columnsWidthLSKey:"topTablesTableColumnsWidth",data:c||[],columns:u,title:m,loading:l,error:(0,Nt.Cb)(i)})}const Al=[{title:Es("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:Es("charts.storage-usage")}],options:{dataType:"size"}}];function _l({tenantName:e,metrics:t}){const{blobStorageUsed:a,tabletStorageUsed:r,blobStorageLimit:s,tabletStorageLimit:i}=t,o=[{label:(0,d.jsx)(Ra,{text:Es("storage.tablet-storage-title"),popoverContent:Es("storage.tablet-storage-description")}),value:(0,d.jsx)(di.O,{value:r,capacity:i,formatValues:he.j9,colorizeProgress:!0})},{label:(0,d.jsx)(Ra,{text:Es("storage.db-storage-title"),popoverContent:Es("storage.db-storage-description")}),value:(0,d.jsx)(di.O,{value:a,capacity:s,formatValues:he.j9,colorizeProgress:!0})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ts,{database:e,charts:Al}),(0,d.jsx)(Tl.z,{className:Ni("storage-info"),title:"Storage details",info:o}),(0,d.jsx)(Dl,{path:e}),(0,d.jsx)(Cl,{tenant:e})]})}function Rl({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),j={...l,Metrics:{...null===l||void 0===l?void 0:l.Metrics,Storage:String(f)}},{blobStorage:S,tabletStorage:T,blobStorageLimit:N,tabletStorageLimit:E,poolsStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D}=(0,as.uI)(j),A={blobStorageUsed:S,blobStorageLimit:N,tabletStorageUsed:T,tabletStorageLimit:E};if(u)return(0,d.jsx)("div",{className:Ni("loader"),children:(0,d.jsx)(Zr.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:Ni(),children:[(0,d.jsxs)("div",{className:Ni("info"),children:[(0,d.jsx)("div",{className:Ni("top-label"),children:v}),(0,d.jsxs)("div",{className:Ni("top"),children:[(0,d.jsx)("div",{className:Ni("tenant-name-wrapper"),children:(0,d.jsx)(Hn.c,{status:h,name:m||Z.oK,withLeftTrim:!0,hasClipboardButton:Boolean(l),clipboardButtonAlwaysVisible:!0})}),_&&(0,d.jsx)(ts,{href:_})]}),(0,d.jsx)(gi,{poolsCpuStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D,tenantName:e})]}),(()=>{switch(i){case ae.pA.cpu:return(0,d.jsx)(xl,{tenantName:e,additionalNodesProps:a});case ae.pA.storage:return(0,d.jsx)(_l,{tenantName:e,metrics:A});case ae.pA.memory:return(0,d.jsx)(Sl,{tenantName:e,memoryUsed:j.MemoryUsed,memoryLimit:j.MemoryLimit,memoryStats:j.MemoryStats});case ae.pA.healthcheck:return(0,d.jsx)(Zs,{tenantName:e});default:return(0,d.jsx)(Cs,{database:e})}})()]})}const kl=(0,c.cn)("kv-detailed-overview");const Ol=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:s}=e,i=a===n;return(0,d.jsx)("div",{className:kl(),children:i?(0,d.jsx)("div",{className:kl("section"),children:(0,d.jsx)(Rl,{tenantName:a,additionalTenantProps:r,additionalNodesProps:s})}):(0,d.jsx)(Yr,{type:t,path:n,database:a})})},Ml={id:ae.iJ.overview,title:"Info"},Ll={id:ae.iJ.schema,title:"Schema"},zl={id:ae.iJ.topQueries,title:"Queries"},Fl={id:ae.iJ.topShards,title:"Top shards"},ql={id:ae.iJ.nodes,title:"Nodes"},Ql={id:ae.iJ.tablets,title:"Tablets"},Ul={id:ae.iJ.storage,title:"Storage"},Bl={id:ae.iJ.network,title:"Network"},$l={id:ae.iJ.describe,title:"Describe"},Hl={id:ae.iJ.hotKeys,title:"Hot keys"},Gl={id:ae.iJ.graph,title:"Graph"},Wl={id:ae.iJ.consumers,title:"Consumers"},Vl={id:ae.iJ.partitions,title:"Partitions"},Jl=[Ml,Ql,$l],Yl=[Ml,zl,Fl,ql,Ql,Ul,Bl,$l,{id:ae.iJ.configs,title:"Configs"},{id:ae.iJ.operations,title:"Operations"}],Kl=[Ml,Ll,Fl,ql,Gl,Ql,Hl,$l],Zl=[Ml,Ll,Fl,ql,Ql,$l],Xl=[Ml,Fl,ql,$l],ec=[Ml,Wl,Vl,ql,Ql,$l],tc=[Ml,Wl,Vl,ql,Ql,$l],ac=[Ml,$l],nc=[Ml,Ll,$l],rc=[Ml,Ll,$l],sc={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:Yl,[x.EPathTypeExtSubDomain]:Yl,[x.EPathTypeColumnStore]:Yl,[x.EPathTypeTable]:Kl,[x.EPathTypeColumnTable]:Zl,[x.EPathTypeDir]:Xl,[x.EPathTypeTableIndex]:Xl,[x.EPathTypeCdcStream]:ec,[x.EPathTypePersQueueGroup]:tc,[x.EPathTypeExternalDataSource]:ac,[x.EPathTypeExternalTable]:nc,[x.EPathTypeView]:rc,[x.EPathTypeReplication]:Jl};var ic=a(81240),oc=a(80604);const lc=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"}),cc=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."}'),dc=(0,$e.g4)("ydb-hot-keys",{en:cc});var uc;function mc(){return mc=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},mc.apply(null,arguments)}const pc=function(e){return n.createElement("svg",mc({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),uc||(uc=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"})))},hc=(0,c.cn)("ydb-hot-keys"),vc="accessSample";function gc({path:e,database:t}){var a,r;const{currentData:s,isFetching:i,error:o}=lc.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:hc("primary-key-column"),children:[(0,d.jsx)(ct.I,{data:pc,width:12,height:7}),e]}),render:({row:e})=>e.keyValues[t],align:Rt.Ay.RIGHT,sortable:!1}))),{name:vc,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)(yc,{}),l||m?(0,d.jsx)("div",{children:dc("hot-keys-collecting")}):o?(0,d.jsx)(de.o,{error:o}):s?(0,d.jsx)(Fe.l,{wrapperClassName:hc("table"),columns:h,data:s,settings:Z.N3,initialSortOrder:{columnId:vc,order:Rt.Ay.DESCENDING}}):(0,d.jsx)("div",{children:dc("no-data")})]})}function yc(){const[e,t]=(0,X.iK)(Z.Gj);return e?null:(0,d.jsxs)(oc.Z,{theme:"info",view:"filled",type:"container",className:hc("help-card"),children:[dc("help"),(0,d.jsx)(hn.$,{className:hc("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(ct.I,{data:ic.A,size:18})})]})}var xc=a(78524),bc=a(9252);const fc=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 jc=a(88610);const Sc=(0,c.cn)("node-network");function Tc(){}function Nc({nodeId:e,connected:t,capacity:a,rack:r,status:s,onClick:i=Tc,onMouseEnter:o=Tc,onMouseLeave:l=Tc,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?Us.m.Green:a>=70?Us.m.Yellow:a>=1?Us.m.Red:Us.m.Grey}(t,a);return(0,d.jsx)("div",{ref:m,className:Sc({[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 Ec=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var wc,Cc,Pc,Ic,Dc,Ac,_c,Rc,kc,Oc,Mc,Lc,zc,Fc,qc;function Qc(){return Qc=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},Qc.apply(null,arguments)}const Uc=function(e){return n.createElement("svg",Qc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),wc||(wc=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"})),Cc||(Cc=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"})),Pc||(Pc=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"})),Ic||(Ic=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"})),Dc||(Dc=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Ac||(Ac=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"})),_c||(_c=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"})),Rc||(Rc=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"})),kc||(kc=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"})),Oc||(Oc=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"})),Mc||(Mc=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"})),Lc||(Lc=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"})),zc||(zc=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"})),Fc||(Fc=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),qc||(qc=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"})))},Bc=(0,c.cn)("network");function $c({tenantName:e}){var t,a;const[r]=(0,X.Nt)(),s=(0,X.N4)(jc.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}=fc.useGetNetworkInfoQuery(e,{pollingInterval:r});if(v&&void 0===h)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(Zr.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=Gc(x,"NodeType"),f=o?Gc(null!==(a=o.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:Bc(),children:[g?(0,d.jsx)(de.o,{error:g}):null,x.length>0?(0,d.jsx)("div",{className:Bc("inner"),children:(0,d.jsxs)("div",{className:Bc("nodes-row"),children:[(0,d.jsxs)("div",{className:Bc("left"),children:[(0,d.jsx)("div",{className:Bc("controls-wrapper"),children:(0,d.jsxs)("div",{className:Bc("controls"),children:[(0,d.jsx)(bc.k,{value:s,onChange:e=>{i((0,jc.$u)(e))},className:Bc("problem-filter")}),(0,d.jsx)("div",{className:Bc("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{u(!c)},checked:c,children:"ID"})}),(0,d.jsx)("div",{className:Bc("checkbox-wrapper"),children:(0,d.jsx)(ce.S,{onUpdate:()=>{p(!m)},checked:m,children:"Racks"})})]})}),(0,d.jsx)(Hc,{nodes:b,showId:c,showRacks:m,clickedNode:o,onClickNode:l})]}),(0,d.jsx)("div",{className:Bc("right"),children:o?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:Bc("label"),children:["Connectivity of node"," ",(0,d.jsx)(re.N_,{className:Bc("link"),to:(0,Vo.vI)(o.NodeId),children:o.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:Bc("nodes-row"),children:(0,d.jsx)(Hc,{nodes:f,isRight:!0,showId:c,showRacks:m,clickedNode:o,onClickNode:l})})]}):(0,d.jsxs)("div",{className:Bc("placeholder"),children:[(0,d.jsx)("div",{className:Bc("placeholder-img"),children:(0,d.jsx)(ct.I,{data:Uc,width:221,height:204})}),(0,d.jsx)("div",{className:Bc("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function Hc({nodes:e,isRight:t,showId:a,showRacks:n,clickedNode:r,onClickNode:s}){const i=(0,X.N4)(jc.yV),o=(0,X.YQ)();let l=0;const c=Object.keys(e).map(((c,u)=>{const m=Gc(e[c],"Rack");return(0,d.jsxs)("div",{className:Bc("nodes-container",{right:t}),children:[(0,d.jsxs)("div",{className:Bc("nodes-title"),children:[c," nodes"]}),(0,d.jsx)("div",{className:Bc("nodes"),children:n?Object.keys(m).map(((e,n)=>(0,d.jsxs)("div",{className:Bc("rack-column"),children:[(0,d.jsx)("div",{className:Bc("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=Ec(e.Peers)),i===jc.s$.PROBLEMS&&c!==u||i===jc.s$.ALL||t?(l++,(0,d.jsx)(Nc,{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=Ec(m)),i===jc.s$.PROBLEMS&&c!==u||i===jc.s$.ALL||t?(l++,(0,d.jsx)(Nc,{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===jc.s$.PROBLEMS&&0===l?(0,d.jsx)(xc.v,{name:"thumbsUp",width:"200"}):c}function Gc(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}const Wc=["NodeId","Host","Connections","NetworkUtilization","SendThroughput","ReceiveThroughput","PingTime","ClockSkew"],Vc=["NodeId"],Jc=["Host","DC","Rack","Uptime","ConnectStatus","NetworkUtilization","PingTime","ClockSkew"];function Yc({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,fi._E)(),(0,fi.Nh)(r,{statusForIcon:"ConnectStatus"}),(0,fi.uk)(),(0,fi.OX)(),(0,fi.jl)(),(0,fi.fr)(),(0,fi.kv)(),(0,fi.SH)(),(0,fi.H)(),(0,fi.DH)(),(0,fi.ui)(),(0,fi.wN)(),(0,fi.pt)()].map((e=>({...e,sortable:(0,ji.sp)(e.name)})))),defaultColumnsIds:Wc,requiredColumnsIds:Vc,selectedColumnsKey:"networkNodesTableSelectedColumns",groupByParams:Jc}):(0,d.jsx)($c,{tenantName:e});var r})()})}var Kc=a(24600),Zc=a(47058),Xc=a(69775),ed=a(41775);const td=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"}'),ad=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"}'),nd=(0,$e.g4)("ydb-diagnostics-partitions",{ru:ad,en:td}),rd={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"},sd={[rd.PARTITION_ID]:"Partition ID",[rd.STORE_SIZE]:"Store size",[rd.WRITE_SPEED]:"Write speed",[rd.READ_SPEED]:"Read speed",[rd.WRITE_LAGS]:"Write lags, duration",[rd.READ_LAGS]:"Read lags, duration",[rd.UNCOMMITED_MESSAGES]:"Uncommited messages",[rd.UNREAD_MESSAGES]:"Unread messages",[rd.START_OFFSET]:"Start offset",[rd.END_OFFSET]:"End offset",[rd.COMMITED_OFFSET]:"Commited offset",[rd.READ_SESSION_ID]:"Read session ID",[rd.READER_NAME]:"Reader name",[rd.PARTITION_HOST]:"Partition host",[rd.CONNECTION_HOST]:"Connection host"},id="partitionWriteLag",od="partitionWriteIdleTime",ld={[id]:"write lag",[od]:"write idle time"},cd="consumerWriteLag",dd="consumerReadLag",ud="consumerReadIdleTime",md={[cd]:"write lag",[dd]:"read lag",[ud]:"read idle time"},pd=[rd.PARTITION_ID,rd.STORE_SIZE,rd.WRITE_SPEED,rd.WRITE_LAGS,rd.START_OFFSET,rd.END_OFFSET,rd.PARTITION_HOST],hd=Object.values(rd),vd=({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(pa()(p),"i"),t=new RegExp(pa()(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:nd("controls.consumerSelector.emptyOption")},...t]}),[e]),g=n.useMemo((()=>{const e=[];for(const t of c){const a=t===rd.PARTITION_ID,n={title:sd[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:wd("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(le.l,{className:wd("consumer-select"),label:nd("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)(ed.v,{onChange:e=>{h(e)},placeholder:nd("controls.partitionSearch"),className:wd("search",{partition:!0}),value:p}),(0,d.jsx)(ed.v,{onChange:e=>{m(e)},placeholder:nd("controls.generalSearch"),className:wd("search",{general:!0}),value:u}),(0,d.jsx)(Xc.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")]})},gd=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),yd=({title:e})=>(0,d.jsx)("div",{className:gd("multiline"),children:e}),xd=()=>(0,d.jsx)("div",{className:gd("read-session"),children:sd[rd.READ_SESSION_ID]}),bd=()=>(0,d.jsx)(Ra,{className:gd("lags"),text:sd[rd.WRITE_LAGS],popoverContent:(0,d.jsx)(Wa,{text:nd("lagsPopover.writeLags"),type:"write"})}),fd=()=>(0,d.jsx)(Ra,{className:gd("lags"),text:sd[rd.READ_LAGS],popoverContent:(0,d.jsx)(Wa,{text:nd("lagsPopover.readLags"),type:"read"})}),jd=()=>(0,d.jsx)(Ra,{className:gd("messages"),text:sd[rd.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:gd("messages-popover-content"),children:nd("headers.unread")})}),Sd=()=>(0,d.jsx)(Ra,{className:gd("messages"),text:sd[rd.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:gd("messages-popover-content"),children:nd("headers.uncommited")})}),Td=(0,c.cn)("ydb-diagnostics-partitions-columns"),Nd=[{name:rd.PARTITION_ID,header:(0,d.jsx)(yd,{title:sd[rd.PARTITION_ID]}),sortAccessor:e=>(0,$r.kf)(e.partitionId)&&Number(e.partitionId),align:Rt.Ay.LEFT,render:({row:e})=>e.partitionId},{name:rd.STORE_SIZE,header:(0,d.jsx)(yd,{title:sd[rd.STORE_SIZE]}),align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.z3)(e.storeSize)},{name:rd.WRITE_SPEED,header:sd[rd.WRITE_SPEED],align:Rt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:({row:e})=>(0,d.jsx)(wa,{data:e.writeSpeed})},{name:rd.READ_SPEED,header:sd[rd.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)(wa,{data:e.readSpeed})},{name:rd.WRITE_LAGS,header:(0,d.jsx)(bd,{}),className:Td("lags-header"),sub:[{name:id,header:ld[id],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteLag)},{name:od,header:ld[od],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.partitionWriteIdleTime)}]},{name:rd.READ_LAGS,header:(0,d.jsx)(fd,{}),className:Td("lags-header"),sub:[{name:cd,header:md[cd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerWriteLag)},{name:dd,header:md[dd],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadLag)},{name:ud,header:md[ud],align:Rt.Ay.RIGHT,render:({row:e})=>(0,he.lr)(e.consumerReadIdleTime)}]},{name:rd.UNCOMMITED_MESSAGES,header:(0,d.jsx)(Sd,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.uncommitedMessages},{name:rd.UNREAD_MESSAGES,header:(0,d.jsx)(jd,{}),align:Rt.Ay.RIGHT,render:({row:e})=>e.unreadMessages},{name:rd.START_OFFSET,header:(0,d.jsx)(yd,{title:sd[rd.START_OFFSET]}),sortAccessor:e=>(0,$r.kf)(e.startOffset)&&Number(e.startOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.startOffset},{name:rd.END_OFFSET,header:(0,d.jsx)(yd,{title:sd[rd.END_OFFSET]}),sortAccessor:e=>(0,$r.kf)(e.endOffset)&&Number(e.endOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.endOffset},{name:rd.COMMITED_OFFSET,header:(0,d.jsx)(yd,{title:sd[rd.COMMITED_OFFSET]}),sortAccessor:e=>(0,$r.kf)(e.commitedOffset)&&Number(e.commitedOffset),align:Rt.Ay.RIGHT,render:({row:e})=>e.commitedOffset},{name:rd.READ_SESSION_ID,header:(0,d.jsx)(xd,{}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readSessionId?(0,d.jsx)(Hn.c,{name:e.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:rd.READER_NAME,header:(0,d.jsx)(yd,{title:sd[rd.READER_NAME]}),align:Rt.Ay.LEFT,width:150,render:({row:e})=>e.readerName?(0,d.jsx)(Hn.c,{name:e.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:rd.PARTITION_HOST,header:(0,d.jsx)(yd,{title:sd[rd.PARTITION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.partitionNodeId&&e.partitionHost?(0,d.jsx)(Hn.c,{name:e.partitionHost,path:(0,Vo.vI)(e.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:rd.CONNECTION_HOST,header:(0,d.jsx)(yd,{title:sd[rd.CONNECTION_HOST]}),align:Rt.Ay.LEFT,width:200,render:({row:e})=>e.connectionNodeId&&e.connectionHost?(0,d.jsx)(Hn.c,{name:e.connectionHost,path:(0,Vo.vI)(e.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}],Ed=Nd.filter((e=>pd.includes(e.name))),wd=(0,c.cn)("ydb-diagnostics-partitions"),Cd=({path:e,database:t})=>{const a=(0,X.YQ)(),[r,s]=n.useState([]),i=(0,X.N4)((a=>ba(a,e,t))),[o]=(0,X.Nt)(),{selectedConsumer:l}=(0,X.N4)((e=>e.partitions)),{currentData:c,isFetching:u,error:m}=va.useGetTopicQuery({path:e,database:t}),p=u&&void 0===c,{currentData:h,isFetching:v,error:g}=Kc.m.useGetNodesListQuery(void 0),x=v&&void 0===h,b=(0,X.N4)(Kc.K),[f,j]=(0,X.iK)(Z.bs),[S,T]=(e=>{const[t,a]=n.useState([]),[r,s]=n.useState([]);return n.useEffect((()=>{e?(a(Nd),s(hd)):(a(Ed),s(pd))}),[e]),[t,r]})(l),N=p?y.hT:{path:e,database:t,consumerName:l},{currentData:E,isFetching:w,error:C}=Zc.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,Zc.WD)(void 0))}),[a,p,l,i]);const A=n.useMemo((()=>S.filter((e=>!f.includes(e.name)))),[S,f]),_=e=>{j(e)},R=e=>{a((0,Zc.WD)(e))},k=p||x||P,O=g||m||C;return(0,d.jsxs)("div",{className:wd(),children:[(0,d.jsx)("div",{className:wd("controls"),children:(0,d.jsx)(vd,{consumers:i,selectedConsumer:l,onSelectedConsumerChange:R,selectDisabled:Boolean(O)||k,partitions:D,onSearchChange:s,hiddenColumns:f,onHiddenColumnsChange:_,initialColumnsIds:T})}),O?(0,d.jsx)(de.o,{error:O}):null,(0,d.jsx)("div",{className:wd("table-wrapper"),children:(0,d.jsx)("div",{className:wd("table-content"),children:E?k?(0,d.jsx)(Tt.Q,{className:wd("loader")}):(0,d.jsx)(Fe.l,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:wd("table"),data:r,columns:A,settings:Z.N3,emptyDataMessage:nd("table.emptyDataMessage")}):null})})]})};var Pd=a(44433),Id=a(23812);const Dd=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),Ad=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),_d=(0,$e.g4)("ydb-date-range",{ru:Ad,en:Dd});function Rd(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 kd=(0,c.cn)("date-range"),Od={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},Md=({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:kd(null,a),children:(0,d.jsx)(Id.k,{withPresets:!0,className:kd("range-input",{[Rd(i)]:!0}),timeZone:o,value:i||Od,allowNullableValues:!0,size:"m",format:_d("date-time-format"),onUpdate:s,placeholder:`${_d("date-time-format")} - ${_d("date-time-format")}`,withApplyButton:!0})})},Ld=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running"}'),zd=(0,$e.g4)("ydb-diagnostics-top-queries",{en:Ld}),Fd={...lo,disableSortReset:!0};function qd(e){const[t,a]=(0,X.GY)({initialSortColumn:e,initialSortOrder:-1,multiple:!0}),r=n.useMemo((()=>(0,X.JN)(t,wo)),[t]);return{tableSort:t,handleTableSort:a,backendSort:r}}const Qd=({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}=qd(So),{currentData:u,isFetching:m,error:p}=Di.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((()=>[ko,zo,Do,Fo].map((e=>({...e,sortable:Co(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[p?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(p)}):null,(0,d.jsx)(qe.L.Table,{loading:h,children:(0,d.jsx)(Fe.l,{emptyDataMessage:zd("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:g,data:v,settings:Fd,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:o,onSort:l})})]})},Ud=({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}=qd(po),{currentData:m,isFetching:p,error:h}=Di.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((()=>[Mo,Io,Do,Ao,Lo,_o,Ro,ko].map((e=>({...e,sortable:Co(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[h?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(h)}):null,(0,d.jsx)(qe.L.Table,{loading:v,children:(0,d.jsx)(Fe.l,{emptyDataMessage:zd("no-data"),columnsWidthLSKey:mo,columns:y,data:g||[],settings:Fd,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:l,onSort:c})})]})},Bd=(0,c.cn)("kv-top-queries"),$d={top:"top",running:"running"},Hd=[{value:$d.top,get content(){return zd("mode_top")}},{value:$d.running,get content(){return zd("mode_running")}}],Gd=xt.z.nativeEnum($d).catch($d.top),Wd=({tenantName:e})=>{const t=(0,X.YQ)(),a=(0,Xn.zy)(),r=(0,Xn.W6)(),[i=$d.top,o]=(0,s.useQueryParam)("queryMode",s.StringParam),l=Gd.parse(i),c=l===$d.top,u=(0,X.N4)((e=>e.executeTopQueries)),m=no(n.useCallback((e=>{t((0,Ai.iZ)({input:e}));const n=(0,ye.mA)(a),s=(0,na.YL)({...n,[ae.Dt]:ae.Dg.query,[na.vh.queryTab]:ae.tQ.newQuery});r.push(s)}),[t,r,a])),p=c?Ud:Qd;return(0,d.jsxs)(qe.L,{children:[(0,d.jsxs)(qe.L.Controls,{children:[(0,d.jsx)(Pd.a,{options:Hd,value:l,onUpdate:o}),(0,d.jsx)(Be.v,{value:u.text,onChange:e=>{t((0,Di.TX)({text:e}))},placeholder:zd("filter.text.placeholder"),className:Bd("search")}),c?(0,d.jsx)(Md,{from:u.from,to:u.to,onChange:e=>{t((0,Di.TX)(e))}}):null]}),(0,d.jsx)(p,{database:e,onRowClick:m,rowClassName:Bd("row")})]})};var Vd=a(46496),Jd=a(87747);const Yd=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%"}'),Kd=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%"}'),Zd=(0,$e.g4)("ydb-diagnostics-top-shards",{ru:Kd,en:Yd}),Xd=({value:e,onChange:t})=>{const a=e.mode===Jd.h.Immediate?void 0:e.from,r=e.mode===Jd.h.Immediate?void 0:e.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(Pd.a,{value:e.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))(Jd.h,e)){const t=Object.values(Jd.h).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}t({mode:e})},children:[(0,d.jsx)(Pd.a.Option,{value:Jd.h.Immediate,children:Zd("filters.mode.immediate")}),(0,d.jsx)(Pd.a.Option,{value:Jd.h.History,children:Zd("filters.mode.history")})]}),(0,d.jsx)(Md,{from:a,to:r,onChange:e=>{t({mode:Jd.h.History,...e})}})]})};const eu=(0,c.cn)("top-shards"),tu={...Z.N3,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:Rt.Ay.DESCENDING};function au(e){return e?(0,he.r6)(new Date(e).getTime()):"\u2013"}function nu(e){return e.to="now",e.from="now-1h",e}const ru=({tenantName:e,path:t,type:a})=>{var r,s;const i=(0,X.YQ)(),o=(0,Xn.zy)(),[l]=(0,X.Nt)(),c=(0,X.N4)((e=>e.shardsWorkload)),[u,m]=n.useState((()=>{const e={...c};return e.mode||(e.mode=Jd.h.Immediate),e.from||e.to||nu(e),e})),{tableSort:p,handleTableSort:h,backendSort:v}=function(){const[e,t]=(0,X.GY)({initialSortColumn:Xo,fixedOrderType:-1,multiple:!0}),a=n.useMemo((()=>(0,X.JN)(e,ll)),[e]);return{tableSort:e,handleTableSort:t,backendSort:a}}(),{currentData:g,isFetching:y,error:x}=Vd.Xx.useSendShardQueryQuery({database:e,path:t,sortOrder:v,filters:u},{pollingInterval:l}),b=y&&void 0===g,f=(null===g||void 0===g||null===(r=g.resultSets)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.result)||[],j=e=>{const t={...e};if(!c.from&&!c.to&&!e.from&&!e.to)switch(e.mode){case Jd.h.Immediate:t.from=t.to=void 0;break;case Jd.h.History:nu(t)}i((0,Vd.rF)(e)),m((e=>({...e,...t})))},S=n.useMemo((()=>{const t=((e,t)=>[cl(e,t),dl,ul,ml,pl,vl])(e,o),a=t.map((e=>{return{...e,sortable:(t=e.name,Boolean(ll(t)))};var t}));return u.mode===Jd.h.History&&(a.splice(5,0,{name:nl,render:({row:e})=>au(e.PeakTime),sortable:!1}),a.push({name:sl,render:({row:e})=>au(e.IntervalEnd)})),a}),[u.mode,o,e]);return(0,d.jsxs)(qe.L,{children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)(Xd,{value:u,onChange:j})}),u.mode===Jd.h.History&&(0,d.jsx)("div",{className:eu("hint"),children:Zd("description")}),x?(0,d.jsx)(de.o,{error:(0,Nt.Cb)(x)}):null,(0,d.jsx)(qe.L.Table,{loading:b,children:x&&!f?null:!f||k(a)?Zd("no-data"):(0,d.jsx)(Fe.l,{columnsWidthLSKey:Ko,columns:S,data:f,settings:tu,onSort:h,sortOrder:p})})]})},su=(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,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?Yl:Yl.filter((e=>e.id!==ae.iJ.configs)))({hasFeatureFlags:u}):(p=e.type)&&sc[p]||Xl;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:su(),children:[h?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:h.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:su("header-wrapper"),children:(0,d.jsxs)("div",{className:su("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,na.YL)({...o,[na.vh.diagnosticsTab]:e});return(0,d.jsx)(re.N_,{to:a,className:su("tab"),children:t},e)},allowNotSelected:!0}),(0,d.jsx)(se.E,{})]})})})(),(0,d.jsx)("div",{className:su("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)(Ol,{type:n,tenantName:l,path:r,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case ae.iJ.schema:return(0,d.jsx)(aa,{path:r,tenantName:l,type:n,extended:!0});case ae.iJ.topQueries:return(0,d.jsx)(Wd,{tenantName:l});case ae.iJ.topShards:return(0,d.jsx)(ru,{tenantName:l,path:r,type:n});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)(St.C,{path:r,database:l});case ae.iJ.storage:return(0,d.jsx)(jt.z,{database:l,parentRef:t});case ae.iJ.network:return(0,d.jsx)(Yc,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ae.iJ.describe:return(0,d.jsx)(Nn,{path:r,database:l,type:n});case ae.iJ.hotKeys:return(0,d.jsx)(gc,{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)(un,{path:r,database:l,type:n});case ae.iJ.partitions:return(0,d.jsx)(Cd,{path:r,database:l});case ae.iJ.configs:return(0,d.jsx)(ua,{database:l});case ae.iJ.operations:return(0,d.jsx)(ft,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},ou=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","query-duration.description":"Duration of server-side query execution","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","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: ","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),lu=(0,$e.g4)("ydb-query-editor",{en:ou}),cu=(0,c.cn)("ydb-queries-history");const du=function({changeUserInput:e}){const t=(0,X.YQ)(),a=(0,X.N4)(Ai.py),n=(0,X.N4)(Ai.jY),r=[...a].reverse(),s=no((a=>{e({input:a.queryText}),t((0,oe.sH)(ae.tQ.newQuery))})),i=[{name:"queryText",header:lu("history.queryText"),render:({row:e})=>(0,d.jsx)("div",{className:cu("query"),children:(0,d.jsx)(so,{value:e.queryText,maxQueryHeight:6})}),sortable:!1,width:600},{name:"EndTime",header:lu("history.endTime"),render:({row:e})=>e.endTime?(0,he.r6)(e.endTime.toString()):"-",align:"right",width:200,sortable:!1},{name:"Duration",header:lu("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)(qe.L,{className:cu(),children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)(Be.v,{value:n,onChange:e=>{t((0,Ai.Ni)(e))},placeholder:lu("filter.text.placeholder"),className:cu("search")})}),(0,d.jsx)(qe.L.Table,{children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"queriesHistoryTableColumnsWidth",columns:i,data:r,settings:lo,emptyDataMessage:lu(n?"history.empty-search":"history.empty"),onRowClick:e=>s(e),rowClassName:()=>cu("table-row")})})]})};var uu=a(13847),mu=a(72093);function pu(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 hu=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"}'),vu=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"}'),gu=(0,$e.g4)("ydb-query-settings-dialog",{en:hu,ru:vu}),yu=[{value:Nt.Wg.implicit,content:Nt._d[Nt.Wg.implicit],text:lu("transaction-mode-description.implicit"),isDefault:!0},{value:Nt.Wg.serializable,content:Nt._d[Nt.Wg.serializable],text:lu("transaction-mode-description.serializable")},{value:Nt.Wg.onlinero,content:Nt._d[Nt.Wg.onlinero],text:lu("transaction-mode-description.onlinero")},{value:Nt.Wg.stalero,content:Nt._d[Nt.Wg.stalero],text:lu("transaction-mode-description.stalero")},{value:Nt.Wg.snapshot,content:Nt._d[Nt.Wg.snapshot],text:lu("transaction-mode-description.snapshot")}],xu=[{value:Nt.ei.query,content:Nt.om[Nt.ei.query],text:lu("method-description.query"),isDefault:!0},{value:Nt.ei.script,content:Nt.om[Nt.ei.script],text:lu("method-description.script")},{value:Nt.ei.scan,content:Nt.om[Nt.ei.scan],text:lu("method-description.scan")},{value:Nt.ei.data,content:Nt.om[Nt.ei.data],text:lu("method-description.data")},{value:Nt.ei.pg,content:Nt.om[Nt.ei.pg],text:lu("method-description.pg")}],bu=[{value:Nt.pE.none,content:Nt.Pn[Nt.pE.none],text:lu("statistics-mode-description.none"),isDefault:!0},{value:Nt.pE.basic,content:Nt.Pn[Nt.pE.basic],text:lu("statistics-mode-description.basic")},{value:Nt.pE.full,content:Nt.Pn[Nt.pE.full],text:lu("statistics-mode-description.full")},{value:Nt.pE.profile,content:Nt.Pn[Nt.pE.profile],text:lu("statistics-mode-description.profile")}],fu=[{value:Nt.PB.off,content:Nt.PX[Nt.PB.off],text:lu("tracing-level-description.off"),isDefault:!0},{value:Nt.PB.toplevel,content:Nt.PX[Nt.PB.toplevel],text:lu("tracing-level-description.toplevel")},{value:Nt.PB.basic,content:Nt.PX[Nt.PB.basic],text:lu("tracing-level-description.basic")},{value:Nt.PB.detailed,content:Nt.PX[Nt.PB.detailed],text:lu("tracing-level-description.detailed")},{value:Nt.PB.diagnostic,content:Nt.PX[Nt.PB.diagnostic],text:lu("tracing-level-description.diagnostic")},{value:Nt.PB.trace,content:Nt.PX[Nt.PB.trace],text:lu("tracing-level-description.trace")}],ju={transactionMode:{title:gu("form.transaction-mode"),options:yu},queryMode:{title:gu("form.query-mode"),options:xu},statisticsMode:{title:gu("form.statistics-mode"),options:bu},tracingLevel:{title:gu("form.tracing-level"),options:fu},timeout:{title:gu("form.timeout")},limitRows:{title:gu("form.limit-rows")}};function Su({currentSettings:e,defaultSettings:t}){const a=pu(e,t),n={};return a.forEach((t=>{const a=ju[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 Tu=a(80967);const Nu=()=>{const[e,t]=(0,Tu.i)(Z.fr);let a;try{a=Nt.id.parse(e)}catch{a=void 0}return[a,t]};var Eu=a(95312);const wu=()=>{const[e,t]=(0,Tu.i)(Z.YQ),[a]=Nu(),[n]=(0,Eu.X)(),r=a?pu(a,Nt.jU):[],s=n?pu(n,Nt.jU):[],i=r.length>0,o=a?Su({currentSettings:a,defaultSettings:Nt.jU}):{},l=n?Su({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 Cu=a(53472);let Pu=function(e){return e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear",e}({});const Iu=e=>{localStorage.setItem(e,"true")},Du=e=>{localStorage.removeItem(e)};function Au(e){return function(t,a){switch(a){case Pu.triggerCollapse:return Iu(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case Pu.triggerExpand:return Du(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case Pu.clear:return Du(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const _u=(0,c.cn)("kv-pane-visibility-button");function Ru({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)(hn.$,{view:"flat-secondary",onClick:e,className:_u({hidden:a,type:"collapse"},s),children:(0,d.jsx)(ct.I,{data:Cu.A,className:_u({[r]:!0})})})}),(0,d.jsx)(lt.m,{title:"Expand",children:(0,d.jsx)(hn.$,{view:"flat-secondary",onClick:t,className:_u({hidden:!a,type:"expand"},s),children:(0,d.jsx)(ct.I,{data:Cu.A,className:_u({[r]:!0},"rotate")})})})]})}var ku=a(31819),Ou=a(72976);const Mu=function({disabled:e}){const t=(0,X.YQ)();return(0,d.jsx)(hn.$,{onClick:()=>{t((0,Ou.Jf)())},view:"flat-secondary",disabled:e,title:"Fullscreen",children:(0,d.jsx)(ct.I,{data:ku.A})})};var Lu,zu=a(98392);function Fu(){return Fu=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},Fu.apply(null,arguments)}const qu=function(e){return n.createElement("svg",Fu({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Lu||(Lu=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 Qu;const Uu=(0,c.cn)("ydb-fullscreen"),Bu=null!==(Qu=document.getElementById("fullscreen-root"))&&void 0!==Qu?Qu:void 0;const $u=function({children:e,className:t}){const a=(0,X.N4)((e=>e.fullscreen)),r=(0,X.YQ)(),s=n.useCallback((()=>{r((0,Ou.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===Bu||void 0===Bu||Bu.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===Bu||void 0===Bu||Bu.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)(zu.Z,{container:i,children:(0,d.jsxs)("div",{className:Uu({fullscreen:a},t),children:[(0,d.jsx)(hn.$,{onClick:s,view:"raised",className:Uu("close-button"),children:(0,d.jsx)(ct.I,{data:qu})}),(0,d.jsx)("div",{className:Uu("content"),children:e})]})})}):null},Hu=n.memo((function(e){const{className:t,value:a}=e,n=(0,X.YQ)();return(0,d.jsx)("span",{className:Yu("cell",t),onClick:e=>n((0,pe.DK)(e.target,a,"cell")),children:a})})),Gu=JSON.parse('{"empty":"Table is empty"}'),Wu=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),Vu=(0,$e.g4)("ydb-query-result-table",{ru:Wu,en:Gu}),Ju={...Z.N3,stripedRows:!0,sortable:!1,displayIndices:!0},Yu=(0,c.cn)("ydb-query-result-table"),Ku=(e,t)=>t,Zu=(e,t)=>t+1,Xu=e=>{const{columns:t,data:a,...r}=e,s=n.useMemo((()=>(0,Nt.vi)(a)),[a]),i=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)(Hu,{value:String(t[e])})}}))})(t,s):(e=>{if(!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,$r.kf)(e[0][a])?Rt.Ay.RIGHT:Rt.Ay.LEFT,render:({row:e})=>(0,d.jsx)(Hu,{value:String(e[a])})})))})(s)),[s,t]);return Array.isArray(a)?i.length?(0,d.jsx)(Fe.l,{data:s,columns:i,settings:Ju,rowKey:Ku,visibleRowIndex:Zu,...r}):(0,d.jsx)("div",{className:Yu("message"),children:Vu("empty")}):null},em=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:["All","PreviewData"]})}),overrideExisting:"throw"}),tm=(0,c.cn)("kv-preview"),am=({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}=em.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,K.o)(!1))};if(p)return(0,d.jsx)("div",{className:tm("loader-container"),children:(0,d.jsx)(Zr.a,{size:"m"})});let g;o?m&&(g=(0,d.jsx)("div",{className:tm("message-container","error"),children:(0,Nt.Cb)(m)})):g=(0,d.jsx)("div",{className:tm("message-container"),children:lu("preview.not-available")});const y=null!==(s=g)&&void 0!==s?s:(0,d.jsx)("div",{className:tm("result"),children:(0,d.jsx)(Xu,{data:h.result,columns:h.columns})});return(0,d.jsxs)("div",{className:tm(),children:[(()=>{var e,a;return(0,d.jsxs)("div",{className:tm("header"),children:[(0,d.jsxs)("div",{className:tm("title"),children:[lu("preview.title"),(0,d.jsxs)(it.E,{color:"secondary",variant:"body-2",children:[h.truncated?`${lu("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:tm("table-name"),children:t})]}),(0,d.jsxs)("div",{className:tm("controls-left"),children:[(0,d.jsx)(Mu,{disabled:Boolean(m)}),(0,d.jsx)(hn.$,{view:"flat-secondary",onClick:v,title:lu("preview.close"),children:(0,d.jsx)(ct.I,{data:ic.A,size:18})})]})]})})(),(0,d.jsx)($u,{children:y})]})};var nm=a(27738),rm=a(594),sm=a(1155);const im=(0,c.cn)("ydb-query-settings-description"),om=({querySettings:e,prefix:t})=>(0,d.jsxs)("div",{className:im("message"),children:[t,Object.entries(e).map((([e,t],a,n)=>(0,d.jsxs)("span",{className:im("description-item"),children:[`${e}: ${t}`,a<n.length-1?", ":null]},a)))]});var lm=a(13066);async function cm(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")}const dm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0: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)`,um=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0: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)`,mm=()=>'-- 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);',pm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\n -- RENAME TO new_table_name\n -- DROP COLUMN some_existing_column\n\${2:ADD COLUMN numeric_column Int32};`,hm=e=>{var t;const a=null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<my_table>}";return`SELECT ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>"`"+e.name+"`")).join(", "))||"${1:*}"}\nFROM ${a}\n${null!==e&&void 0!==e&&e.relativePath?"":"WHERE ${3:Key1 = 1}\nORDER BY ${4:Key1}\n"}LIMIT \${5:10};`},vm=e=>{var t;return`UPSERT INTO ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\n( ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>`\`${e.name}\``)).join(", "))||"${2:id, name}"} )\nVALUES ( ${null!==e&&void 0!==e&&e.schemaData?"${3: }":'${3:1, "foo"}'} );`},gm=e=>`DROP EXTERNAL TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:my_table}"};`,ym=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`CREATE EXTERNAL TABLE ${t?`\`${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?`${e.relativePath}`:"${2:<path_to_data_source>}"}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`},xm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-topic\nCREATE TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0: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);`,bm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0: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 );`,fm=e=>`DROP TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_topic>}"};`,jm=e=>`CREATE VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}/my_view\``:"${1:my_view}"} WITH (security_invoker = TRUE) AS SELECT 1;`,Sm=e=>`DROP VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_view>}"};`,Tm=e=>`DROP ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_replication>}"};`,Nm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication\nALTER ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_replication>}"} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,Em=e=>`ALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`,wm=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?`\`${a}\``:"${1:<my_table>}"} DROP INDEX ${t||"${2:<index_name>}"};`},Cm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0: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.`,Pm=()=>"-- 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.",Im=()=>"-- 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.",Dm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\nWHERE \${2:Key1 = 1};`,Am=()=>"-- 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.",_m=()=>"-- 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.",Rm=e=>`GRANT \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${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.`,km=e=>`REVOKE \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${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.`,Om=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\nSET \${2:Column1 = 'foo', Column2 = 'bar'}\nWHERE \${3:Key1 = 1};`,Mm=e=>`DROP TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"};`,Lm=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.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-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"}'),zm=(0,$e.g4)("ydb-new-sql",{en:Lm});function Fm(){const e=(e=>{const t=t=>()=>{e(t())};return{createRowTable:t(dm),createColumnTable:t(um),createAsyncReplication:t(mm),alterAsyncReplication:t(Nm),dropAsyncReplication:t(Tm),alterTable:t(pm),selectQuery:t(hm),upsertQuery:t(vm),createExternalTable:t(ym),dropExternalTable:t(gm),createTopic:t(xm),alterTopic:t(bm),dropTopic:t(fm),createView:t(jm),dropTable:t(Mm),deleteRows:t(Dm),updateTable:t(Om),createUser:t(Im),createGroup:t(Pm),createCdcStream:t(Cm),grantPrivilege:t(Rm),revokePrivilege:t(km),dropUser:t(_m),dropGroup:t(Am),addTableIndex:t(Em),dropTableIndex:t(wm)}})(no(n.useCallback((e=>{cm(e)}),[]))),t=[{text:zm("menu.tables"),items:[{text:zm("action.create-row-table"),action:e.createRowTable},{text:zm("action.create-column-table"),action:e.createColumnTable},{text:zm("action.create-external-table"),action:e.createExternalTable},{text:zm("action.upsert-to-table"),action:e.upsertQuery},{text:zm("action.update-table"),action:e.updateTable},{text:zm("action.alter-table"),action:e.alterTable},{text:zm("action.select-rows"),action:e.selectQuery},{text:zm("action.delete-rows"),action:e.deleteRows},{text:zm("action.drop-table"),action:e.dropTable},{text:zm("action.drop-external-table"),action:e.dropExternalTable},{text:zm("action.add-index"),action:e.addTableIndex},{text:zm("action.drop-index"),action:e.dropTableIndex}]},{text:zm("menu.topics"),items:[{text:zm("action.create-topic"),action:e.createTopic},{text:zm("action.alter-topic"),action:e.alterTopic},{text:zm("action.drop-topic"),action:e.dropTopic}]},{text:zm("menu.replication"),items:[{text:zm("action.create-async-replication"),action:e.createAsyncReplication},{text:zm("action.alter-async-replication"),action:e.alterAsyncReplication},{text:zm("action.drop-async-replication"),action:e.dropAsyncReplication}]},{text:zm("menu.capture"),items:[{text:zm("action.create-cdc-stream"),action:e.createCdcStream}]},{text:zm("menu.users"),items:[{text:zm("action.create-user"),action:e.createUser},{text:zm("action.create-group"),action:e.createGroup},{text:zm("action.drop-user"),action:e.dropUser},{text:zm("action.drop-group"),action:e.dropGroup},{text:zm("action.grant-privilege"),action:e.grantPrivilege},{text:zm("action.revoke-privilege"),action:e.revokePrivilege}]}];return(0,d.jsx)(qi.r,{items:t,renderSwitcher:e=>(0,d.jsxs)(hn.$,{...e,children:[zm("button.new-sql"),(0,d.jsx)(hn.$.Icon,{children:(0,d.jsx)(lm.A,{})})]}),popupProps:{placement:"top"}})}const qm=(0,c.cn)("ydb-query-editor-controls"),Qm=({onClick:e,runIsLoading:t})=>{const{changedCurrentSettings:a,changedCurrentSettingsDescriptions:n}=wu(),r=a.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(sm.m,{disabled:0===a.length,content:(0,d.jsx)(om,{prefix:lu("gear.tooltip"),querySettings:n}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(hn.$,{onClick:e,loading:t,className:qm("gear-button"),...r,children:[(0,d.jsx)(ct.I,{data:nm.A,size:16}),r?(0,d.jsxs)("div",{className:qm("changed-settings"),children:["(",a.length,")"]}):null]})})},Um=({disabled:e,isLoading:t,highlightedAction:a,handleSendExecuteClick:n,onSettingsButtonClick:r,handleGetExplainQueryClick:s})=>{const i=(0,X.N4)(Ai.Wp),o="execute"===a?"action":void 0,l="explain"===a?"action":void 0,c=e||!i;return(0,d.jsxs)("div",{className:qm(),children:[(0,d.jsxs)("div",{className:qm("left"),children:[(0,d.jsxs)(hn.$,{onClick:()=>{n(i)},disabled:c,loading:t,view:o,className:qm("run-button"),children:[(0,d.jsx)(ct.I,{data:rm.A,size:14}),"Run"]}),(0,d.jsx)(hn.$,{onClick:()=>{s(i)},disabled:c,loading:t,view:l,children:"Explain"}),(0,d.jsx)(Qm,{onClick:r,runIsLoading:t})]}),(0,d.jsxs)("div",{className:qm("right"),children:[(0,d.jsx)(Fm,{}),(0,d.jsx)(Ji,{buttonProps:{disabled:e}})]})]})},Bm=(0,c.cn)("kv-divider");const $m=function(){return(0,d.jsx)("div",{className:Bm()})},Hm=(0,c.cn)("ydb-query-elapsed-time");function Gm({className:e}){const[,t]=n.useState({}),[a]=n.useState(Date.now()),r=Date.now()-a;n.useEffect((()=>{const e=setInterval((()=>{t({})}),Z.KF);return()=>{clearInterval(e)}}),[]);const s=r>Z.Jg*Z.KF?(0,nt.p0)(r).format("hh:mm:ss"):(0,nt.p0)(r).format("mm:ss");return(0,d.jsx)(Ct.J,{className:Hm(null,e),children:s})}var Wm=a(64280),Vm=a(80953);function Jm(e){var t;const a=(0,Nt.KH)(e);return"object"===typeof a&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}const Ym=(0,c.cn)("kv-query-execution-status"),Km=()=>{const{isIndicatorShown:e,changedLastExecutionSettingsDescriptions:t}=wu();return e?(0,d.jsx)(sm.m,{openDelay:0,content:(0,d.jsx)(om,{prefix:lu("banner.query-settings.message"),querySettings:t}),children:(0,d.jsx)(ct.I,{data:ai.A,className:Ym("query-settings-icon")})}):null},Zm=({className:e,error:t,loading:a})=>{let n,r;if(a)n=(0,d.jsx)(Vm.t,{size:"xs"}),r="Running";else if((0,ee.F0)(t)&&"ECONNABORTED"===t.code)n=(0,d.jsx)(ct.I,{data:Wm.A}),r="Connection aborted";else if(Jm(t))n=(0,d.jsx)(ct.I,{data:st.A}),r="Stopped";else{const e=Boolean(t);n=(0,d.jsx)(ct.I,{data:e?ni.A:ti.A,className:Ym("result-status-icon",{error:e})}),r=e?"Failed":"Completed"}return(0,d.jsxs)("div",{className:Ym(null,e),children:[n,r,Jm(t)||a?null:(0,d.jsx)(Km,{})]})};var Xm=a(66528);const ep=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"}),tp=(0,c.cn)("cancel-query-button");function ap({queryId:e,tenantName:t}){const[a,r]=ep.useCancelQueryMutation(),s=n.useCallback((()=>{a({queryId:e,database:t})}),[e,a,t]);return(0,d.jsxs)(hn.$,{loading:r.isLoading,onClick:s,className:tp("stop-button",{error:Boolean(r.error)}),children:[(0,d.jsx)(ct.I,{data:Xm.A,size:16}),lu("action.stop")]})}const np=(0,c.cn)("ydb-query-duration"),rp=({duration:e})=>{if(!e)return null;const t=(0,vt.Bi)((0,vt.Jc)(e),1);return(0,d.jsx)("span",{className:np(),children:(0,d.jsx)(Ra,{className:np("item-with-popover"),contentClassName:np("popover-content"),text:t,popoverClassName:np("popover"),popoverContent:lu("query-duration.description"),buttonProps:{className:np("popover-button")}})})};var sp=a(55299);const ip=(0,c.cn)("ydb-query-settings-banner");function op(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=wu();return e?(0,d.jsx)(sp.F,{className:ip(),theme:"info",align:"baseline",message:(0,d.jsx)(om,{prefix:lu("banner.query-settings.message"),querySettings:t}),onClose:a}):null}function lp(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var cp=a(6376);const dp=(0,c.cn)("ydb-query-ast"),up={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function mp({ast:e,theme:t}){return(0,d.jsx)("div",{className:dp(),children:(0,d.jsx)(cp.default,{language:"s-expression",value:e,options:up,theme:`vs-${t}`})})}var pp=a(73253);function hp(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,pp.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 vp={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},gp={node:pp.SO};function yp(e){return(0,d.jsx)(hp,{...e,opts:vp,shapes:gp})}const xp=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":"Schema","action.explain-plan":"Explain Plan","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}}"}'),bp=(0,$e.g4)("ydb-execute-result",{en:xp}),fp=(0,c.cn)("ydb-query-result-stub-message");function jp({message:e}){return(0,d.jsx)("div",{className:fp(null),children:e})}const Sp=(0,c.cn)("ydb-query-explain-graph");function Tp({explain:e={},theme:t}){const{links:a,nodes:n}=e;return a&&n&&n.length?(0,d.jsx)("div",{className:Sp("canvas-container"),children:(0,d.jsx)(yp,{data:{links:a,nodes:n}},t)}):(0,d.jsx)(jp,{message:bp("description.graph-is-not-supported")})}var Np=a(7450);const Ep=(0,c.cn)("query-info-dropdown");var wp=a(112),Cp=a(92159);const Pp=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"}),Ip=JSON.parse('{"unknown-error":"An unknown error occurred"}'),Dp=(0,$e.g4)("ydb-errors",{en:Ip});function Ap(e,t){const a=document.createElement("a");a.href=e,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function _p({title:e,description:t}){return(0,d.jsxs)("div",{className:Ep("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 Rp({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:r}){const[s,i]=n.useState(null),[o,{isLoading:l}]=Pp.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 Dp("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:bp("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&&Ap(e,"query-plan.svg")}))};n.push([{text:(0,d.jsx)(_p,{title:bp("text_open-execution-plan"),description:bp("text_open-execution-plan_description")}),icon:(0,d.jsx)(wp.A,{className:Ep("icon")}),action:a,className:Ep("menu-item")},{text:(0,d.jsx)(_p,{title:bp("text_download"),description:bp("text_download_description")}),icon:(0,d.jsx)(Cp.A,{className:Ep("icon")}),action:r,className:Ep("menu-item")}])}if(e){const a=()=>{const a=r?(0,Nt.KH)(r):void 0,n={...e,database:t,...a&&{error:a}},s=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),i=URL.createObjectURL(s);Ap(i,`query-diagnostics-${(new Date).getTime()}.json`),URL.revokeObjectURL(i)};n.push([{text:(0,d.jsx)(_p,{title:bp("text_diagnostics"),description:bp("text_diagnostics_description")}),icon:(0,d.jsx)(Cp.A,{className:Ep("icon")}),action:a,className:Ep("menu-item")}])}return n}),[e,a,s,o,t,r])}}function kp({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n}){const{isLoading:r,items:s}=Rp({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n});return s.length?(0,d.jsx)(qi.r,{popupProps:{placement:["bottom-end","left"]},switcherWrapperClassName:Ep("query-info-switcher-wrapper"),renderSwitcher:e=>(0,d.jsx)(lt.m,{title:bp("tooltip_actions"),children:(0,d.jsx)(hn.$,{view:"flat-secondary",loading:r,disabled:r,...e,children:(0,d.jsx)(hn.$.Icon,{children:(0,d.jsx)(Np.A,{})})})}),items:s,size:"xl"}):null}const Op=(0,c.cn)("ydb-query-json-viewer");function Mp({data:e}){return(0,d.jsx)("div",{className:Op("inspector"),children:(0,d.jsx)(jn,{data:e,isExpanded:()=>!0})})}var Lp=a(89954);const zp=(0,c.cn)("ydb-query-result-error ");function Fp({error:e}){const t=(0,Nt.KH)(e);return!t||Jm(e)?null:"object"===typeof t?(0,d.jsx)(Lp.O,{data:t}):(0,d.jsx)("div",{className:zp("message"),children:t})}const qp=(0,c.cn)("ydb-query-result-sets-viewer");function Qp({resultSets:e,selectedResultSet:t,setSelectedResultSet:a}){const n=(null===e||void 0===e?void 0:e.length)||0,r=null===e||void 0===e?void 0:e[t];return(0,d.jsxs)("div",{className:qp("result-wrapper"),children:[(()=>{if(n>1){const r=(0,Br._e)(n).map((t=>{var a;return{id:String(t),title:`Result #${t+1}${null!==e&&void 0!==e&&null!==(a=e[t])&&void 0!==a&&a.truncated?" (T)":""}`}}));return(0,d.jsx)("div",{children:(0,d.jsx)(ne.t,{className:qp("tabs"),size:"l",items:r,activeTab:String(t),onSelectTab:e=>a(Number(e))})})}return null})(),r?(0,d.jsxs)("div",{className:qp("result"),children:[(0,d.jsxs)("div",{className:qp("head"),children:[(0,d.jsx)(it.E,{variant:"subheader-3",children:null!==r&&void 0!==r&&r.truncated?bp("title.truncated"):bp("title.result")}),null!==r&&void 0!==r&&r.result?(0,d.jsx)(it.E,{color:"secondary",variant:"body-2",className:qp("row-count"),children:`(${null===r||void 0===r?void 0:r.result.length})`}):null]}),(0,d.jsx)(Xu,{data:r.result,columns:r.columns})]}):null]})}var Up=a(36590),Bp=a(79737),$p=a(79685);const Hp=(0,c.cn)("ydb-query-simplified-plan");function Gp({value:e,formatter:t}){if(!(0,$r.kf)(e))return;const a=t(Number(e));return(0,d.jsx)("div",{className:Hp("metrics-cell"),children:a})}var Wp=a(33705);const Vp={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function Jp(e){return e in Vp?Vp[e]:"var(--g-color-text-secondary)"}function Yp(e={}){const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=Jp(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=Jp(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:s},children:[n,": ",(0,he.vN)(r)]},e))}}return t}function Kp({params:e}){return e?(0,d.jsxs)("span",{className:Hp("operation-params"),children:["(",Yp(e),")"]}):null}function Zp({modifiers:e,left:t}){return(0,d.jsx)("div",{className:Hp("divider",e),style:{left:t}})}function Xp({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)(Zp,{modifiers:{horizontal:!0},left:10+25*(r-1)},"last")):n.push((0,d.jsx)(Zp,{modifiers:{last:!0},left:9+25*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(Zp,{modifiers:{first:!0},left:9+25*r},"first")),a[r]&&n.push((0,d.jsx)(Zp,{left:9+25*(r-1)},r));return n}(i,o)),[i,o]);return(0,d.jsxs)("div",{style:{paddingLeft:25*t},className:Hp("operation-name"),children:[l,(0,d.jsxs)(ot.s,{gap:1,alignItems:"center",className:Hp("operation-content"),children:[e.getCanExpand()&&(0,d.jsx)(hn.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,d.jsx)(hn.$.Icon,{children:(0,d.jsx)(Wp.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:Hp("operation-name-content"),children:(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:Hp("operation-name"),children:r}),"\xa0",(0,d.jsx)(Kp,{params:s})]})})]})]})}function eh(e){return(0,d.jsx)(Gp,{value:e.getValue(),formatter:e=>e<1e8?(0,$p.p)(e).format():(0,$r.z0)(e,1)})}const th=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(Bp.A,{children:"Operation"}),size:600,cell:e=>(0,d.jsx)(Xp,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(Bp.A,{children:"A-Cpu"}),size:90,minSize:90,cell:function(e){return(0,d.jsx)(Gp,{value:e.getValue(),formatter:e=>(0,vt.Xo)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(Bp.A,{children:"A-Rows"}),size:90,minSize:90,cell:eh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(Bp.A,{children:"E-Cost"}),size:90,minSize:90,cell:eh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(Bp.A,{children:"E-Rows"}),size:90,minSize:90,cell:eh,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(Bp.A,{children:"E-Size"}),size:90,minSize:90,cell:eh,meta:{align:"right",verticalAlign:"top"}}];function ah({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,Up.K)({columns:th,data:t,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:r,state:{expanded:a},enableColumnResizing:!0,columnResizeMode:"onChange"});return(0,d.jsx)(Bp.X,{wrapperClassName:Hp(),table:s,stickyHeader:!0,width:"max"})}const nh=H.F.injectEndpoints({endpoints:e=>({checkTrace:e.query({queryFn:async({url:e},{signal:t,dispatch:a})=>{try{const n=await window.api.trace.checkTrace({url:e},{signal:t});return a((0,Ai.P7)()),{data:n}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});function rh(e,t){return e.replace(/\${(\w+)}/g,((e,a)=>t[a]||e))}function sh({traceId:e,isTraceReady:t}){const{traceCheck:a,traceView:r}=(0,Ps.Zd)(),s=null!==a&&void 0!==a&&a.url?rh(a.url,{traceId:e}):"",i=null!==r&&void 0!==r&&r.url?rh(r.url,{traceId:e}):"",[o,{isLoading:l,isUninitialized:c}]=nh.useLazyCheckTraceQuery();return n.useEffect((()=>{let e;return s&&!t&&(e=o({url:s})),()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[o,s,t]),!i||c&&!t?null:(0,d.jsxs)(hn.$,{view:l?"flat-secondary":"flat-info",loading:l,href:i,target:"_blank",children:[bp("trace"),(0,d.jsx)(hn.$.Icon,{children:(0,d.jsx)(wp.A,{})})]})}const ih=(0,c.cn)("ydb-query-result"),oh="result",lh="schema",ch="simplified",dh="json",uh="stats",mh="ast",ph={get result(){return bp("action.result")},get schema(){return bp("action.schema")},get simplified(){return bp("action.explain-plan")},get json(){return bp("action.json")},get stats(){return bp("action.stats")},get ast(){return bp("action.ast")}},hh=["result","schema","simplified","stats"],vh=["schema","json","simplified","ast"];function gh({result:e,resultType:t="execute",isResultsCollapsed:a,theme:r,tenantName:s,queryText:i,onCollapseResults:l,onExpandResults:c}){const u=(0,X.YQ)(),m="execute"===t,p="explain"===t,[h,v]=n.useState(0),[g,y]=n.useState((()=>m?oh:lh)),[x]=(0,X.iK)(Z.lr),{error:b,isLoading:f,queryId:j,data:S={}}=e,{preparedPlan:T,simplifiedPlan:N,stats:E,resultSets:w,ast:C}=S;n.useEffect((()=>{"execute"!==t||hh.includes(g)||y("result"),"explain"!==t||vh.includes(g)||y("schema")}),[g,t]);const P=n.useMemo((()=>{let e=[];return m?e=hh:p&&(e=vh),e.map((e=>({value:e,content:ph[e]})))}),[m,p]);n.useEffect((()=>()=>{u((0,Ou.sM)())}),[u]);const I=e=>{y(e)},D=()=>{switch(g){case oh:{var e;const t=null===S||void 0===S||null===(e=S.resultSets)||void 0===e?void 0:e[h],a=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(lp).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(lp("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 dh:return null===T||void 0===T?void 0:T.pristine;case ch:return null===N||void 0===N?void 0:N.pristine;case uh:return E;case mh:return C;default:return}},A=()=>{const e=D(),t=(0,he.vN)(e);return t?(0,d.jsx)(mn.b,{text:t,view:"flat-secondary",title:bp("action.copy",{activeSection:g})}):null},_=()=>(0,d.jsx)(jp,{message:bp("description.empty-result",{activeSection:ph[g]})});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:ih("controls"),children:[(0,d.jsxs)("div",{className:ih("controls-left"),children:[(0,d.jsx)(Zm,{error:b,loading:f}),!b&&!f&&(0,d.jsxs)(n.Fragment,{children:[(0,Br.f8)(null===E||void 0===E?void 0:E.DurationUs)?(0,d.jsx)(rp,{duration:Number(E.DurationUs)}):null,P.length&&g?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)($m,{}),(0,d.jsx)(Pd.a,{options:P,value:g,onUpdate:I})]}):null]}),f?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Gm,{className:ih("elapsed-time")}),(0,d.jsx)(ap,{queryId:j,tenantName:s})]}):null,null!==S&&void 0!==S&&S.traceId&&m?(0,d.jsx)(sh,{traceId:S.traceId,isTraceReady:e.isTraceReady}):null]}),(0,d.jsxs)("div",{className:ih("controls-right"),children:[f||Jm(b)?null:(0,d.jsx)(kp,{queryResultsInfo:{queryText:i,ast:S.ast,stats:S.stats,plan:S.plan},error:b,database:s,hasPlanToSvg:Boolean((null===S||void 0===S?void 0:S.plan)&&x&&m)}),A(),(0,d.jsx)(Mu,{}),(0,d.jsx)(Ru,{onCollapse:l,onExpand:c,isCollapsed:a,initialDirection:"bottom"})]})]}),f||Jm(b)?null:(0,d.jsx)(op,{}),(0,d.jsx)(o.r,{loading:f,children:(0,d.jsx)($u,{className:ih("result"),children:(()=>{return b?(0,d.jsx)(Fp,{error:b}):g===oh?(0,d.jsx)(Qp,{resultSets:w,selectedResultSet:h,setSelectedResultSet:v}):g===lh?null!==T&&void 0!==T&&null!==(e=T.nodes)&&void 0!==e&&e.length?(0,d.jsx)(Tp,{theme:r,explain:T}):_():g===dh?null!==T&&void 0!==T&&T.pristine?(0,d.jsx)(Mp,{data:null===T||void 0===T?void 0:T.pristine}):_():g===ch?null!==N&&void 0!==N&&null!==(t=N.plan)&&void 0!==t&&t.length?(0,d.jsx)(ah,{plan:N.plan}):_():g===uh?E?(0,d.jsx)(Mp,{data:E}):_():g===mh?C?(0,d.jsx)(mp,{ast:C,theme:r}):_():null;var e,t})()})})]})}var yh=a(16122),xh=a(23971);const bh=()=>-1,fh=(0,c.cn)("ydb-query-settings-select");function jh(e){return(0,d.jsx)("div",{className:fh("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:fh("popup"),renderOption:e=>(0,d.jsxs)("div",{className:fh("item",{type:e.value}),children:[(0,d.jsxs)("div",{className:fh("item-title"),children:[e.content,e.isDefault?gu("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:fh("item-description"),children:e.text})]}),width:"max"})})}const Sh=(0,c.cn)("ydb-query-settings-dialog");function Th(){const e=(0,X.YQ)(),t=(0,X.N4)(Ui.xM),[a,r]=(0,X.XS)(),s=n.useCallback((()=>{e((0,Ui.NJ)("idle"))}),[e]),i=n.useCallback((e=>{r(e),s()}),[s,r]);return(0,d.jsxs)(Ri.l,{open:"settings"===t,size:"s",onClose:s,className:Sh(),hasCloseButton:!1,children:[(0,d.jsx)(Ri.l.Header,{caption:gu("action.settings")}),(0,d.jsx)(Nh,{initialValues:a,onSubmit:i,onClose:s})]})}function Nh({initialValues:e,onSubmit:t,onClose:a}){const{control:r,handleSubmit:s,formState:{errors:i}}=(0,xh.mN)({defaultValues:e,resolver:(0,yh.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)(Ri.l.Body,{className:Sh("dialog-body"),children:[(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Sh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:Sh("field-title"),children:ju.queryMode.title}),(0,d.jsx)("div",{className:Sh("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(xh.xI,{name:"queryMode",control:r,render:({field:e})=>(0,d.jsx)(jh,{id:"queryMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:ju.queryMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Sh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:Sh("field-title"),children:ju.timeout.title}),(0,d.jsx)("div",{className:Sh("control-wrapper"),children:(0,d.jsx)(xh.xI,{name:"timeout",control:r,render:({field:e})=>{var t,a;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Qi.k,{id:"timeout",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:Sh("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:Sh("timeout-suffix"),children:gu("form.timeout.seconds")})]})}})})]}),l&&(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Sh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:Sh("field-title"),children:ju.tracingLevel.title}),(0,d.jsx)("div",{className:Sh("control-wrapper"),children:(0,d.jsx)(xh.xI,{name:"tracingLevel",control:r,render:({field:e})=>(0,d.jsx)(jh,{id:"tracingLevel",setting:e.value,onUpdateSetting:e.onChange,settingOptions:ju.tracingLevel.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Sh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:Sh("field-title"),children:ju.transactionMode.title}),(0,d.jsx)("div",{className:Sh("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(xh.xI,{name:"transactionMode",control:r,render:({field:e})=>(0,d.jsx)(jh,{id:"transactionMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:ju.transactionMode.options})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Sh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:Sh("field-title"),children:ju.statisticsMode.title}),(0,d.jsx)(sm.m,{className:Sh("statistics-mode-tooltip"),disabled:!o,openDelay:0,content:gu("tooltip_plan-to-svg-statistics"),children:(0,d.jsx)("div",{className:Sh("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(xh.xI,{name:"statisticsMode",control:r,render:({field:e})=>(0,d.jsx)(jh,{id:"statisticsMode",disabled:o,setting:e.value,onUpdateSetting:e.onChange,settingOptions:ju.statisticsMode.options})})})})]}),(0,d.jsxs)(ot.s,{direction:"row",alignItems:"flex-start",className:Sh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:Sh("field-title"),children:ju.limitRows.title}),(0,d.jsx)("div",{className:Sh("control-wrapper"),children:(0,d.jsx)(xh.xI,{name:"limitRows",control:r,render:({field:e})=>{var t,a;return(0,d.jsx)(Qi.k,{id:"limitRows",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:Sh("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)(Ri.l.Footer,{textButtonApply:gu("button-done"),textButtonCancel:gu("button-cancel"),onClickButtonCancel:a,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:Sh("buttons-container"),children:[(0,d.jsx)(Bo.N,{href:"https://ydb.tech/docs",target:"_blank",className:Sh("documentation-link"),children:gu("docs")}),(0,d.jsxs)("div",{className:Sh("main-buttons"),children:[t,e]})]})})]})}const Eh=(0,a(99006)._)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,6376))).default})),"Editor");var wh=a(41614),Ch=a(67913);const Ph=JSON.parse('{"context_syntax-error":"Syntax error"}'),Ih=(0,$e.g4)("ydb-monaco",{en:Ph}),Dh=(0,uu.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,wh.kh)(t.getValue()).errors;if(!a.length)return void _h();const n=a.map((e=>({message:Ih("context_syntax-error"),source:e.message,severity:Ch.cj.Error,startLineNumber:e.startLine,startColumn:e.startColumn+1,endLineNumber:e.endLine,endColumn:e.endColumn+1})));Ch.EN.setModelMarkers(t,"ydb",n)}),500);function Ah(){const e=(t=Dh,n.useEffect((()=>()=>{t.cancel()}),[t]),t);var t;return n.useCallback((()=>{_h(),e()}),[e])}function _h(){Ch.EN.removeAllMarkers("ydb")}const Rh={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1},fixedOverflowWidgets:!0};const kh="navigation";function Oh({changeUserInput:e,theme:t,handleSendExecuteClick:a,handleGetExplainQueryClick:r}){const s=(0,X.N4)(Ai.Wp),i=(0,X.YQ)(),o=(0,X.N4)(Ai.py),l=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",...Rh}}),[e,t])}(),c=Ah(),[u]=(0,X.iK)(Z.zk),m=(0,X.A5)((()=>o&&0!==o.length?o[o.length-1].queryText:"")),p=(0,X.A5)((()=>{u===Nt.x5.explain?r(s):a(s)}));return(0,d.jsx)(Eh,{language:"yql",value:s,options:l,onChange:t=>{c(),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))})),function(e){const t=ge()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(e),function(e,t){Mh(e.getValue(),t()),e.onDidChangeModelContent((()=>{Mh(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(e,m),e.focus(),e.addAction({id:"sendQuery",label:lu("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:kh,contextMenuOrder:1,run:()=>p()});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:lu("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:kh,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:lu("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:kh,contextMenuOrder:2,run:()=>{i((0,Ai.JK)())}}),e.addAction({id:"next-query",label:lu("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:kh,contextMenuOrder:3,run:()=>{i((0,Ai.tS)())}}),e.addAction({id:"save-query",label:lu("action.save-query"),keybindings:[n.saveQuery],run:()=>{_i.Ay.show(Ki)}})},theme:`vs-${t}`,editorWillUnmount:()=>{window.ydbEditor=void 0}})}function Mh(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const Lh=(0,c.cn)("query-editor"),zh={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};function Fh(e){const t=(0,X.YQ)(),{tenantName:a,path:r,type:s,theme:i,changeUserInput:o}=e,l=(0,X.N4)(Ai.yJ),c=(0,X.N4)(Ai.wf),u=(0,X.N4)(Ai.py),m=(0,X.N4)(Ai.Kz),p=(0,X.N4)(K.Ab),v=Boolean(c),[g]=(0,X.XS)(),y=(0,ie.Oi)(),[x,b]=Nu(),{resetBanner:f}=wu(),[j,S]=(0,X.iK)(Z.zk),[T,N]=n.useState(""),[E]=Ai.JO.useUseSendQueryMutation();n.useEffect((()=>{l!==a&&t((0,Ai.Id)(a))}),[t,a,l]);const[w,C]=n.useReducer(Au(Z.GV),zh);n.useEffect((()=>{C(Pu.triggerCollapse)}),[]),n.useEffect((()=>{C(p||v?Pu.triggerExpand:Pu.triggerCollapse)}),[p,v]);const P=(0,X.A5)(((e,n)=>{S(Nt.x5.execute),N(e),(0,uu.isEqual)(x,g)||(f(),b(g));const r=(0,mu.A)();var s;(E({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:r}),t((0,K.o)(!1)),n)||e!==(null===(s=u[m])||void 0===s?void 0:s.queryText)&&t((0,Ai.nO)({queryText:e,queryId:r}));C(Pu.triggerExpand)})),I=()=>{t((0,Ui.NJ)("settings"))},D=(0,X.A5)((e=>{S(Nt.x5.explain),N(e),(0,uu.isEqual)(x,g)||(f(),b(g));const n=(0,mu.A)();E({actionType:"explain",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:n}),t((0,K.o)(!1)),C(Pu.triggerExpand)}));return(0,d.jsxs)("div",{className:Lh(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.l_,triggerCollapse:w.triggerCollapse,triggerExpand:w.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{C(Pu.clear)},children:[(0,d.jsxs)("div",{className:Lh("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:Lh("monaco-wrapper"),children:(0,d.jsx)("div",{className:Lh("monaco"),children:(0,d.jsx)(Oh,{changeUserInput:o,theme:i,handleSendExecuteClick:P,handleGetExplainQueryClick:D})})}),(0,d.jsx)(Um,{handleSendExecuteClick:P,onSettingsButtonClick:I,isLoading:Boolean(null===c||void 0===c?void 0:c.isLoading),handleGetExplainQueryClick:D,highlightedAction:j})]}),(0,d.jsx)("div",{className:Lh("pane-wrapper"),children:(0,d.jsx)(qh,{resultVisibilityState:w,onExpandResultHandler:()=>{C(Pu.triggerExpand)},onCollapseResultHandler:()=>{C(Pu.triggerCollapse)},type:s,theme:i,result:c,tenantName:a,path:r,showPreview:p,queryText:T},null===c||void 0===c?void 0:c.queryId)})]}),(0,d.jsx)(Th,{})]})}function qh({resultVisibilityState:e,onExpandResultHandler:t,onCollapseResultHandler:a,type:n,theme:r,result:s,tenantName:i,path:o,showPreview:l,queryText:c}){return l?(0,d.jsx)(am,{database:i,path:o,type:n}):s?(0,d.jsx)(gh,{result:s,resultType:null===s||void 0===s?void 0:s.type,theme:r,tenantName:i,isResultsCollapsed:e.collapsed,onExpandResults:t,onCollapseResults:a,queryText:c}):null}const Qh=[{id:ae.tQ.newQuery,title:lu("tabs.newQuery")},{id:ae.tQ.history,title:lu("tabs.history")},{id:ae.tQ.saved,title:lu("tabs.saved")}],Uh=({className:e,activeTab:t})=>{const a=(0,Xn.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:Qh,wrapTo:({id:e},t)=>{const a=(0,na.YL)({...n,[na.vh.queryTab]:e});return(0,d.jsx)(wi.E,{to:a,children:t},e)}})})};var Bh=a(65872),$h=a(64470);const Hh=(0,c.cn)("ydb-saved-queries"),Gh=({visible:e,queryName:t,onCancelClick:a,onConfirmClick:n})=>(0,d.jsxs)(Ri.l,{open:e,hasCloseButton:!1,size:"s",onClose:a,onEnterKeyDown:n,children:[(0,d.jsx)(Ri.l.Header,{caption:lu("delete-dialog.header")}),(0,d.jsxs)(Ri.l.Body,{className:Hh("dialog-body"),children:[lu("delete-dialog.question"),(0,d.jsx)("span",{className:Hh("dialog-query-name"),children:` ${t}?`})]}),(0,d.jsx)(Ri.l.Footer,{textButtonApply:lu("delete-dialog.delete"),textButtonCancel:lu("delete-dialog.cancel"),onClickButtonCancel:a,onClickButtonApply:n})]}),Wh=({changeUserInput:e})=>{const t=Bi(),a=(0,X.YQ)(),r=(0,X.N4)(Ui.cu),[s,i]=n.useState(!1),[o,l]=n.useState(""),c=()=>{i(!1),l("")},u=no(n.useCallback((({queryText:t,queryName:n})=>{e({input:t}),a((0,Ui.JP)(n)),a((0,oe.sH)(ae.tQ.newQuery))}),[e,a])),m=[{name:"name",header:"Name",render:({row:e})=>(0,d.jsx)("div",{className:Hh("query-name"),children:e.name}),width:200},{name:"body",header:"Query Text",render:({row:e})=>{return(0,d.jsxs)("div",{className:Hh("query"),children:[(0,d.jsx)("div",{className:Hh("query-body"),children:(0,d.jsx)(so,{value:e.body,maxQueryHeight:6})}),(0,d.jsxs)("span",{className:Hh("controls"),children:[(0,d.jsx)(hn.$,{view:"flat-secondary",children:(0,d.jsx)(ct.I,{data:Bh.A})}),(0,d.jsx)(hn.$,{view:"flat-secondary",onClick:(t=e.name,e=>{e.stopPropagation(),i(!0),l(t)}),children:(0,d.jsx)(ct.I,{data:$h.A})})]})]});var t},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(qe.L,{className:Hh(),children:[(0,d.jsx)(qe.L.Controls,{children:(0,d.jsx)(Be.v,{onChange:e=>{a((0,Ui.ys)(e))},placeholder:lu("filter.text.placeholder"),className:Hh("search")})}),(0,d.jsx)(qe.L.Table,{children:(0,d.jsx)(Fe.l,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:m,data:t,settings:lo,emptyDataMessage:lu(r?"history.empty-search":"saved.empty"),rowClassName:()=>Hh("row"),onRowClick:e=>u({queryText:e.body,queryName:e.name}),initialSortOrder:{columnId:"name",order:Rt.Ay.ASCENDING}})})]}),(0,d.jsx)(Gh,{visible:s,queryName:o,onCancelClick:()=>{c()},onConfirmClick:()=>{c(),a((0,Ui.fu)(o)),l("")}})]})},Vh=(0,c.cn)("ydb-query"),Jh=e=>{const t=(0,X.YQ)(),{queryTab:a=ae.tQ.newQuery}=(0,X.N4)((e=>e.tenant)),s=e=>{t((0,Ai.iZ)(e))},i=n.useMemo((()=>Qh.find((({id:e})=>e===a))),[a]);return(0,d.jsxs)("div",{className:Vh(),children:[i?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:i.title})}):null,(0,d.jsx)(Uh,{className:Vh("tabs"),activeTab:a}),(0,d.jsx)("div",{className:Vh("content"),children:(()=>{switch(a){case ae.tQ.newQuery:return(0,d.jsx)(Fh,{changeUserInput:s,...e});case ae.tQ.history:return(0,d.jsx)(du,{changeUserInput:s});case ae.tQ.saved:return(0,d.jsx)(Wh,{changeUserInput:s});default:return null}})()})]})};var Yh=a(46649),Kh=a(93844);const Zh=["query","diagnostics"],Xh={query:Yh.A,diagnostics:Kh.A};const ev=(0,c.cn)("ydb-tenant-navigation"),tv=({id:e,title:t,icon:a})=>({value:e,content:(0,d.jsxs)("span",{className:ev("item"),children:[(0,d.jsx)(ct.I,{data:a,size:16,className:ev("icon")}),(0,d.jsx)("span",{className:ev("text"),children:t})]})}),av=()=>{const e=function(){const e=(0,Xn.W6)(),t=(0,Xn.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=Zh.map((t=>{const n=ae.Dg[t],i=(0,na.YL)({...a,[ae.Dt]:n});return{id:n,title:Lr(`pages.${t}`),icon:Xh[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:ev(),children:(0,d.jsx)(Pd.a,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:ev("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(tv)})})},nv=(0,c.cn)("object-general");const rv=function(e){const t=(0,te.i)(),{tenantPage:a}=(0,X.N4)((e=>e.tenant));return(0,d.jsxs)("div",{className:nv(),children:[(0,d.jsx)(av,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:s,tenantName:i,path:o}=e;return a===ae.Dg.query?(0,d.jsx)(Jh,{tenantName:i,path:o,theme:t,type:n}):(0,d.jsx)(iu,{type:n,tenantName:i,path:o,additionalTenantProps:r,additionalNodesProps:s})})()]})};var sv=a(40336),iv=a(1956);const ov=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:["All"]})}),overrideExisting:"throw"}),lv=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"}'),cv=(0,$e.g4)("ydb-acl",{en:lv}),dv=(0,c.cn)("ydb-acl"),uv=["access","type","inheritance"],mv={access:"Access",type:"Access type",inheritance:"Inheritance type"},pv=new Set(["Object","Container"]);function hv({value:e}){const t="string"===typeof e?[e]:e;return(0,d.jsx)("div",{className:dv("definition-content"),children:t.map((e=>(0,d.jsx)("span",{children:e},e)))})}function vv(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)!==pv.size||r.some((e=>!pv.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)(hv,{value:a[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:dv("group-label"),children:e}),items:uv.map((e=>{const a=t[e];if(a)return{name:mv[e],content:(0,d.jsx)(hv,{value:a}),multilineName:!0}})).filter(Br.f8)}}))}const gv=({path:e,database:t})=>{const{currentData:a,isFetching:r,error:s}=ov.useGetSchemaAclQuery({path:e,database:t}),i=r&&!a,{acl:o,effectiveAcl:l,owner:c,interruptInheritance:u}=a||{},m=vv(o),p=vv(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:cv("title_owner"),multilineName:!0}]:[]}(c),v=u?[{name:cv("title_interupt-inheritance"),content:(0,d.jsx)(ct.I,{data:iv.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:cv("description_empty")});const g=h.concat(m);return(0,d.jsxs)("div",{className:dv(),children:[(0,d.jsx)(yv,{items:v}),(0,d.jsx)(yv,{items:g,title:cv("title_rights")}),(0,d.jsx)(yv,{items:p,title:cv("title_effective-rights")})]})};function yv({items:e,title:t}){return e.length?(0,d.jsxs)(n.Fragment,{children:[t&&(0,d.jsx)("div",{className:dv("list-title"),children:t}),(0,d.jsx)(ir.u,{items:e,nameMaxWidth:200,className:dv("result",{"no-title":!t}),responsive:!0})]}):null}var xv=a(87285);const bv=(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)}}},fv=(e,t)=>(0,d.jsx)(hn.$,{view:"flat-secondary",onClick:e.openPreview,title:Lr("actions.openPreview"),size:t||"s",children:(0,d.jsx)(ct.I,{data:xv.A})}),jv=(e,t,a)=>(n,r)=>{const s=bv(n,e,t),i=fv(s,a);return{async_replication:void 0,database:void 0,directory: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]},Sv=(e,t,a)=>(n,r)=>{const s=bv(n,e,t);return{preview:fv(s,a)}[r]};var Tv=a(57949),Nv=a(1064);const Ev=5*Z.KF,wv=H.F.injectEndpoints({endpoints:e=>({getTableSchemaData:e.query({queryFn:async({path:e,tenantName:t,type:a},{dispatch:n})=>{try{if($(a)){const a=await n(wt.endpoints.getViewSchema.initiate({database:t,path:e,timeout:Ev}));if((0,Nt.We)(a))return{error:a};return{data:ta(a.data)}}const r=await n(G.endpoints.getOverview.initiate({path:e,database:t,timeout:Ev}));return{data:ea(a,r.data)}}catch(r){return{error:r}}}})})});var Cv=a(51016),Pv=a(49917),Iv=a(32133),Dv=a.n(Iv);function Av(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 _v(e,t){return t===x.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const Rv=({text:e,action:t,isLoading:a})=>({text:(0,d.jsxs)(ot.s,{justifyContent:"space-between",alignItems:"center",children:[e,a&&(0,d.jsx)(Vm.t,{size:"xs"})]}),action:t,disabled:a}),kv=(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),cm(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(dm),createColumnTable:l(um),createAsyncReplication:l(mm),alterAsyncReplication:l(Nm),dropAsyncReplication:l(Tm),alterTable:l(pm),dropTable:l(Mm),selectQuery:l(hm),upsertQuery:l(vm),createExternalTable:l(ym),dropExternalTable:l(gm),selectQueryFromExternalTable:l(hm),createTopic:l(xm),alterTopic:l(bm),dropTopic:l(fm),createView:l(jm),dropView:l(Sm),dropIndex:l(wm),addTableIndex:l(Em),createCdcStream:l(Cm),copyPath:()=>{try{Dv()(e.relativePath),ht({name:"Copied",title:Lr("actions.copied"),type:"success"})}catch{ht({name:"Not copied",title:Lr("actions.notCopied"),type:"error"})}}}})({path:n,relativePath:Av(n,a),tenantName:a,type:r},e,t),i={text:Lr("actions.copyPath"),action:s.copyPath,iconEnd:(0,d.jsx)(Cv.A,{})},o={text:Lr("actions.connectToDB"),action:s.getConnectToDBDialog,iconEnd:(0,d.jsx)(Pv.A,{})},l=[{text:Lr("actions.createTable"),action:s.createTable},{text:Lr("actions.createColumnTable"),action:s.createColumnTable},{text:Lr("actions.createAsyncReplication"),action:s.createAsyncReplication},{text:Lr("actions.createTopic"),action:s.createTopic},{text:Lr("actions.createView"),action:s.createView}],c=[[i,o],l],u=[[i],l];if(s.createDirectory){const e={text:Lr("actions.createDirectory"),action:s.createDirectory};c.splice(1,0,[e]),u.splice(1,0,[e])}const m=[[i],[{text:Lr("actions.alterTable"),action:s.alterTable},{text:Lr("actions.dropTable"),action:s.dropTable},Rv({text:Lr("actions.selectQuery"),action:s.selectQuery,isLoading:t.isSchemaDataLoading}),Rv({text:Lr("actions.upsertQuery"),action:s.upsertQuery,isLoading:t.isSchemaDataLoading}),{text:Lr("actions.addTableIndex"),action:s.addTableIndex},{text:Lr("actions.createCdcStream"),action:s.createCdcStream}]],p=[[i],[{text:Lr("actions.alterTable"),action:s.alterTable},{text:Lr("actions.dropTable"),action:s.dropTable},{text:Lr("actions.selectQuery"),action:s.selectQuery},{text:Lr("actions.upsertQuery"),action:s.upsertQuery}]],h=[[i],[{text:Lr("actions.alterTopic"),action:s.alterTopic},{text:Lr("actions.dropTopic"),action:s.dropTopic}]],v=[[i],[{text:Lr("actions.selectQuery"),action:s.selectQueryFromExternalTable}],[{text:Lr("actions.dropTable"),action:s.dropExternalTable}]],g=[[i],[{text:Lr("actions.createExternalTable"),action:s.createExternalTable}]],y=[[i],[{text:Lr("actions.selectQuery"),action:s.selectQuery}],[{text:Lr("actions.dropView"),action:s.dropView}]],x=[i];return{async_replication:[[i],[{text:Lr("actions.alterReplication"),action:s.alterAsyncReplication},{text:Lr("actions.dropReplication"),action:s.dropAsyncReplication}]],database:c,directory:u,table:m,column_table:p,index_table:x,topic:h,stream:x,index:[[i,{text:Lr("actions.dropIndex"),action:s.dropIndex}]],external_table:v,external_data_source:g,view:y}[r]},Ov=(0,c.cn)("ydb-schema-create-directory-dialog"),Mv="relativePath";function Lv({open:e,onClose:t,database:a,parentPath:r,onSuccess:s}){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)(Ri.l,{open:e,onClose:h,size:"s",children:[(0,d.jsx)(Ri.l.Header,{caption:Lr("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(n=l)?/\s/.test(n)?Lr("schema.tree.dialog.whitespace"):"":Lr("schema.tree.dialog.empty");var n;o(t),t||u({database:a,path:`${r}/${l}`}).unwrap().then((()=>{h(),s(l)}))},children:[(0,d.jsxs)(Ri.l.Body,{children:[(0,d.jsxs)("label",{htmlFor:Mv,className:Ov("label"),children:[(0,d.jsx)("span",{className:Ov("description"),children:Lr("schema.tree.dialog.description")}),`${r}/`]}),(0,d.jsx)("div",{className:Ov("input-wrapper"),children:(0,d.jsx)(Qi.k,{placeholder:Lr("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:Mv,errorMessage:i})}),m.isError&&(0,d.jsx)(de.o,{error:m.error,defaultMessage:Lr("schema.tree.dialog.invalid")})]}),(0,d.jsx)(Ri.l.Footer,{loading:m.isLoading,textButtonApply:Lr("schema.tree.dialog.buttonApply"),textButtonCancel:Lr("schema.tree.dialog.buttonCancel"),onClickButtonCancel:h,propsButtonApply:{type:"submit"}})]})]})}const zv=n.createContext(void 0),Fv=n.createContext(void 0);function qv({children:e}){const[t,a]=n.useState("");return(0,d.jsx)(zv.Provider,{value:t,children:(0,d.jsx)(Fv.Provider,{value:a,children:e})})}function Qv(){const e=n.useContext(Fv);if(void 0===e)throw new Error("useDispatchTreeKey must be used within a TreeKeyProvider");return e}function Uv(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)(Ai.Wp),[u,{currentData:m,isFetching:p}]=wv.useLazyGetTableSchemaDataQuery(),[h,v]=(0,X.XS)(),[g,y]=n.useState(!1),[x,b]=n.useState(""),f=Qv(),j=function(){const e=n.useContext(zv);if(void 0===e)throw new Error("useTreeKey must be used within a TreeKeyProvider");return e}(),S=_v(a,s)?"database":E(s);n.useEffect((()=>{null!==i&&void 0!==i&&i.startsWith(a)||o(a)}),[i,o,a]);const T=e=>{b(e),y(!0)},w=n.useMemo((()=>kv(l,{setActivePath:o,updateQueryExecutionSettings:e=>v({...h,...e}),showCreateDirectoryDialog:t?T:void 0,getConfirmation:c?ao:void 0,getConnectToDBDialog:Nv.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)(Lv,{onClose:()=>{y(!1)},open:g,database:a,parentPath:x,onSuccess:e=>{const t=`${x}/${e}`;o(t),f(t)}}),(0,d.jsx)(Tv.F,{rootState:{path:a,name:r,type:S,collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(K.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=Q(a,n)||(0,Br.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:jv(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},j)]})}const Bv=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"}'),$v=(0,$e.g4)("ydb-object-summary",{en:Bv}),Hv=(0,c.cn)("ydb-object-summary");function Gv({tenantName:e,path:t}){var a;const{data:n={},isLoading:r}=(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,s.useQueryParam)("schema",s.StringParam);return!i&&r?(0,d.jsx)("div",{children:(0,d.jsx)(ue.a,{})}):(0,d.jsxs)("div",{className:Hv("tree-wrapper"),children:[(0,d.jsx)("div",{className:Hv("tree-header"),children:$v("title_navigation")}),(0,d.jsx)("div",{className:Hv("tree"),children:i?(0,d.jsx)(Uv,{rootPath:e,rootName:i.Name||e,rootType:i.PathType,currentPath:t,onActivePathUpdate:o}):null})]})}var Wv=a(16963);function Vv(){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)(hn.$,{title:$v("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:Wv.A,size:14})})})}var Jv=a(8873),Yv=a(97091);function Kv(){const e=Qv();return(0,d.jsx)(lt.m,{title:"Refresh",children:(0,d.jsx)(hn.$,{className:Hv("refresh-button"),view:"flat-secondary",onClick:()=>{e((0,Yv.Ak)())},children:(0,d.jsx)(ct.I,{data:Jv.A})})})}const Zv=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.hh))});function Xv({type:e,subType:t,tenantName:a,path:r,onCollapseSummary:i,onExpandSummary:o,isCollapsed:l}){var c;const[u]=(0,X.Nt)(),m=(0,X.YQ)(),[,p]=(0,s.useQueryParam)("schema",s.StringParam),[v,g]=n.useReducer(Au(Z.hh),void 0,Zv),{summaryTab:y=ae.ml.overview}=(0,X.N4)((e=>e.tenant)),f=(0,Xn.zy)(),j=Da().parse(f.search,{ignoreQueryPrefix:!0}),{currentData:S}=G.useGetOverviewQuery({path:r,database:a},{pollingInterval:u}),T=null===S||void 0===S||null===(c=S.PathDescription)||void 0===c?void 0:c.Self;n.useEffect((()=>{const t=D(e);!e||t||na.x$.find((e=>e.id===y))||m((0,oe.Mj)(ae.ml.overview))}),[m,e,y]);const N=()=>{const t=D(e)?[...na.x$,...na.nb]:na.x$;return(0,d.jsx)("div",{className:Hv("tabs"),children:(0,d.jsxs)(ot.s,{className:Hv("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(ne.t,{size:"l",items:t,activeTab:y,wrapTo:({id:e},t)=>{const a=(0,na.YL)({...j,[na.vh.summaryTab]:e});return(0,d.jsx)(re.N_,{to:a,className:Hv("tab"),children:t},e)},allowNotSelected:!0}),y===ae.ml.schema&&(0,d.jsx)(Vv,{})]})})},E=()=>{switch(y){case ae.ml.acl:return(0,d.jsx)(gv,{path:r,database:a});case ae.ml.schema:return(0,d.jsx)(aa,{type:e,path:r,tenantName:a});default:return(()=>{var e;if(!T)return;const{CreateStep:t,PathType:a,PathSubType:s,PathId:i,PathVersion:o}=T,l=[],c=_v(r,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:$v("field_type"),content:c}),s!==b.EPathSubTypeEmpty&&l.push({name:$v("field_subtype"),content:null===s||void 0===s?void 0:s.replace(/^EPathSubType/,"")}),l.push({name:$v("field_id"),content:i}),l.push({name:$v("field_version"),content:o}),l.push({name:$v("field_created"),content:(0,he.r6)(t)});const{PathDescription:u}=S;if(null!==u&&void 0!==u&&u.TableStats){const{DataSize:e,RowCount:t}=u.TableStats;l.push({name:$v("field_data-size"),content:_n(e)},{name:$v("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:$v("field_paths"),content:s},{name:$v("field_shards"),content:i}]},p={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeTable]:()=>{var e;return[{name:$v("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:$v("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:$v("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:$v("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:$v("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:$v("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:$v("field_retention"),content:r&&(0,he.Pt)(r)}]},[x.EPathTypeExternalTable]:()=>{var e,t;const a=(0,ye.Ow)({...j,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:$v("field_source-type"),content:n},{name:$v("field_data-source"),content:r&&(0,d.jsx)("span",{title:r,children:(0,d.jsx)(er.K,{title:s||"",url:a})})}]},[x.EPathTypeExternalDataSource]:()=>{var e;return[{name:$v("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:$v("field_state"),content:(0,d.jsx)(gr,{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:Hv("overview-item-content"),children:e.content})})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:Hv("overview-title"),children:(0,d.jsx)(zr,{data:u})}),(0,d.jsx)(sv.u,{responsive:!0,children:v.map((e=>(0,d.jsx)(sv.u.Item,{name:e.name,children:e.content},e.name)))})]})})()}},w=()=>{g(Pu.triggerCollapse)},C=()=>{g(Pu.triggerExpand)},P=()=>{g(Pu.clear)},I=Av(r,a),A=()=>{const a=D(e)&&!_(t);return(0,d.jsxs)(n.Fragment,{children:[a&&Sv(m,{setActivePath:p},"m")(r,"preview"),(0,d.jsx)(mn.b,{text:I,view:"flat-secondary",title:$v("action_copySchemaPath")}),(0,d.jsx)(Ru,{onCollapse:w,onExpand:C,isCollapsed:v.collapsed,initialDirection:"bottom"})]})},R=()=>{const{Status:t,Reason:a}=null!==S&&void 0!==S?S:{};if(e){let t=e.replace("EPathType","");return _v(r,e)&&(t="domain"),(0,d.jsx)("div",{className:Hv("entity-type"),children:t})}let n;return t&&a&&(n=`${t}: ${a}`),(0,d.jsx)("div",{className:Hv("entity-type",{error:!0}),children:(0,d.jsx)(_a.B,{content:n,offset:{left:0}})})};return(0,d.jsx)(qv,{children:(0,d.jsxs)("div",{className:Hv(),children:[(0,d.jsx)("div",{className:Hv({hidden:l}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:Z.ED,onSplitStartDragAdditional:P,triggerCollapse:v.triggerCollapse,triggerExpand:v.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)(Gv,{tenantName:a,path:r}),(0,d.jsxs)("div",{className:Hv("info"),children:[(0,d.jsxs)("div",{className:Hv("sticky-top"),children:[(0,d.jsxs)("div",{className:Hv("info-header"),children:[(0,d.jsxs)("div",{className:Hv("info-title"),children:[R(),(0,d.jsx)("div",{className:Hv("path-name"),children:I})]}),(0,d.jsx)("div",{className:Hv("info-controls"),children:A()})]}),N()]}),(0,d.jsx)("div",{className:Hv("overview-wrapper"),children:E()})]})]})}),(0,d.jsxs)(ot.s,{className:Hv("actions"),gap:.5,children:[!l&&(0,d.jsx)(Kv,{}),(0,d.jsx)(Ru,{onCollapse:i,onExpand:o,isCollapsed:l,initialDirection:"left"})]})]})})}const eg=(0,c.cn)("tenant-page"),tg=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(Z.jX))});function ag(e){var t,l,c,u,m,p,g,y,x,b;const[f]=(0,X.Nt)(),[j,S]=n.useReducer(Au(Z.jX),void 0,tg),[{database:T,name:N,schema:E},w]=(0,s.useQueryParams)({database:s.StringParam,name:s.StringParam,schema:s.StringParam});n.useEffect((()=>{N&&!T&&w({database:N,name:void 0},"replaceIn")}),[T,N,w]);const C=null!==T&&void 0!==T?T:N;if(!C)throw new Error("Tenant name is not defined");const P=n.useRef();n.useEffect((()=>{if(P.current!==C){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(4024).then(a.bind(a,94024));e(C)})().catch(console.error),P.current=C}}),[C]);const I=(0,X.YQ)();n.useEffect((()=>{I((0,v.g)("tenant",{tenantName:C}))}),[C,I]);const D=null!==E&&void 0!==E?E:C,{currentData:A,error:_,isLoading:R}=G.useGetOverviewQuery({path:D,database:C},{pollingInterval:f}),k=(0,X.N4)((e=>(0,K.Tp)(e,D,C))),O=null!==(t=null===A||void 0===A||null===(l=A.PathDescription)||void 0===l||null===(c=l.Self)||void 0===c?void 0:c.PathType)&&void 0!==t?t:null===k||void 0===k||null===(u=k.PathDescription)||void 0===u||null===(m=u.Self)||void 0===m?void 0:m.PathType,M=null!==(p=null===A||void 0===A||null===(g=A.PathDescription)||void 0===g||null===(y=g.Self)||void 0===y?void 0:y.PathSubType)&&void 0!==p?p:null===k||void 0===k||null===(x=k.PathDescription)||void 0===x||null===(b=x.Self)||void 0===b?void 0:b.PathSubType,L=(0,ee.Pq)(_),[z,F]=n.useState(!0);z&&!R&&F(!1);const q=D||Lr("page.title");return(0,d.jsxs)("div",{className:eg(),children:[(0,d.jsx)(r.mg,{defaultTitle:`${q} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${q} \u2014 YDB Monitoring`}),(0,d.jsx)(o.r,{loading:z,children:(0,d.jsx)(i.A,{error:L?_:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:Z.jQ,defaultSizes:[25,75],triggerCollapse:j.triggerCollapse,triggerExpand:j.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{S(Pu.clear)},children:[(0,d.jsx)(Xv,{type:O,subType:M,tenantName:C,path:D,onCollapseSummary:()=>{S(Pu.triggerCollapse)},onExpandSummary:()=>{S(Pu.triggerExpand)},isCollapsed:j.collapsed}),(0,d.jsx)("div",{className:eg("main"),children:(0,d.jsx)(rv,{type:O,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:C,path:D})})]})})})]})}},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},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},66574:()=>{},2748:()=>{},52246:()=>{}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4905.8121426d.chunk.js b/ydb/core/viewer/monitoring/static/js/4905.8121426d.chunk.js new file mode 100644 index 0000000000..0d5e4ecd1c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4905.8121426d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4905],{28539:(e,t,a)=>{a.d(t,{T:()=>s.T});var s=a(53755)},52248:(e,t,a)=>{a.d(t,{a:()=>s.a});var s=a(47334)},56735:(e,t,a)=>{a.d(t,{Q:()=>j});var s=a(87184),i=a(92459),n=a(7435),l=a(46549),d=a(77506),o=a(56839),r=a(31684),c=a(12888),u=a(18863),v=a(25196),p=a(15132),h=a(33775),m=a(48372);const b=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"}'),g=(0,m.g4)("ydb-pDisk-info",{en:b});var f=a(60712);const x=(0,d.cn)("ydb-pdisk-info");function j({pDisk:e,nodeId:t,withPDiskPageLink:a,className:d}){const m=(0,c.X)(),[b,j,I,k]=function({pDisk:e,nodeId:t,withPDiskPageLink:a,isUserAllowedToMakeChanges:s}){const{PDiskId:d,Path:c,Guid:u,Category:m,Type:b,Device:j,Realtime:I,State:k,SerialNumber:y,TotalSize:N,AllocatedSize:T,StatusV2:w,NumActiveSlots:S,ExpectedSlotCount:D,LogUsedSize:z,LogTotalSize:A,SystemSize:P,SharedWithOs:C}=e||{},E=[];(0,n.f8)(m)&&E.push({label:g("type"),value:b}),(0,n.f8)(c)&&E.push({label:g("path"),value:c}),(0,n.f8)(u)&&E.push({label:g("guid"),value:u}),y&&E.push({label:g("serial-number"),value:y}),(0,n.f8)(C)&&E.push({label:g("shared-with-os"),value:g("yes")});const L=[];(0,n.f8)(w)&&L.push({label:g("drive-status"),value:w}),(0,n.f8)(k)&&L.push({label:g("state"),value:k}),(0,n.f8)(j)&&L.push({label:g("device"),value:(0,f.jsx)(h.k,{status:j})}),(0,n.f8)(I)&&L.push({label:g("realtime"),value:(0,f.jsx)(h.k,{status:I})});const V=[];V.push({label:g("space"),value:(0,f.jsx)(p.O,{value:T,capacity:N,formatValues:o.vX,colorizeProgress:!0})}),(0,n.f8)(S)&&(0,n.f8)(D)&&V.push({label:g("slots"),value:(0,f.jsx)(p.O,{value:S,capacity:D})}),(0,n.f8)(z)&&(0,n.f8)(A)&&V.push({label:g("log-size"),value:(0,f.jsx)(p.O,{value:z,capacity:A,formatValues:o.vX})}),(0,n.f8)(P)&&V.push({label:g("system-size"),value:(0,l.z3)({value:P})});const R=[];if((a||s)&&(0,n.f8)(d)&&(0,n.f8)(t)){const e=(0,i.Ck)(d,t),n=(0,r.ar)({nodeId:t,pDiskId:d});R.push({label:g("links"),value:(0,f.jsxs)("span",{className:x("links"),children:[a&&(0,f.jsx)(v.K,{title:g("pdisk-page"),url:e,external:!1}),s&&(0,f.jsx)(v.K,{title:g("developer-ui"),url:n})]})})}return[E,L,V,R]}({pDisk:e,nodeId:t,withPDiskPageLink:a,isUserAllowedToMakeChanges:m});return(0,f.jsxs)(s.s,{className:d,gap:2,direction:"row",wrap:!0,children:[(0,f.jsxs)(s.s,{direction:"column",gap:2,width:500,children:[(0,f.jsx)(u.z,{info:b,renderEmptyState:()=>null}),(0,f.jsx)(u.z,{info:I,renderEmptyState:()=>null})]}),(0,f.jsxs)(s.s,{direction:"column",gap:2,width:500,children:[(0,f.jsx)(u.z,{info:j,renderEmptyState:()=>null}),(0,f.jsx)(u.z,{info:k,renderEmptyState:()=>null})]})]})}},17594:(e,t,a)=>{a.d(t,{l:()=>r});var s=a(69024),i=a(4557),n=a(77506),l=a(16819),d=a(60712);const o=(0,n.cn)("ydb-resizeable-data-table");function r({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:n,...r}){const[c,u]=(0,l.a)(e),v=(0,s.j)(t,c),p={...a,defaultResizeable:!0};return(0,d.jsx)("div",{className:o(null,n),children:(0,d.jsx)(i.Ay,{theme:"yandex-cloud",columns:v,onResize:u,settings:p,...r})})}},80420:(e,t,a)=>{a.d(t,{$:()=>m});var s=a(40336),i=a(63291),n=a(92459),l=a(31684),d=a(12888),o=a(71661),r=a(10508),c=a(25196),u=a(48372);const v=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),p=(0,u.g4)("ydb-tablet-name-wrapper",{en:v});var h=a(60712);function m({tabletId:e,database:t}){const a=(0,d.X)(),u=(0,n.DM)(e,{database:t});return(0,h.jsx)(o.s,{disabled:!a,delayClosing:200,content:(0,h.jsx)(s.u,{responsive:!0,children:(0,h.jsx)(s.u.Item,{name:p("field_links"),children:(0,h.jsx)(c.K,{title:p("context_developer-ui"),url:(0,l._t)(e)})})}),placement:["top","bottom"],behavior:i.m.Immediate,children:(0,h.jsx)(r.c,{name:e.toString(),path:u,hasClipboardButton:!0,showStatus:!1})})}},27775:(e,t,a)=>{a.d(t,{i:()=>l});var s=a(47665),i=a(58267),n=a(60712);function l({state:e}){return(0,n.jsx)(s.J,{theme:(0,i._)(e),children:e})}},13758:(e,t,a)=>{a.r(t),a.d(t,{Node:()=>Te});var s=a(59284),i=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),p=a(31684),h=a(88655),m=a(12888);var b=a(18863),g=a(25196),f=a(60712);const x=(0,v.cn)("ydb-pool-usage"),j=e=>{let t="green";return e>60&&e<=80?t="yellow":e>80&&(t="red"),t},I=({data:e={}})=>{const{Threads:t,Name:a="Unknown",Usage:s=0}=e,i=s&&t,n=Math.floor(100*s),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}),i&&(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:j(l)}),style:{width:`${l}%`}})})]})};var k=a(15132),y=a(41826),N=a(48372);const T=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"}'),w=(0,N.g4)("ydb-node-info",{en:T}),S=(0,v.cn)("full-node-viewer"),D=({node:e,className:t})=>{var a,s,i,n,l;const d=function(e){const t=(0,h.E)();if((0,m.X)()){if(null!==t&&void 0!==t&&t.getNodeRef){const a=t.getNodeRef(e);return a?(0,p.Un)(a):void 0}if(null!==e&&void 0!==e&&e.NodeId){const t=(0,p.Kx)(e.NodeId);return(0,p.Un)(t)}}}(e),o=[];null!==e&&void 0!==e&&null!==(a=e.Tenants)&&void 0!==a&&a.length&&o.push({label:w("database"),value:e.Tenants[0]}),o.push({label:w("version"),value:null===e||void 0===e?void 0:e.Version},{label:w("uptime"),value:(0,f.jsx)(y.p,{StartTime:null===e||void 0===e?void 0:e.StartTime,DisconnectTime:null===e||void 0===e?void 0:e.DisconnectTime})},{label:w("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:w("rack"),value:null===e||void 0===e?void 0:e.Rack}),d&&o.push({label:w("links"),value:(0,f.jsx)(g.K,{url:d,title:w("developer-ui")})});const r=null===e||void 0===e||null===(s=e.Endpoints)||void 0===s?void 0:s.map((({Name:e,Address:t})=>({label:e,value:t}))),c=null===e||void 0===e||null===(i=e.LoadAveragePercents)||void 0===i?void 0:i.map(((e,t)=>{return{label:(a=t,[w("la-interval-1m"),w("la-interval-5m"),w("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)(b.z,{title:w("title.common-info"),className:S("section"),info:o}),r&&r.length?(0,f.jsx)(b.z,{title:w("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:w("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)(I,{data:e},t)))})]}),(0,f.jsx)(b.z,{title:w("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:w("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:w("no-data")})};var z=a(42655),A=a(44294),P=a(58389),C=a(92459),E=a(67028),L=a(40174),V=a(21334),R=a(78034);const q=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const a=e.SystemStateInfo[0];return(0,R.q1)(a)},O=V.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:q(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 F=a(90182),M=a(99936),U=a(71635),$=a(29819),G=a(905),Q=a.n(G),X=a(52248),K=a(53850),_=a(56839),H=a(27295);const B=(0,K.Mz)((e=>e),(e=>O.endpoints.getNodeStructure.select({nodeId:e}))),W=(0,K.Mz)((e=>e),((e,t)=>B(t)),((e,t)=>t(e).data)),J=(0,K.Mz)(((e,t)=>Number(t)),((e,t)=>W(e,t)),((e,t)=>{const a=null===t||void 0===t?void 0:t.StoragePools,s={};null===a||void 0===a||a.forEach((t=>{const a=t.Groups;null===a||void 0===a||a.forEach((a=>{var i;const n=null===(i=a.VDisks)||void 0===i?void 0:i.filter((t=>t.NodeId===e)).map(H.WT);null===n||void 0===n||n.forEach((a=>{var i;const n=(0,_.U9)(a.VDiskId),l=null===(i=a.PDisk)||void 0===i?void 0:i.PDiskId;s[String(l)]||(s[String(l)]={vDisks:{},...a.PDisk}),s[String(l)].vDisks[n]={...a,PDiskId:l,NodeId:e,StoragePoolName:t.Name}}))}))}));return Object.keys(s).reduce(((e,t)=>{const a=s[t].vDisks,i=Object.keys(a).reduce(((e,t,s)=>(e.push({...a[t],id:t,order:s}),e)),[]);return e[t]={...s[t],vDisks:i},e}),{})}));var Y=a(112),Z=a(45720),ee=a(4557),te=a(84476),ae=a(99991),se=a(84375),ie=a(33705),ne=a(56735),le=a(33775),de=a(67440),oe=a(54090),re=a(67375),ce=a(7435),ue=a(76086),ve=a(29971);const pe=(0,v.cn)("kv-node-structure");function he({label:e,value:t,className:a}){return(0,f.jsxs)("span",{className:pe("pdisk-title-item",a),children:[e&&(0,f.jsxs)("span",{className:pe("pdisk-title-item-label"),children:[e,":"]}),(0,f.jsx)("span",{className:pe("pdisk-title-item-value"),children:t})]})}const me=(0,v.cn)("kv-node-structure");var be=function(e){return e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info",e}(be||{});const ge={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function fe({pDiskId:e,selectedVdiskId:t,nodeId:a,withDeveloperUILink:s}){return[{name:be.slotId,header:ge[be.slotId],width:100,render:({row:i})=>{const n=i.VDiskSlotId;let l=null;return(0,ce.f8)(a)&&(0,ce.f8)(e)&&(0,ce.f8)(n)&&(l=(0,p.Wg)({nodeId:a,pDiskId:e,vDiskSlotId:n})),(0,f.jsxs)("div",{className:me("vdisk-id",{selected:i.id===t}),children:[(0,f.jsx)("span",{children:n}),l&&s?(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:Y.A})}):null]})},align:ee.Ay.LEFT},{name:be.VDiskState,header:ge[be.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:be.Size,header:ge[be.Size],width:170,render:({row:e})=>(0,f.jsx)(k.O,{value:e.AllocatedSize,capacity:Number(e.AllocatedSize)+Number(e.AvailableSize),formatValues:_.vX,colorizeProgress:!0}),sortAccessor:e=>Number(e.AllocatedSize),align:ee.Ay.CENTER},{name:be.Info,header:ge[be.Info],width:70,render:({row:e})=>(0,f.jsx)(se.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:i,unfolded:n}){const l=(0,m.X)(),[d,o]=s.useState(null!==n&&void 0!==n&&n),{TotalSize:r=0,AvailableSize:c=0,Device:u,PDiskId:v,Type:p,vDisks:h}=t,b=Number(r),g=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)(he,{label:"PDiskID",value:v,className:me("pdisk-title-id")}),(0,f.jsx)(he,{value:p,className:me("pdisk-title-type")}),(0,f.jsx)(k.O,{value:b-g,capacity:b,formatValues:_.vX,colorizeProgress:!0,className:me("pdisk-title-size")}),(0,f.jsx)(he,{label:"VDisks",value:h.length})]}),(0,f.jsx)(te.$,{onClick:d?()=>{o(!1)}:()=>{o(!0)},view:"flat-secondary",children:(0,f.jsx)(ie.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:i,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:h,columns:fe({nodeId:i,pDiskId:v,selectedVdiskId:a,withDeveloperUILink:l}),settings:{...ue.N3,dynamicRender:!1},rowClassName:e=>e.id===a?me("selected-vdisk"):""})]})]}))]})}const je=(0,v.cn)("kv-node-structure");function Ie({type:e,id:t}){return`${e}-${t}`}const ke=function({nodeId:e,className:t}){const a=(0,F.N4)((t=>J(t,e))),[i]=(0,F.Nt)(),{currentData:n,isFetching:l,error:d}=O.useGetNodeStructureQuery({nodeId:e},{pollingInterval:i}),r=l&&void 0===n,[{pdiskId:u,vdiskId:v}]=(0,o.useQueryParams)({pdiskId:o.StringParam,vdiskId:o.StringParam}),p=s.useRef(null),h=s.useRef(!1);return s.useEffect((()=>{if(!Q()(a)&&!h.current&&p.current&&u){const t=document.getElementById(Ie({type:"pdisk",id:u}));let s=0;if(v){var e;const t=null===(e=a[u])||void 0===e?void 0:e.vDisks,i=null===t||void 0===t?void 0:t.find((e=>e.id===v)),n=i?document.querySelector(".data-table"):void 0,l=(null===i||void 0===i?void 0:i.order)||0;n&&(s+=n.offsetTop+40*l)}t&&(p.current.scrollTo({behavior:"smooth",top:s||t.offsetTop}),h.current=!0)}}),[a,u,v]),(0,f.jsxs)("div",{className:je(),ref:p,children:[d?(0,f.jsx)(c.o,{error:d,className:je("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:Ie({type:"pdisk",id:t}),unfolded:u===t,selectedVdiskId:v,nodeId:e},t))):"There is no information about node structure."})()})]})},ye=(0,v.cn)("node"),Ne="Storage";function Te(){var e,t;const a=s.useRef(null),i=(0,F.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),p=$.IK.parse(u),[h]=(0,F.Nt)(),m=r?{nodeId:r}:n.hT,{currentData:b,isLoading:g,error:x}=O.useGetNodeInfoQuery(m,{pollingInterval:h}),j=(0,E.Pm)(),I=(0,E.c2)(),k=g||!j,y=null===b||void 0===b||null===(e=b.Roles)||void 0===e?void 0:e.find((e=>e===Ne)),{activeTab:N,nodeTabs:T}=s.useMemo((()=>{var e;let t=y?$.GX:$.GX.filter((e=>"storage"!==e.id));I&&(t=t.filter((e=>"structure"!==e.id)));return{activeTab:null!==(e=t.find((({id:e})=>e===p)))&&void 0!==e?e:t[0],nodeTabs:t}}),[y,I,p]),w=(null===b||void 0===b||null===(t=b.Tenants)||void 0===t?void 0:t[0])||(null===v||void 0===v?void 0:v.toString());return s.useEffect((()=>{g||i((0,L.g)("node",{tenantName:w,nodeRole:y?"Storage":"Compute",nodeId:r}))}),[i,w,r,g,y]),(0,f.jsxs)("div",{className:ye(null),ref:a,children:[(0,f.jsx)(we,{node:b,activeTabTitle:N.title}),(0,f.jsx)(Se,{node:b,loading:k}),(0,f.jsx)(De,{node:b}),x?(0,f.jsx)(c.o,{error:x,className:ye("error")}):null,(0,f.jsx)(ze,{node:b,loading:k}),r?(0,f.jsx)(Ae,{nodeId:r,tenantName:w,activeTabId:N.id,tabs:T,parentContainer:a}):null]})}function we({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,s=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,s],className:ye("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:ye("title")})}function ze({node:e,loading:t}){return t?(0,f.jsx)(z.y,{className:ye("info"),rows:10}):(0,f.jsx)(D,{node:e,className:ye("info")})}function Ae({nodeId:e,tenantName:t,activeTabId:a,tabs:n,parentContainer:l}){return(0,f.jsxs)(s.Fragment,{children:[(0,f.jsx)("div",{className:ye("tabs"),children:(0,f.jsx)(i.t,{size:"l",items:n,activeTab:a,wrapTo:({id:a},s)=>{const i=(0,$.vI)(e,{database:t},a);return(0,f.jsx)(A.E,{to:i,children:s},a)}})}),(()=>{switch(a){case"storage":return(0,f.jsx)(M.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}})()]})}},71635:(e,t,a)=>{a.d(t,{C:()=>g});var s=a(44992),i=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,i.Mz)((e=>e),(e=>r.endpoints.getTabletsInfo.select(e)),{argsMemoize:i.i5,argsMemoizeOptions:{equalityCheck:l()}}),u=(0,i.Mz)((e=>e),((e,t)=>c(t)),((e,t)=>t(e).data)),v=(0,i.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 s=void 0===e.NodeId||null===(a=t.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:s}})):e.TabletStateInfo:[]));var p=a(7435),h=a(90182),m=a(88616),b=a(60712);function g({nodeId:e,path:t,database:a}){const[i]=(0,h.Nt)();let n={};(0,p.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?s.hT:n,{pollingInterval:i}),o=(0,h.N4)((e=>v(e,n)));return(0,b.jsx)(m.Q,{tablets:o,database:a,loading:l,error:d})}},88616:(e,t,a)=>{a.d(t,{Q:()=>z});var s=a(59284),i=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),p=a(17594),h=a(41775),m=a(89073),b=a(80420),g=a(27775),f=a(41826),x=a(21545),j=a(6354),I=a(76086),k=a(12888),y=a(29819),N=a(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"}'),w=(0,N.g4)("ydb-tablets",{en:T});var S=a(60712);function D(e){const t=e.State===j.r.Stopped,a=(0,k.X)(),[s]=x.X.useKillTabletMutation(),n=e.TabletId;return n?(0,S.jsx)(o.B,{buttonView:"outlined",buttonTitle:w("dialog.kill-header"),dialogHeader:w("dialog.kill-header"),dialogText:w("dialog.kill-text"),onConfirmAction:()=>s({id:n}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:w(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,S.jsx)(l.I,{data:i.A})}):null}function z({database:e,tablets:t,loading:a,error:i}){const[{tabletsSearch:l},o]=(0,d.useQueryParams)({tabletsSearch:d.StringParam}),x=s.useMemo((()=>function({database:e}){return[{name:"Type",width:150,get header(){return w("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 w("Tablet")},render:({row:t})=>t.TabletId?(0,S.jsx)(b.$,{tabletId:t.TabletId,database:e}):I.Pd},{name:"State",get header(){return w("State")},render:({row:e})=>(0,S.jsx)(g.i,{state:e.State})},{name:"NodeId",get header(){return w("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,y.vI)(e.NodeId);return(0,S.jsx)(v.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return w("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 w("Generation")},align:"right"},{name:"Uptime",get header(){return w("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]),j=s.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)(h.v,{placeholder:w("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:w("controls.entities-count-label"),loading:a,total:t.length,current:j.length})]}),i?(0,S.jsx)(u.o,{error:i}):null,(0,S.jsx)(m.L.Table,{loading:a,children:(0,S.jsx)(p.l,{columns:x,data:j,settings:I.N3,emptyDataMessage:w("noTabletsData")})})]})}},21545:(e,t,a)=>{a.d(t,{X:()=>i});var s=a(78034);const i=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[i,n,l]=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})]),d=(0,s.nN)(l),o=Object.keys(n).reduce(((e,t)=>{var a;const s=null===(a=n[t])||void 0===a?void 0:a.TabletStateInfo;if(s&&s.length){var i;const a=s.find((e=>e.Leader))||s[0],{ChangeTime:n,Generation:l,State:o,Leader:r,FollowerId:c}=a,u=d&&t?null===(i=d.get(Number(t)))||void 0===i?void 0:i.Host:void 0;"Dead"!==o&&e.push({nodeId:t,generation:l,changeTime:n,state:o,leader:r,followerId:c,fqdn:u})}return e}),[]),{TabletStateInfo:r=[]}=i,[c={}]=r,{TabletId:u}=c;return{data:{id:u,data:c,history:o}}}catch(i){return{error:i}}},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:s,PathId:i}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${s}:${i}`}}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(s){return{error:s}}},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"})},76938:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(59284);const i=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/5168.5c3dfc04.chunk.js b/ydb/core/viewer/monitoring/static/js/5168.5c3dfc04.chunk.js new file mode 100644 index 0000000000..97c89dd8b1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5168.5c3dfc04.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5168],{22983:(e,s,t)=>{t.d(s,{B:()=>c});var n=t(59284),a=t(84476),l=t(84375),i=t(55974),o=t(42829),r=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:g="right",popoverDisabled:b=!0}){const[y,j]=n.useState(!1),[N,k]=n.useState(!1),[w,S]=n.useState(!1),C=()=>(0,r.jsx)(a.$,{onClick:()=>j(!0),view:v,disabled:h,loading:!h&&N,className:p,title:m,children:e});return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(i.g,{visible:y,header:c,text:d,withRetry:w,retryButtonText:u,onConfirm:async e=>{k(!0),await s(e)},onConfirmActionSuccess:async()=>{S(!1);try{await(null===t||void 0===t?void 0:t())}finally{k(!1)}},onConfirmActionError:e=>{S((0,o.D)(e)),k(!1)},onClose:()=>{j(!1)}}),x?(0,r.jsx)(l.A,{content:f,placement:g,disabled:b,children:C()}):C()]})}},55974:(e,s,t)=>{t.d(s,{g:()=>f});var n=t(59284),a=t(18677),l=t(71153),i=t(74321),o=t(2198),r=t(99991),c=t(89954),d=t(77506),u=t(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"}'),v=(0,u.g4)("ydb-critical-action-dialog",{en:h});var m=t(60712);const p=(0,d.cn)("ydb-critical-dialog"),x=e=>e.data&&"issues"in e.data&&e.data.issues?(0,m.jsx)(c.O,{hideSeverity:!0,data:e.data}):403===e.status?v("no-rights-error"):e.statusText?e.statusText:v("default-error");function f({visible:e,header:s,text:t,withRetry:c,retryButtonText:d,withCheckBox:u,onClose:h,onConfirm:f,onConfirmActionSuccess:g,onConfirmActionError:b}){const[y,j]=n.useState(!1),[N,k]=n.useState(),[w,S]=n.useState(!1),C=async e=>(j(!0),f(e).then((()=>{g(),h()})).catch((e=>{b(e),k(e)})).finally((()=>{j(!1)})));return(0,m.jsx)(o.l,{open:e,hasCloseButton:!1,className:p(),size:"s",onClose:h,onTransitionExited:()=>{k(void 0),S(!1)},children:N?(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(o.l.Header,{caption:s}),(0,m.jsx)(o.l.Body,{className:p("body"),children:(0,m.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:p("error-icon"),children:(0,m.jsx)(a.A,{width:"24",height:"22"})}),x(N)]})}),(0,m.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:c?d||v("button-retry"):void 0,textButtonCancel:v("button-close"),onClickButtonApply:()=>C(!0),onClickButtonCancel:h})]}):(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(o.l.Header,{caption:s}),(0,m.jsxs)(o.l.Body,{className:p("body"),children:[(0,m.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:p("warning-icon"),children:(0,m.jsx)(r.I,{data:l.A,size:24})}),t]}),u?(0,m.jsx)(i.S,{checked:w,onUpdate:S,children:v("checkbox-text")}):null]}),(0,m.jsx)(o.l.Footer,{loading:y,preset:"default",textButtonApply:v("button-confirm"),textButtonCancel:v("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!w},onClickButtonCancel:h,onClickButtonApply:()=>C()})]})})}},42829:(e,s,t)=>{t.d(s,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,s,t)=>{t.d(s,{$:()=>r});var n=t(54090),a=t(77506),l=t(33775),i=t(60712);const o=(0,a.cn)("ydb-entity-page-title");function r({entityName:e,status:s=n.m.Grey,id:t,className:a}){return(0,i.jsxs)("div",{className:o(null,a),children:[(0,i.jsx)("span",{className:o("prefix"),children:e}),(0,i.jsx)(l.k,{className:o("icon"),status:s,size:"s"}),t]})}},42655:(e,s,t)=>{t.d(s,{y:()=>d});var n=t(59284),a=t(89169),l=t(77506),i=t(66781),o=t(60712);const r=(0,l.cn)("ydb-info-viewer-skeleton"),c=()=>(0,o.jsxs)("div",{className:r("label"),children:[(0,o.jsx)(a.E,{className:r("label__text")}),(0,o.jsx)("div",{className:r("label__dots")})]}),d=({rows:e=8,className:s,delay:t=600})=>{const[l]=(0,i.y)(t);let d=(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(c,{}),(0,o.jsx)(a.E,{className:r("value")})]});return l||(d=null),(0,o.jsx)("div",{className:r(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:r("row"),children:d},`skeleton-row-${s}`)))})}},58389:(e,s,t)=>{t.d(s,{B:()=>u});var n=t(87184),a=t(77506),l=t(90053),i=t(70043),o=t(60712);const r=(0,a.cn)("ydb-page-meta"),c="\xa0\xa0\xb7\xa0\xa0";function d({items:e,loading:s}){return(0,o.jsx)("div",{className:r("info"),children:s?(0,o.jsx)(i.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join(c)})}function u({className:e,...s}){return(0,o.jsxs)(n.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(d,{...s}),(0,o.jsx)(l.E,{})]})}},70043:(e,s,t)=>{t.d(s,{E:()=>i});var n=t(89169),a=t(66781),l=t(60712);const i=({delay:e=600,className:s})=>{const[t]=(0,a.y)(e);return t?(0,l.jsx)(n.E,{className:s}):null}},67440:(e,s,t)=>{t.d(s,{E:()=>y});t(59284);var n=t(92459),a=t(7435),l=t(77506),i=t(56839),o=t(31684),r=t(7187),c=t(12888),d=t(41650),u=t(60073),h=t(25196),v=t(15132),m=t(33775),p=t(48372);const x=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"}'),f=(0,p.g4)("ydb-vDisk-info",{en:x});var g=t(60712);const b=(0,l.cn)("ydb-vdisk-info");function y({data:e,withVDiskPageLink:s,withTitle:t,...l}){var r,p;const x=(0,c.X)(),{AllocatedSize:y,DiskSpace:N,FrontQueues:k,Guid:w,Replicated:S,VDiskState:C,VDiskSlotId:_,Kind:A,SatisfactionRank:I,AvailableSize:E,HasUnreadableBlobs:B,IncarnationGuid:R,InstanceGuid:D,StoragePoolName:F,ReadThroughput:O,WriteThroughput:z,PDiskId:L,NodeId:T}=e||{},P=[];var V,G;((0,a.f8)(_)&&P.push({label:f("slot-id"),value:_}),(0,a.f8)(F)&&P.push({label:f("pool-name"),value:F}),(0,a.f8)(C)&&P.push({label:f("state-status"),value:C}),Number(y)>=0&&Number(E)>=0&&P.push({label:f("size"),value:(0,g.jsx)(v.O,{value:y,capacity:Number(y)+Number(E),formatValues:i.vX,colorizeProgress:!0})}),(0,a.f8)(A)&&P.push({label:f("kind"),value:A}),(0,a.f8)(w)&&P.push({label:f("guid"),value:w}),(0,a.f8)(R)&&P.push({label:f("incarnation-guid"),value:R}),(0,a.f8)(D)&&P.push({label:f("instance-guid"),value:D}),(0,a.f8)(S)&&P.push({label:f("replication-status"),value:f(S?"yes":"no")}),(0,a.f8)(N)&&P.push({label:f("space-status"),value:(0,g.jsx)(m.k,{status:N})}),(0,a.f8)(null===I||void 0===I||null===(r=I.FreshRank)||void 0===r?void 0:r.Flag))&&P.push({label:f("fresh-rank-satisfaction"),value:(0,g.jsx)(m.k,{status:null===I||void 0===I||null===(V=I.FreshRank)||void 0===V?void 0:V.Flag})});(0,a.f8)(null===I||void 0===I||null===(p=I.LevelRank)||void 0===p?void 0:p.Flag)&&P.push({label:f("level-rank-satisfaction"),value:(0,g.jsx)(m.k,{status:null===I||void 0===I||null===(G=I.LevelRank)||void 0===G?void 0:G.Flag})});(0,a.f8)(k)&&P.push({label:f("front-queues"),value:(0,g.jsx)(m.k,{status:k})}),(0,a.f8)(B)&&P.push({label:f("has-unreadable-blobs"),value:f(B?"yes":"no")}),(0,a.f8)(O)&&P.push({label:f("read-throughput"),value:(0,d.O4)(O)}),(0,a.f8)(z)&&P.push({label:f("write-throughput"),value:(0,d.O4)(z)});if((0,a.f8)(L)&&(0,a.f8)(T)&&(0,a.f8)(_)){const e=[];if(s){const s=(0,n.yX)(_,L,T);e.push((0,g.jsx)(h.K,{title:f("vdisk-page"),url:s,external:!1},s))}if(x){const s=(0,o.Wg)({nodeId:T,pDiskId:L,vDiskSlotId:_});e.push((0,g.jsx)(h.K,{title:f("developer-ui"),url:s},s))}e.length&&P.push({label:f("links"),value:(0,g.jsx)("div",{className:b("links"),children:e})})}const $=e&&t?(0,g.jsx)(j,{data:e}):null;return(0,g.jsx)(u.z_,{info:P,title:$,...l})}function j({data:e}){return(0,g.jsxs)("div",{className:b("title"),children:[f("vdiks-title"),(0,g.jsx)(m.k,{status:(0,r.XY)(e.Severity)}),e.StringifiedId]})}},89954:(e,s,t)=>{t.d(s,{O:()=>C});var n=t(59284),a=t(45720),l=t(16929),i=t(71153),o=t(18677),r=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 g=(0,h.cn)("kv-shorty-string");function b({value:e="",limit:s=200,strict:t=!1,displayLength:a=!0,render:l=e=>e,onToggle:i,expandLabel:o=x("default_expand_label"),collapseLabel:r=x("default_collapse_label")}){const[c,u]=n.useState(!1),h=(c?r:o)+(a&&!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:g(),children:[l(m),v?(0,f.jsx)(d.N,{className:g("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 k=(0,h.cn)("kv-result-issues"),w=(0,h.cn)("kv-issues"),S=(0,h.cn)("kv-issue");function C({data:e,hideSeverity:s}){const[t,a]=n.useState(!1),l="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(l)&&l.length>0;return(0,f.jsxs)("div",{className:k(),children:[(0,f.jsxs)("div",{className:k("error-message"),children:[(()=>{let t;if("string"===typeof e)t=e;else{var a,l;const i=N(null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.severity);t=(0,f.jsxs)(n.Fragment,{children:[s?null:(0,f.jsxs)(n.Fragment,{children:[(0,f.jsx)(D,{severity:i})," "]}),(0,f.jsx)("span",{className:k("error-message-text"),children:null===e||void 0===e||null===(l=e.error)||void 0===l?void 0:l.message})]})}return t})(),i&&(0,f.jsx)(r.$,{view:"normal",onClick:()=>a(!t),children:t?"Hide details":"Show details"})]}),i&&t&&(0,f.jsx)(_,{hideSeverity:s,issues:l})]})}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:w(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[a,l]=n.useState(!0),i=N(e.severity),o=e.issues,d=Array.isArray(o)&&o.length>0,u=a?"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)(r.$,{view:"flat-secondary",onClick:()=>l(!a),className:S("arrow-toggle"),children:(0,f.jsx)(c.I,{direction:u,size:16})}),s?null:(0,f.jsx)(D,{severity:i}),(0,f.jsx)(I,{issue:e}),e.issue_code?(0,f.jsxs)("span",{className:S("code"),children:["Code: ",e.issue_code]}):null]}),d&&a&&(0,f.jsx)("div",{className:S("issues"),children:(0,f.jsx)(E,{issues:o,level:t+1,expanded:a})})]})}function I({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,a=()=>(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)(b,{value:e.message,expandLabel:"Show full message"})})]}),{row:l,column:i}=null!==(s=e.position)&&void 0!==s?s:{};if(!((0,y.kf)(l)&&n))return a();return(0,f.jsx)(d.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:l,column:null!==i&&void 0!==i?i:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:a()})}function E(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 B={S_INFO:a.A,S_WARNING:l.A,S_ERROR:i.A,S_FATAL:o.A},R=(0,h.cn)("yql-issue-severity");function D({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:B[e]}),(0,f.jsx)("span",{className:R("title"),children:s})]})}},18677:(e,s,t)=>{t.d(s,{A:()=>a});var n=t(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"}))},74321:(e,s,t)=>{t.d(s,{S:()=>c});var n=t(59284),a=t(64222),l=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 o(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 r=(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:g}=(0,a.v)(e),b=u||h,y=n.createElement("span",{className:r("indicator")},n.createElement("span",{className:r("icon"),"aria-hidden":!0},c?n.createElement(i,{className:r("icon-svg",{type:"dash"})}):n.createElement(o,{className:r("icon-svg",{type:"tick"})})),n.createElement("input",Object.assign({},g,{className:r("control")})),n.createElement("span",{className:r("outline")}));return n.createElement(l.m,{ref:s,title:v,style:m,size:t,disabled:d,className:r({size:t,disabled:d,indeterminate:c,checked:f},p),qa:x,control:y},b)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/535.688ceefb.chunk.js b/ydb/core/viewer/monitoring/static/js/535.688ceefb.chunk.js new file mode 100644 index 0000000000..9fe7e34226 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/535.688ceefb.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[535],{90053:(e,t,a)=>{a.d(t,{E:()=>v});var n=a(8873),l=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)(l.$,{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)(l.$.Icon,{children:(0,h.jsx)(n.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")})]})]})}},22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),l=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,j]=n.useState(!1),[w,N]=n.useState(!1),[S,T]=n.useState(!1),I=()=>(0,r.jsx)(l.$,{onClick:()=>j(!0),view:m,disabled:h,loading:!h&&w,className:p,title:v,children:e});return(0,r.jsxs)(n.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:()=>{j(!1)}}),b?(0,r.jsx)(s.A,{content:g,placement:x,disabled:f,children:I()}):I()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>g});var n=a(59284),l=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,j]=n.useState(!1),[w,N]=n.useState(),[S,T]=n.useState(!1),I=async e=>(j(!0),g(e).then((()=>{x(),h()})).catch((e=>{f(e),N(e)})).finally((()=>{j(!1)})));return(0,v.jsx)(o.l,{open:e,hasCloseButton:!1,className:p(),size:"s",onClose:h,onTransitionExited:()=>{N(void 0),T(!1)},children:w?(0,v.jsxs)(n.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)(l.A,{width:"24",height:"22"})}),b(w)]})}),(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)(n.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()})]})})}},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,t,a)=>{a.d(t,{$:()=>r});var n=a(54090),l=a(77506),s=a(33775),i=a(60712);const o=(0,l.cn)("ydb-entity-page-title");function r({entityName:e,status:t=n.m.Grey,id:a,className:l}){return(0,i.jsxs)("div",{className:o(null,l),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 n=a(67884),l=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?(j=u,(0,d.jsx)(n.N,{target:"_blank",href:j,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)(n.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)(l.b,{text:t,size:"xs",view:"normal",className:c("clipboard-button",{visible:x})})})]})]});var j}},58389:(e,t,a)=>{a.d(t,{B:()=>u});var n=a(87184),l=a(77506),s=a(90053),i=a(70043),o=a(60712);const r=(0,l.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)(n.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(c,{...t}),(0,o.jsx)(s.E,{})]})}},17594:(e,t,a)=>{a.d(t,{l:()=>d});var n=a(69024),l=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,n.j)(t,c),m={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:r(null,s),children:(0,o.jsx)(l.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:m,...d})})}},70043:(e,t,a)=>{a.d(t,{E:()=>i});var n=a(89169),l=a(66781),s=a(60712);const i=({delay:e=600,className:t})=>{const[a]=(0,l.y)(e);return a?(0,s.jsx)(n.E,{className:t}):null}},33775:(e,t,a)=>{a.d(t,{k:()=>h});var n=a(45720),l=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]:n.A,[o.m.Yellow]:l.A,[o.m.Orange]:s.A,[o.m.Red]:l.A};function h({status:e=o.m.Grey,size:t="s",mode:a="color",className:n}){const l={state:e.toLowerCase(),size:t};return"icons"===a&&e in u?(0,d.jsx)(i.I,{className:c("status-icon",l,n),data:u[e]}):(0,d.jsx)("div",{className:c("status-color",l,n)})}},79737:(e,t,a)=>{a.d(t,{A:()=>o,X:()=>r});var n=a(5874),l=a(77506),s=a(60712);const i=(0,l.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,...l}){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,l=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":l})},className:i("table",{width:t},e),...l})})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var n=a(47665),l=a(58267),s=a(60712);function i({state:e}){return(0,s.jsx)(n.J,{theme:(0,l._)(e),children:e})}},47584:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>be});var n=a(59284),l=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),j=a(77506),w=a(76086),N=a(90182),S=a(12888),T=a(76938),I=a(66528);const _=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"}'),R=(0,D.g4)("ydb-tablet-page",{en:E});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)(l.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)(n.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.A}),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),q=a(31684),M=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,D.g4)("ydb-tablet-info",{en:$}),K=(0,j.cn)("ydb-tablet-info"),V=({tablet:e})=>{const t=(0,S.X)(),{ChangeTime:a,Generation:n,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:n},{label:Y("field_node"),value:(0,F.jsx)(O.N_,{className:K("link"),to:(0,M.vI)(String(i)),children:i})}),s&&m.push({label:Y("field_follower"),value:s});return(0,F.jsxs)(l.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)(l.s,{direction:"column",gap:3,children:[(0,F.jsx)(G.K,{title:Y("field_developer-ui-app"),url:(0,q._t)(c,"app")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-counters"),url:(0,q._t)(c,"counters")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-executor"),url:(0,q._t)(c,"executorInternals")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-state"),url:(0,q._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,D.g4)("ydb-tablet-storage-info",{en:Z}),te=(0,j.cn)("ydb-tablet-storage-info");function ae(e,t){const a=e.getValue(),n="function"===typeof t?t(a):a;return(0,F.jsx)("div",{className:te("metrics-cell"),children:n})}function ne({row:e,name:t,hasExpand:a}){const n=e.getCanExpand();return(0,F.jsxs)(l.s,{gap:1,alignItems:"flex-start",className:te("name-wrapper"),children:[n&&(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&&!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 o of l){var i;const e=o.Channel,t=o.History;if(!e||!t||!t.length)continue;const n=[...t];n.reverse();const[l,...r]=n,d={...l,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=n.useMemo((()=>l.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[l]),i=n.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)(ne,{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:l,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,M.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,j.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}),j=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;n.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,D=[];return _&&D.push(`${R("tablet.meta-database")}: ${_}`),k&&D.push(k),!1===A&&D.push(R("tablet.meta-follower").toUpperCase()),(0,F.jsxs)(l.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||w.QM}`})}),(0,F.jsx)(b.B,{items:D}),(0,F.jsxs)(p.r,{loading:j,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 n=!Object.keys(t).length,{Overall:s,HiveId:i}=t;return(0,F.jsxs)(u.q,{title:R("emptyState"),className:he("placeholder"),isEmpty:n,children:[(0,F.jsxs)(l.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),n.useEffect((()=>{o!==h&&c({activeTab:h},"replaceIn")}),[o,h,c]),(0,F.jsxs)(l.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 n=(0,g.DM)(e,{...r,activeTab:t.id});return(0,F.jsx)(v.E,{to:n,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:n,error:l,isFetching:s}=f.X.useGetAdvancedTableInfoQuery({id:e,hiveId:t},{pollingInterval:a}),i=s&&void 0===n;return(0,F.jsxs)(p.r,{loading:i,size:"l",children:[l?(0,F.jsx)(m.o,{error:l}):null,n?(0,F.jsx)(le,{data:n}):null]})}},89954:(e,t,a)=>{a.d(t,{O:()=>I});var n=a(59284),l=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:l=!0,render:s=e=>e,onToggle:i,expandLabel:o=b("default_expand_label"),collapseLabel:r=b("default_collapse_label")}){const[d,u]=n.useState(!1),h=(d?r:o)+(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===i||void 0===i||i()},children:h}):null]})}var y=a(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function w(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[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,l]=n.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 l,s;const i=w(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)(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:()=>l(!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 n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,g.jsx)("div",{className:S(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),i=w(e.severity),o=e.issues,c=Array.isArray(o)&&o.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)(r.$,{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)(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&&l&&(0,g.jsx)("div",{className:T("issues"),children:(0,g.jsx)(k,{issues:o,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:i}=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!==i&&void 0!==i?i: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:i.A,S_FATAL:o.A},E=(0,h.cn)("yql-issue-severity");function R({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})]})}},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},{signal:a})=>{try{const[l,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,n.nN)(i),r=Object.keys(s).reduce(((e,t)=>{var a;const n=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(n&&n.length){var l;const a=n.find((e=>e.Leader))||n[0],{ChangeTime:s,Generation:i,State:r,Leader:d,FollowerId:c}=a,u=o&&t?null===(l=o.get(Number(t)))||void 0===l?void 0:l.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=[]}=l,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:r}}}catch(l){return{error:l}}},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"})},16819:(e,t,a)=>{a.d(t,{a:()=>i});var n=a(59284),l=a(69024),s=a(59001);const i=e=>{const t=n.useCallback((()=>e?s.f.readUserSettingsValue(e,{}):{}),[e]),a=n.useCallback((t=>{e&&s.f.setUserSettingsValue(e,t)}),[e]);return(0,l.a)({saveSizes:a,getSizes:t})}},58267:(e,t,a)=>{a.d(t,{P:()=>i,_:()=>o});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},i=e=>{if(!e)return n.m.Grey;return t=e,Object.values(n.m).includes(t)?e:s[e];var t};function o(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"}}},16929:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(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:"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:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(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 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,a)=>{a.d(t,{A:()=>l});var n=a(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:"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"}))},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})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/535.ee345954.chunk.js b/ydb/core/viewer/monitoring/static/js/535.ee345954.chunk.js deleted file mode 100644 index f24b8b0f8b..0000000000 --- a/ydb/core/viewer/monitoring/static/js/535.ee345954.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[535],{90053:(e,t,a)=>{a.d(t,{E:()=>v});var n=a(8873),l=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}){const t=(0,r.YQ)(),[a,o]=(0,r.Nt)();return(0,h.jsxs)("div",{className:m(null,e),children:[(0,h.jsx)(l.$,{view:"flat-secondary",onClick:()=>{t(i.F.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(l.$.Icon,{children:(0,h.jsx)(n.A,{})})}),(0,h.jsxs)(s.l,{value:[String(a)],onUpdate:e=>{o(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")})]})]})}},22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),l=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,j]=n.useState(!1),[w,N]=n.useState(!1),[S,T]=n.useState(!1),_=()=>(0,r.jsx)(l.$,{onClick:()=>j(!0),view:m,disabled:h,loading:!h&&w,className:p,title:v,children:e});return(0,r.jsxs)(n.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:()=>{j(!1)}}),b?(0,r.jsx)(s.A,{content:g,placement:x,disabled:f,children:_()}):_()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>g});var n=a(59284),l=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,j]=n.useState(!1),[w,N]=n.useState(),[S,T]=n.useState(!1),_=async e=>(j(!0),g(e).then((()=>{x(),h()})).catch((e=>{f(e),N(e)})).finally((()=>{j(!1)})));return(0,v.jsx)(o.l,{open:e,hasCloseButton:!1,className:p(),size:"s",onClose:h,onTransitionExited:()=>{N(void 0),T(!1)},children:w?(0,v.jsxs)(n.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)(l.A,{width:"24",height:"22"})}),b(w)]})}),(0,v.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>_(!0),onClickButtonCancel:h})]}):(0,v.jsxs)(n.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:()=>_()})]})})}},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,t,a)=>{a.d(t,{$:()=>o});var n=a(77506),l=a(33775),s=a(60712);const i=(0,n.cn)("ydb-entity-page-title");function o({entityName:e,status:t,id:a,className:n}){return(0,s.jsxs)("div",{className:i(null,n),children:[(0,s.jsx)("span",{className:i("prefix"),children:e}),(0,s.jsx)(l.k,{className:i("icon"),status:t,size:"s"}),a]})}},10508:(e,t,a)=>{a.d(t,{c:()=>u});var n=a(67884),l=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?(j=u,(0,d.jsx)(n.N,{target:"_blank",href:j,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)(n.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)(l.b,{text:t,size:"xs",view:"normal",className:c("clipboard-button",{visible:x})})})]})]});var j}},58389:(e,t,a)=>{a.d(t,{B:()=>c});var n=a(87184),l=a(77506),s=a(90053),i=a(70043),o=a(60712);const r=(0,l.cn)("ydb-page-meta");function d({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("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...t}){return(0,o.jsxs)(n.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(d,{...t}),(0,o.jsx)(s.E,{})]})}},17594:(e,t,a)=>{a.d(t,{l:()=>d});var n=a(69024),l=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,n.j)(t,c),m={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:r(null,s),children:(0,o.jsx)(l.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:m,...d})})}},70043:(e,t,a)=>{a.d(t,{E:()=>i});var n=a(89169),l=a(66781),s=a(60712);const i=({delay:e=600,className:t})=>{const[a]=(0,l.y)(e);return a?(0,s.jsx)(n.E,{className:t}):null}},33775:(e,t,a)=>{a.d(t,{k:()=>h});var n=a(45720),l=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]:n.A,[o.m.Yellow]:l.A,[o.m.Orange]:s.A,[o.m.Red]:l.A};function h({status:e=o.m.Grey,size:t="s",mode:a="color",className:n}){const l={state:e.toLowerCase(),size:t};return"icons"===a&&e in u?(0,d.jsx)(i.I,{className:c("status-icon",l,n),data:u[e]}):(0,d.jsx)("div",{className:c("status-color",l,n)})}},79737:(e,t,a)=>{a.d(t,{A:()=>o,X:()=>r});var n=a(5874),l=a(77506),s=a(60712);const i=(0,l.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,...l}){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,l=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":l})},className:i("table",{width:t},e),...l})})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var n=a(47665),l=a(58267),s=a(60712);function i({state:e}){return(0,s.jsx)(n.J,{theme:(0,l._)(e),children:e})}},47584:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>be});var n=a(59284),l=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(78668),f=a(40174),y=a(21545),j=a(54090),w=a(77506),N=a(76086),S=a(90182),T=a(76938),_=a(66528);const I=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"}'),B=(0,D.g4)("ydb-tablet-page",{en:E});function R(e){return Boolean(e&&"0"!==e)}var F=a(60712);const z=({tablet:e})=>{const{TabletId:t,HiveId:a}=e,s=(0,S.N4)(x._5),[i]=y.X.useKillTabletMutation(),[o]=y.X.useStopTabletMutation(),[r]=y.X.useResumeTabletMutation();if(!t)return null;const d=R(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)(l.s,{gap:2,wrap:"nowrap",children:[(0,F.jsxs)(A.B,{dialogHeader:B("dialog.kill-header"),dialogText:B("dialog.kill-text"),onConfirmAction:()=>i({id:t}).unwrap(),buttonDisabled:c||!s,withPopover:!0,buttonView:"normal",popoverContent:B("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:T.A}),B("controls.kill")]}),d&&(0,F.jsxs)(n.Fragment,{children:[(0,F.jsxs)(A.B,{dialogHeader:B("dialog.stop-header"),dialogText:B("dialog.stop-text"),onConfirmAction:()=>o({id:t,hiveId:a}).unwrap(),buttonDisabled:h||!s,withPopover:!0,buttonView:"normal",popoverContent:B("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:_.A}),B("controls.stop")]}),(0,F.jsxs)(A.B,{dialogHeader:B("dialog.resume-header"),dialogText:B("dialog.resume-text"),onConfirmAction:()=>r({id:t,hiveId:a}).unwrap(),buttonDisabled:u||!s,withPopover:!0,buttonView:"normal",popoverContent:B("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:I}),B("controls.resume")]})]})]})};var O=a(52905),P=a(60073),L=a(25196),G=a(27775),H=a(41826),q=a(31684),$=a(29819);const M=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,D.g4)("ydb-tablet-info",{en:M}),K=(0,w.cn)("ydb-tablet-info"),V=({tablet:e})=>{const t=(0,S.N4)(x._5),{ChangeTime:a,Generation:n,FollowerId:s,NodeId:i,HiveId:o,State:r,TenantId:{SchemeShard:d}={},TabletId:c}=e,u=R(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)(G.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:n},{label:Y("field_node"),value:(0,F.jsx)(O.N_,{className:K("link"),to:(0,$.vI)(String(i)),children:i})}),s&&m.push({label:Y("field_follower"),value:s});return(0,F.jsxs)(l.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)(l.s,{direction:"column",gap:3,children:[(0,F.jsx)(L.K,{title:Y("field_developer-ui-app"),url:(0,q._t)(c,"app")}),(0,F.jsx)(L.K,{title:Y("field_developer-ui-counters"),url:(0,q._t)(c,"counters")}),(0,F.jsx)(L.K,{title:Y("field_developer-ui-executor"),url:(0,q._t)(c,"executorInternals")}),(0,F.jsx)(L.K,{title:Y("field_developer-ui-state"),url:(0,q._t)(c,void 0,"SsId")})]})]}):null]})};var Q=a(36590),X=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,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,F.jsx)("div",{className:te("metrics-cell"),children:n})}function ne({row:e,name:t,hasExpand:a}){const n=e.getCanExpand();return(0,F.jsxs)(l.s,{gap:1,alignItems:"flex-start",className:te("name-wrapper"),children:[n&&(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&&!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 o of l){var i;const e=o.Channel,t=o.History;if(!e||!t||!t.length)continue;const n=[...t];n.reverse();const[l,...r]=n,d={...l,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=n.useMemo((()=>l.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[l]),i=n.useMemo((()=>{return e=s,[{accessorKey:"channelIndex",header:()=>(0,F.jsx)(X.A,{children:ee("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,F.jsx)(X.A,{children:ee("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,F.jsx)(X.A,{className:e?te("with-padding"):void 0,children:ee("label_group-id")}),size:100,cell:t=>(0,F.jsx)(ne,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,F.jsx)(X.A,{children:ee("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,F.jsx)(X.A,{children:ee("label_timestamp")}),size:200,cell:e=>ae(e,U.Ey),meta:{align:"right"}}];var e}),[s]),o=(0,Q.K)({columns:i,data:l,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:a,state:{expanded:t}});return(0,F.jsx)(X.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)(G.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,$.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 B("label_tablet-history")}},{id:me.channels,get title(){return B("label_tablet-channels")},isAdvanced:!0}],pe=c.z.nativeEnum(me).catch(me.history);function be(){var e;const t=(0,S.YQ)(),{id:a}=(0,r.g)(),[{database:s,clusterName:c}]=(0,d.useQueryParams)(g.qc),[u]=(0,S.Nt)(),{currentData:h,isFetching:v,error:x}=y.X.useGetTabletQuery({id:a,database:null!==s&&void 0!==s?s:void 0},{pollingInterval:u}),j=v&&void 0===h,{data:w={},history:T=[]}=h||{},{currentData:_}=y.X.useGetTabletDescribeQuery(w.TenantId?{tenantId:w.TenantId}:i.hT),I=null!==(e=_||s)&&void 0!==e?e:void 0,C=w.Type;n.useEffect((()=>{t((0,f.g)("tablet",{tenantName:null!==s&&void 0!==s?s:void 0,tabletId:a,tabletType:C}))}),[t,s,a,C]);const{Leader:A,Type:k}=w,D=[];return I&&D.push(`${B("tablet.meta-database")}: ${I}`),k&&D.push(k),!1===A&&D.push(B("tablet.meta-follower").toUpperCase()),(0,F.jsxs)(l.s,{gap:5,direction:"column",className:he(),children:[(0,F.jsx)(o.mg,{children:(0,F.jsx)("title",{children:`${a} \u2014 ${B("tablet.header")} \u2014 ${I||c||N.QM}`})}),(0,F.jsx)(b.B,{items:D}),(0,F.jsxs)(p.r,{loading:j,size:"l",children:[x?(0,F.jsx)(m.o,{error:x}):null,h?(0,F.jsx)(ge,{id:a,tablet:w,history:T}):null]})]})}function ge({id:e,tablet:t,history:a}){const n=!Object.keys(t).length,{Overall:s,HiveId:i}=t;return(0,F.jsxs)(u.q,{title:B("emptyState"),className:he("placeholder"),isEmpty:n,children:[(0,F.jsxs)(l.s,{gap:5,direction:"column",children:[(0,F.jsx)(h.$,{entityName:B("tablet.header"),status:null!==s&&void 0!==s?s:j.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.N4)(x._5)||!R(t);let h=pe.parse(o);return u&&null!==(i=ve.find((e=>e.id===h)))&&void 0!==i&&i.isAdvanced&&(h=me.history),n.useEffect((()=>{o!==h&&c({activeTab:h},"replaceIn")}),[o,h,c]),(0,F.jsxs)(l.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 n=(0,g.DM)(e,{...r,activeTab:t.id});return(0,F.jsx)(v.E,{to:n,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,S.Nt)(),{currentData:n,error:l,isFetching:s}=y.X.useGetAdvancedTableInfoQuery({id:e,hiveId:t},{pollingInterval:a}),i=s&&void 0===n;return(0,F.jsxs)(p.r,{loading:i,size:"l",children:[l?(0,F.jsx)(m.o,{error:l}):null,n?(0,F.jsx)(le,{data:n}):null]})}},89954:(e,t,a)=>{a.d(t,{O:()=>_});var n=a(59284),l=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:l=!0,render:s=e=>e,onToggle:i,expandLabel:o=b("default_expand_label"),collapseLabel:r=b("default_collapse_label")}){const[d,u]=n.useState(!1),h=(d?r:o)+(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===i||void 0===i||i()},children:h}):null]})}var y=a(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function w(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const N=(0,h.cn)("kv-result-issues"),S=(0,h.cn)("kv-issues"),T=(0,h.cn)("kv-issue");function _({data:e,hideSeverity:t}){const[a,l]=n.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 l,s;const i=w(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)(B,{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:()=>l(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,g.jsx)(I,{hideSeverity:t,issues:s})]})}function I({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:S(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),i=w(e.severity),o=e.issues,c=Array.isArray(o)&&o.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)(r.$,{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)(B,{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&&l&&(0,g.jsx)("div",{className:T("issues"),children:(0,g.jsx)(k,{issues:o,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:i}=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!==i&&void 0!==i?i: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:i.A,S_FATAL:o.A},E=(0,h.cn)("yql-issue-severity");function B({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})]})}},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},{signal:a})=>{try{const[l,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,n.nN)(i),r=Object.keys(s).reduce(((e,t)=>{var a;const n=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(n&&n.length){var l;const a=n.find((e=>e.Leader))||n[0],{ChangeTime:s,Generation:i,State:r,Leader:d,FollowerId:c}=a,u=o&&t?null===(l=o.get(Number(t)))||void 0===l?void 0:l.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=[]}=l,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:r}}}catch(l){return{error:l}}},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"})},16819:(e,t,a)=>{a.d(t,{a:()=>i});var n=a(59284),l=a(69024),s=a(59001);const i=e=>{const t=n.useCallback((()=>e?s.f.readUserSettingsValue(e,{}):{}),[e]),a=n.useCallback((t=>{e&&s.f.setUserSettingsValue(e,t)}),[e]);return(0,l.a)({saveSizes:a,getSizes:t})}},58267:(e,t,a)=>{a.d(t,{P:()=>i,_:()=>o});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},i=e=>{if(!e)return n.m.Grey;return t=e,Object.values(n.m).includes(t)?e:s[e];var t};function o(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"}}},16929:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(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:"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:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(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 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,a)=>{a.d(t,{A:()=>l});var n=a(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:"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"}))},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})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5652.6c4f054d.chunk.js b/ydb/core/viewer/monitoring/static/js/5652.6c4f054d.chunk.js new file mode 100644 index 0000000000..ecf390b03c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5652.6c4f054d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5652],{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}},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))})})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6030.95d317e6.chunk.js b/ydb/core/viewer/monitoring/static/js/6030.95d317e6.chunk.js deleted file mode 100644 index da8d20d18d..0000000000 --- a/ydb/core/viewer/monitoring/static/js/6030.95d317e6.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6030],{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:f,popoverPlacement:x="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:f,placement:x,disabled:k,children:I()}):I()]})}},55974:(e,s,t)=>{t.d(s,{g:()=>f});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 f({visible:e,header:s,text:t,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:v,onConfirm:f,onConfirmActionSuccess:x,onConfirmActionError:k}){const[b,y]=i.useState(!1),[j,N]=i.useState(),[w,D]=i.useState(!1),I=async e=>(y(!0),f(e).then((()=>{x(),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()})]})})}},42829:(e,s,t)=>{t.d(s,{D:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,s,t)=>{t.d(s,{$:()=>o});var i=t(77506),n=t(33775),a=t(60712);const l=(0,i.cn)("ydb-entity-page-title");function o({entityName:e,status:s,id:t,className:i}){return(0,a.jsxs)("div",{className:l(null,i),children:[(0,a.jsx)("span",{className:l("prefix"),children:e}),(0,a.jsx)(n.k,{className:l("icon"),status:s,size:"s"}),t]})}},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}`)))})}},58389:(e,s,t)=>{t.d(s,{B:()=>c});var i=t(87184),n=t(77506),a=t(90053),l=t(70043),o=t(60712);const r=(0,n.cn)("ydb-page-meta");function d({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("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...s}){return(0,o.jsxs)(i.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(d,{...s}),(0,o.jsx)(a.E,{})]})}},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}},67440:(e,s,t)=>{t.d(s,{E:()=>y});t(59284);var i=t(92459),n=t(78668),a=t(7435),l=t(77506),o=t(56839),r=t(31684),d=t(7187),c=t(90182),u=t(41650),v=t(60073),h=t(25196),p=t(15132),m=t(33775),g=t(48372);const f=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"}'),x=(0,g.g4)("ydb-vDisk-info",{en:f});var k=t(60712);const b=(0,l.cn)("ydb-vdisk-info");function y({data:e,withVDiskPageLink:s,withTitle:t,...l}){var d,g;const f=(0,c.N4)(n._5),{AllocatedSize:y,DiskSpace:N,FrontQueues:w,Guid:D,Replicated:I,VDiskState:S,VDiskSlotId:C,Kind:_,SatisfactionRank:A,AvailableSize:E,HasUnreadableBlobs:P,IncarnationGuid:R,InstanceGuid:T,StoragePoolName:B,ReadThroughput:F,WriteThroughput:V,PDiskId:$,NodeId:O}=e||{},L=[];var z,G;((0,a.f8)(C)&&L.push({label:x("slot-id"),value:C}),(0,a.f8)(B)&&L.push({label:x("pool-name"),value:B}),(0,a.f8)(S)&&L.push({label:x("state-status"),value:S}),Number(y)>=0&&Number(E)>=0&&L.push({label:x("size"),value:(0,k.jsx)(p.O,{value:y,capacity:Number(y)+Number(E),formatValues:o.vX,colorizeProgress:!0})}),(0,a.f8)(_)&&L.push({label:x("kind"),value:_}),(0,a.f8)(D)&&L.push({label:x("guid"),value:D}),(0,a.f8)(R)&&L.push({label:x("incarnation-guid"),value:R}),(0,a.f8)(T)&&L.push({label:x("instance-guid"),value:T}),(0,a.f8)(I)&&L.push({label:x("replication-status"),value:x(I?"yes":"no")}),(0,a.f8)(N)&&L.push({label:x("space-status"),value:(0,k.jsx)(m.k,{status:N})}),(0,a.f8)(null===A||void 0===A||null===(d=A.FreshRank)||void 0===d?void 0:d.Flag))&&L.push({label:x("fresh-rank-satisfaction"),value:(0,k.jsx)(m.k,{status:null===A||void 0===A||null===(z=A.FreshRank)||void 0===z?void 0:z.Flag})});(0,a.f8)(null===A||void 0===A||null===(g=A.LevelRank)||void 0===g?void 0:g.Flag)&&L.push({label:x("level-rank-satisfaction"),value:(0,k.jsx)(m.k,{status:null===A||void 0===A||null===(G=A.LevelRank)||void 0===G?void 0:G.Flag})});(0,a.f8)(w)&&L.push({label:x("front-queues"),value:(0,k.jsx)(m.k,{status:w})}),(0,a.f8)(P)&&L.push({label:x("has-unreadable-blobs"),value:x(P?"yes":"no")}),(0,a.f8)(F)&&L.push({label:x("read-throughput"),value:(0,u.O4)(F)}),(0,a.f8)(V)&&L.push({label:x("write-throughput"),value:(0,u.O4)(V)});if((0,a.f8)($)&&(0,a.f8)(O)&&(0,a.f8)(C)){const e=[];if(s){const s=(0,i.yX)(C,$,O);e.push((0,k.jsx)(h.K,{title:x("vdisk-page"),url:s,external:!1},s))}if(f){const s=(0,r.Wg)({nodeId:O,pDiskId:$,vDiskSlotId:C});e.push((0,k.jsx)(h.K,{title:x("developer-ui"),url:s},s))}e.length&&L.push({label:x("links"),value:(0,k.jsx)("div",{className:b("links"),children:e})})}const H=e&&t?(0,k.jsx)(j,{data:e}):null;return(0,k.jsx)(v.z_,{info:L,title:H,...l})}function j({data:e}){return(0,k.jsxs)("div",{className:b("title"),children:[x("vdiks-title"),(0,k.jsx)(m.k,{status:(0,d.XY)(e.Severity)}),e.StringifiedId]})}},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 f=t(60712);const x=(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,f.jsxs)("div",{className:x(),children:[a(p),h?(0,f.jsx)(c.N,{className:x("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,f.jsxs)("div",{className:N(),children:[(0,f.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,f.jsxs)(i.Fragment,{children:[s?null:(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)(R,{severity:l})," "]}),(0,f.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,f.jsx)(r.$,{view:"normal",onClick:()=>n(!t),children:t?"Hide details":"Show details"})]}),l&&t&&(0,f.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,f.jsx)("div",{className:w(null),children:null===e||void 0===e?void 0:e.map(((e,i)=>(0,f.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,f.jsxs)("div",{className:D({leaf:!c,"has-issues":c}),children:[(0,f.jsxs)("div",{className:D("line"),children:[c&&(0,f.jsx)(r.$,{view:"flat-secondary",onClick:()=>a(!n),className:D("arrow-toggle"),children:(0,f.jsx)(d.I,{direction:u,size:16})}),s?null:(0,f.jsx)(R,{severity:l}),(0,f.jsx)(_,{issue:e}),e.issue_code?(0,f.jsxs)("span",{className:D("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,f.jsx)("div",{className:D("issues"),children:(0,f.jsx)(A,{issues:o,level:t+1,expanded:n})})]})}function _({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,f.jsxs)("span",{className:D("message"),children:[t&&(0,f.jsx)("span",{className:D("place-text"),title:"Position",children:t}),(0,f.jsx)("div",{className:D("message-text"),children:(0,f.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,f.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 A(e){const{issues:s,level:t,expanded:i}=e;return(0,f.jsx)("div",{className:D("list"),children:s.map(((e,s)=>(0,f.jsx)(C,{issue:e,level:t,expanded:i},s)))})}const E={S_INFO:n.A,S_WARNING:a.A,S_ERROR:l.A,S_FATAL:o.A},P=(0,v.cn)("yql-issue-severity");function R({severity:e}){const s=e.slice(2).toLowerCase();return(0,f.jsxs)("span",{className:P({severity:s}),children:[(0,f.jsx)(u.I,{className:P("icon"),data:E[e]}),(0,f.jsx)("span",{className:P("title"),children:s})]})}},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(67440),m=t(21334),g=t(78668),f=t(67028),x=t(40174),k=t(7187),b=t(27295),y=t(78034);const j=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,b.WT)(c),v=null===(n=s.PDiskStateInfo)||void 0===n?void 0:n[0],h=(0,b.or)(v),p=null===(a=t.SystemStateInfo)||void 0===a?void 0:a[0],m=(0,y.q1)(p),g=null!==(l=null!==(o=u.NodeId)&&void 0!==o?o:h.NodeId)&&void 0!==l?l:m.NodeId,f=m.Host,x=null===(r=m.Roles)||void 0===r?void 0:r[0],k=m.DC,j=null!==(d=u.PDiskId)&&void 0!==d?d:h.PDiskId,N=h.Type;return{...u,NodeId:g,NodeHost:f,NodeType:x,NodeDC:k,PDiskId:j,PDiskType:N}}(n)}}catch(n){return{error:n}}},providesTags:(e,s,t)=>["All",{type:"VDiskData",id:(0,k.gh)(t.nodeId,t.pDiskId,t.vDiskSlotId)}]})}),overrideExisting:"throw"});var N=t(7435),w=t(77506),D=t(90182),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"}'),_=(0,S.g4)("ydb-vDisk-page",{en:C});var A=t(60712);const E=(0,w.cn)("ydb-vdisk-page");function P(){const e=(0,D.YQ)(),s=i.useRef(null),t=(0,D.N4)(g._5),b=(0,f.c2)(),[{nodeId:y,pDiskId:w,vDiskSlotId:S}]=(0,r.useQueryParams)({nodeId:r.StringParam,pDiskId:r.StringParam,vDiskSlotId:r.StringParam});i.useEffect((()=>{e((0,x.g)("vDisk",{nodeId:y,pDiskId:w,vDiskSlotId:S}))}),[e,y,w,S]);const[C]=(0,D.Nt)(),P=(0,N.f8)(y)&&(0,N.f8)(w)&&(0,N.f8)(S)?{nodeId:y,pDiskId:w,vDiskSlotId:S}:l.hT,{currentData:R={},isFetching:T,error:B}=j.useGetVDiskDataQuery(P,{pollingInterval:C}),F=T&&void 0===R,{NodeHost:V,NodeId:$,NodeType:O,NodeDC:L,PDiskId:z,PDiskType:G,Severity:H,VDiskId:q}=R,{GroupID:M,GroupGeneration:Y,Ring:U,Domain:W,VDisk:Q}=q||{},J=(0,N.f8)(M)&&(0,N.f8)(Y)&&(0,N.f8)(U)&&(0,N.f8)(W)&&(0,N.f8)(Q),K=async e=>{if(J){var s;const t={groupId:M,groupGeneration:Y,failRealmIdx:U,failDomainIdx:W,vDiskIdx:Q,force:e};let i;if(i=b?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}}}},X=()=>{e(m.F.util.invalidateTags([{type:"VDiskData",id:(0,k.gh)(y||0,w||0,S||0)},"StorageData"]))};return(0,A.jsxs)("div",{className:E(null),ref:s,children:[(()=>{const e=S?`${_("vdisk")} ${S}`:_("vdisk"),s=w?`${_("pdisk")} ${w}`:_("pdisk"),t=V||_("node");return(0,A.jsx)(o.mg,{titleTemplate:`%s - ${e} - ${s} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} - ${s} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=V?`${_("fqdn")}: ${V}`:void 0,s=$?`${_("node")}: ${$}`:void 0,t=$?`${_("pdisk")}: ${z}`:void 0;return(0,A.jsx)(h.B,{className:E("meta"),loading:F,items:[e,s,O,L,t,G]})})(),(0,A.jsx)(c.$,{className:E("title"),entityName:_("vdisk"),status:(0,k.XY)(H),id:null===R||void 0===R?void 0:R.StringifiedId}),(0,A.jsx)("div",{className:E("controls"),children:(0,A.jsxs)(d.B,{onConfirmAction:K,onConfirmActionSuccess:X,buttonDisabled:!J||!t,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:t,children:[(0,A.jsx)(a.I,{data:n}),_("evict-vdisk-button")]})}),F?(0,A.jsx)(v.y,{rows:20}):(0,A.jsxs)(i.Fragment,{children:[B?(0,A.jsx)(u.o,{error:B}):null,(0,A.jsx)(p.E,{data:R,className:E("info")}),(0,N.f8)(M)&&(0,N.f8)(y)?(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)("div",{className:E("storage-title"),children:_("storage")}),(0,A.jsx)(I.z,{groupId:M,nodeId:y,pDiskId:null!==w&&void 0!==w?w:void 0,parentRef:s,viewContext:{groupId:null===M||void 0===M?void 0:M.toString(),nodeId:null===y||void 0===y?void 0:y.toString(),pDiskId:null===w||void 0===w?void 0:w.toString(),vDiskSlotId:null===S||void 0===S?void 0:S.toString()}})]}):null]})]})}},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"}))},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:f,inputProps:x}=(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({},x,{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:f},m),qa:g,control:b},k)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/684.7c31509b.chunk.js b/ydb/core/viewer/monitoring/static/js/684.7c31509b.chunk.js deleted file mode 100644 index 9274af72cd..0000000000 --- a/ydb/core/viewer/monitoring/static/js/684.7c31509b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[684],{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:b="right",popoverDisabled:x=!0}){const[k,y]=i.useState(!1),[j,N]=i.useState(!1),[S,w]=i.useState(!1),D=()=>(0,r.jsx)(n.$,{onClick:()=>y(!0),view:p,disabled:m,loading:!m&&j,className:v,title:h,children:e});return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a.g,{visible:k,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:()=>{y(!1)}}),g?(0,r.jsx)(o.A,{content:f,placement:b,disabled:x,children:D()}):D()]})}},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:b,onConfirmActionError:x}){const[k,y]=i.useState(!1),[j,N]=i.useState(),[S,w]=i.useState(!1),D=async e=>(y(!0),f(e).then((()=>{b(),m()})).catch((e=>{x(e),N(e)})).finally((()=>{y(!1)})));return(0,h.jsx)(l.l,{open:e,hasCloseButton:!1,className:v(),size:"s",onClose:m,onTransitionExited:()=>{N(void 0),w(!1)},children:j?(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(j)]})}),(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:k,preset:"default",textButtonApply:p("button-confirm"),textButtonCancel:p("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!S},onClickButtonCancel:m,onClickButtonApply:()=>D()})]})})}},42829:(e,t,s)=>{s.d(t,{D:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,t,s)=>{s.d(t,{$:()=>l});var i=s(77506),n=s(33775),o=s(60712);const a=(0,i.cn)("ydb-entity-page-title");function l({entityName:e,status:t,id:s,className:i}){return(0,o.jsxs)("div",{className:a(null,i),children:[(0,o.jsx)("span",{className:a("prefix"),children:e}),(0,o.jsx)(n.k,{className:a("icon"),status:t,size:"s"}),s]})}},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}`)))})}},56735:(e,t,s)=>{s.d(t,{Q:()=>y});var i=s(87184),n=s(92459),o=s(78668),a=s(7435),l=s(46549),r=s(77506),d=s(56839),c=s(31684),u=s(90182),m=s(18863),p=s(25196),h=s(15132),v=s(33775),g=s(48372);const f=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"}'),b=(0,g.g4)("ydb-pDisk-info",{en:f});var x=s(60712);const k=(0,r.cn)("ydb-pdisk-info");function y({pDisk:e,nodeId:t,withPDiskPageLink:s,className:r}){const g=(0,u.N4)(o._5),[f,y,j,N]=function({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:i}){const{PDiskId:o,Path:r,Guid:u,Category:m,Type:g,Device:f,Realtime:y,State:j,SerialNumber:N,TotalSize:S,AllocatedSize:w,StatusV2:D,NumActiveSlots:I,ExpectedSlotCount:C,LogUsedSize:T,LogTotalSize:E,SystemSize:P,SharedWithOs:z}=e||{},A=[];(0,a.f8)(m)&&A.push({label:b("type"),value:g}),(0,a.f8)(r)&&A.push({label:b("path"),value:r}),(0,a.f8)(u)&&A.push({label:b("guid"),value:u}),N&&A.push({label:b("serial-number"),value:N}),(0,a.f8)(z)&&A.push({label:b("shared-with-os"),value:b("yes")});const _=[];(0,a.f8)(D)&&_.push({label:b("drive-status"),value:D}),(0,a.f8)(j)&&_.push({label:b("state"),value:j}),(0,a.f8)(f)&&_.push({label:b("device"),value:(0,x.jsx)(v.k,{status:f})}),(0,a.f8)(y)&&_.push({label:b("realtime"),value:(0,x.jsx)(v.k,{status:y})});const M=[];M.push({label:b("space"),value:(0,x.jsx)(h.O,{value:w,capacity:S,formatValues:d.vX,colorizeProgress:!0})}),(0,a.f8)(I)&&(0,a.f8)(C)&&M.push({label:b("slots"),value:(0,x.jsx)(h.O,{value:I,capacity:C})}),(0,a.f8)(T)&&(0,a.f8)(E)&&M.push({label:b("log-size"),value:(0,x.jsx)(h.O,{value:T,capacity:E,formatValues:d.vX})}),(0,a.f8)(P)&&M.push({label:b("system-size"),value:(0,l.z3)({value:P})});const O=[];if((s||i)&&(0,a.f8)(o)&&(0,a.f8)(t)){const e=(0,n.Ck)(o,t),a=(0,c.ar)({nodeId:t,pDiskId:o});O.push({label:b("links"),value:(0,x.jsxs)("span",{className:k("links"),children:[s&&(0,x.jsx)(p.K,{title:b("pdisk-page"),url:e,external:!1}),i&&(0,x.jsx)(p.K,{title:b("developer-ui"),url:a})]})})}return[A,_,M,O]}({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:g});return(0,x.jsxs)(i.s,{className:r,gap:2,direction:"row",wrap:!0,children:[(0,x.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,x.jsx)(m.z,{info:f,renderEmptyState:()=>null}),(0,x.jsx)(m.z,{info:j,renderEmptyState:()=>null})]}),(0,x.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,x.jsx)(m.z,{info:y,renderEmptyState:()=>null}),(0,x.jsx)(m.z,{info:N,renderEmptyState:()=>null})]})]})}},58389:(e,t,s)=>{s.d(t,{B:()=>c});var i=s(87184),n=s(77506),o=s(90053),a=s(70043),l=s(60712);const r=(0,n.cn)("ydb-page-meta");function d({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("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...t}){return(0,l.jsxs)(i.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,l.jsx)(d,{...t}),(0,l.jsx)(o.E,{})]})}},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}},67440:(e,t,s)=>{s.d(t,{E:()=>y});s(59284);var i=s(92459),n=s(78668),o=s(7435),a=s(77506),l=s(56839),r=s(31684),d=s(7187),c=s(90182),u=s(41650),m=s(60073),p=s(25196),h=s(15132),v=s(33775),g=s(48372);const f=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"}'),b=(0,g.g4)("ydb-vDisk-info",{en:f});var x=s(60712);const k=(0,a.cn)("ydb-vdisk-info");function y({data:e,withVDiskPageLink:t,withTitle:s,...a}){var d,g;const f=(0,c.N4)(n._5),{AllocatedSize:y,DiskSpace:N,FrontQueues:S,Guid:w,Replicated:D,VDiskState:I,VDiskSlotId:C,Kind:T,SatisfactionRank:E,AvailableSize:P,HasUnreadableBlobs:z,IncarnationGuid:A,InstanceGuid:_,StoragePoolName:M,ReadThroughput:O,WriteThroughput:R,PDiskId:L,NodeId:B}=e||{},F=[];var V,$;((0,o.f8)(C)&&F.push({label:b("slot-id"),value:C}),(0,o.f8)(M)&&F.push({label:b("pool-name"),value:M}),(0,o.f8)(I)&&F.push({label:b("state-status"),value:I}),Number(y)>=0&&Number(P)>=0&&F.push({label:b("size"),value:(0,x.jsx)(h.O,{value:y,capacity:Number(y)+Number(P),formatValues:l.vX,colorizeProgress:!0})}),(0,o.f8)(T)&&F.push({label:b("kind"),value:T}),(0,o.f8)(w)&&F.push({label:b("guid"),value:w}),(0,o.f8)(A)&&F.push({label:b("incarnation-guid"),value:A}),(0,o.f8)(_)&&F.push({label:b("instance-guid"),value:_}),(0,o.f8)(D)&&F.push({label:b("replication-status"),value:b(D?"yes":"no")}),(0,o.f8)(N)&&F.push({label:b("space-status"),value:(0,x.jsx)(v.k,{status:N})}),(0,o.f8)(null===E||void 0===E||null===(d=E.FreshRank)||void 0===d?void 0:d.Flag))&&F.push({label:b("fresh-rank-satisfaction"),value:(0,x.jsx)(v.k,{status:null===E||void 0===E||null===(V=E.FreshRank)||void 0===V?void 0:V.Flag})});(0,o.f8)(null===E||void 0===E||null===(g=E.LevelRank)||void 0===g?void 0:g.Flag)&&F.push({label:b("level-rank-satisfaction"),value:(0,x.jsx)(v.k,{status:null===E||void 0===E||null===($=E.LevelRank)||void 0===$?void 0:$.Flag})});(0,o.f8)(S)&&F.push({label:b("front-queues"),value:(0,x.jsx)(v.k,{status:S})}),(0,o.f8)(z)&&F.push({label:b("has-unreadable-blobs"),value:b(z?"yes":"no")}),(0,o.f8)(O)&&F.push({label:b("read-throughput"),value:(0,u.O4)(O)}),(0,o.f8)(R)&&F.push({label:b("write-throughput"),value:(0,u.O4)(R)});if((0,o.f8)(L)&&(0,o.f8)(B)&&(0,o.f8)(C)){const e=[];if(t){const t=(0,i.yX)(C,L,B);e.push((0,x.jsx)(p.K,{title:b("vdisk-page"),url:t,external:!1},t))}if(f){const t=(0,r.Wg)({nodeId:B,pDiskId:L,vDiskSlotId:C});e.push((0,x.jsx)(p.K,{title:b("developer-ui"),url:t},t))}e.length&&F.push({label:b("links"),value:(0,x.jsx)("div",{className:k("links"),children:e})})}const U=e&&s?(0,x.jsx)(j,{data:e}):null;return(0,x.jsx)(m.z_,{info:F,title:U,...a})}function j({data:e}){return(0,x.jsxs)("div",{className:k("title"),children:[b("vdiks-title"),(0,x.jsx)(v.k,{status:(0,d.XY)(e.Severity)}),e.StringifiedId]})}},69134:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>ke});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(56735),f=s(58389),b=s(92459),x=s(21334),k=s(78668),y=s(67028),j=s(40174),N=s(7187),S=s(68712),w=s(7435),D=s(27295),I=s(78034);const C=x.F.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async({nodeId:e,pDiskId:t},{signal:s,getState:i,dispatch:n})=>{let o;o=await(0,S.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,I.q1)(o),{BSC:l={},Whiteboard:r={}}=e||{},{PDisk:d={},VDisks:c=[]}=r,{PDisk:u={}}=l,m=(0,D.or)({...u,...d}),p=null!==(i=m.NodeId)&&void 0!==i?i:a.NodeId,{LogUsedSize:h,LogTotalSize:v,TotalSize:g,SystemSize:f,ExpectedSlotCount:b,EnforcedDynamicSlotSize:x}=m;let k;(0,w.f8)(v)&&(k={SlotType:"log",Used:Number(h),Total:Number(v),UsagePercent:100*Number(h)/Number(v),Severity:1,SlotData:{LogUsedSize:h,LogTotalSize:v,SystemSize:f}});const y=c.map((e=>(0,D.WT)({...e,NodeId:p})));y.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const j=y.map((e=>{var t;return{SlotType:"vDisk",Id:null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID,Title:e.StoragePoolName,Severity:e.Severity,Used:Number(e.AllocatedSize),Total:Number(e.TotalSize),UsagePercent:e.AllocatedPercent,SlotData:e}}));let N=[];if(b&&b>j.length){const e=b-j.length;let t=Number(x);if(isNaN(t)){const s=j.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(g)-s-Number(v))/e}N=(0,w._e)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const S=[...j,...N];return k&&S.length>0&&S.unshift(k),{...m,NodeId:p,NodeHost:a.Host,NodeType:null===(n=a.Roles)||void 0===n?void 0:n[0],NodeDC:a.DC,SlotItems:S}}(t)}}catch(a){return{error:a}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,N.r$)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var T=s(77506),E=s(90182),P=s(99936),z=s(13066),A=s(40569),_=s(84375),M=s(84476),O=s(55974),R=s(42829),L=s(48372);const B=JSON.parse('{"fqdn":"FQDN","pdisk":"PDisk","node":"Node","storage":"Storage","disk-distribution":"Disk 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,L.g4)("ydb-pDisk-page",{en:B});var V,$,U,G;function H(){return H=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},H.apply(null,arguments)}const J=function(e){return i.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),V||(V=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})),$||($=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)"})),G||(G=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 W=s(60712);const q=(0,T.cn)("ydb-pdisk-decommission-button");function Y(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 X({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,W.jsxs)(i.Fragment,{children:[(0,W.jsx)(A.r,{renderSwitcher:e=>(0,W.jsx)(Q,{popoverDisabled:o,loading:r,disabled:n,...e}),items:m,popupProps:{className:q("popup")}}),(0,W.jsx)(O.g,{visible:Boolean(a),header:F("decommission-dialog-title"),text:Y(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,w.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,W.jsx)(_.A,{content:F("decommission-change-not-allowed"),placement:"right",disabled:e,children:(0,W.jsxs)(M.$,{view:"normal",className:q("button"),...t,children:[(0,W.jsx)(o.I,{data:J}),F("decommission-button"),(0,W.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,W.jsx)(K.J,{theme:"danger",size:"m",children:Z(F("decommission-imminent"))}):"DECOMMIT_PENDING"===e?(0,W.jsx)(K.J,{theme:"warning",size:"m",children:Z(F("decommission-pending"))}):"DECOMMIT_REJECTED"===e?(0,W.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(67440),le=s(46549),re=s(56839);const de=(0,T.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,W.jsx)("div",{className:de(null),style:{height:n,minHeight:n},children:(0,W.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,W.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,W.jsx)("div",{className:de("slot-wrapper"),style:{flexGrow:Number(e.Total)||1},children:(()=>{if("vDisk"===e.SlotType){var i;const n=(0,w.f8)(null===(i=e.SlotData)||void 0===i?void 0:i.VDiskSlotId)&&(0,w.f8)(t)&&(0,w.f8)(s)?(0,b.yX)(e.SlotData.VDiskSlotId,t,s):void 0;return(0,W.jsx)(se.P,{popupContent:(0,W.jsx)(ae.E,{data:e.SlotData,withTitle:!0}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(ne.E,{to:n,children:(0,W.jsx)(te.V,{className:de("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,W.jsx)(pe,{id:e.Id,title:e.Title,used:e.Used,total:e.Total})})})})}return function(e){return"log"===e.SlotType}(e)?(0,W.jsx)(se.P,{popupContent:(0,W.jsx)(he,{data:e.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.V,{className:de("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,W.jsx)(pe,{title:F("log"),used:e.Used,total:e.Total})})}):function(e){return"empty"===e.SlotType}(e)?(0,W.jsx)(se.P,{popupContent:(0,W.jsx)(ve,{data:e.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.V,{className:de("slot"),severity:e.Severity,empty:!0,content:(0,W.jsx)(pe,{title:F("empty-slot"),used:e.Total})})}):null})()})}function pe({id:e,title:t,used:s,total:i}){return(0,W.jsxs)("div",{className:de("slot-content"),children:[(0,W.jsxs)("span",{children:[(0,w.f8)(e)?(0,W.jsx)("span",{className:de("slot-id"),children:e}):null,t]}),(0,W.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,W.jsx)(oe.O,{value:s,capacity:t,formatValues:re.vX})}];return(0,w.f8)(i)&&n.push({label:F("label.system-size"),value:(0,le.z3)({value:i})}),(0,W.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,W.jsx)(ie.z_,{title:F("empty-slot"),info:s})}const ge=(0,T.cn)("ydb-pdisk-page"),fe={diskDistribution:"diskDistribution",storage:"storage"},be=[{id:fe.diskDistribution,get title(){return F("disk-distribution")}},{id:fe.storage,get title(){return F("storage")}}],xe=c.z.nativeEnum(fe).catch(fe.diskDistribution);function ke(){const e=(0,E.YQ)(),t=(0,E.N4)(k._5),s=(0,y.c2)(),c=i.useRef(null),[{nodeId:S,pDiskId:D,activeTab:I}]=(0,d.useQueryParams)({activeTab:d.StringParam,nodeId:d.StringParam,pDiskId:d.StringParam}),T=(0,w.f8)(S)&&(0,w.f8)(D),z=xe.parse(I);i.useEffect((()=>{e((0,j.g)("pDisk",{nodeId:S,pDiskId:D}))}),[e,S,D]);const[A]=(0,E.Nt)(),_=T?{nodeId:S,pDiskId:D}:l.hT,M=C.useGetPdiskInfoQuery(_,{pollingInterval:A}),O=M.isFetching&&void 0===M.currentData,R=M.currentData,{NodeHost:L,NodeId:B,NodeType:V,NodeDC:$,Severity:U,DecommitStatus:G}=R||{},H=async e=>{if(T){const t=await window.api.pdisk[s?"restartPDisk":"restartPDiskOld"]({nodeId:S,pDiskId:D,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 s=await window.api.pdisk.changePDiskStatus({nodeId:S,pDiskId:D,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},q=()=>{T&&e(x.F.util.invalidateTags([{type:"PDiskData",id:(0,N.r$)(S,D)}]),"StorageData")};return(0,W.jsxs)("div",{className:ge(null),ref:c,children:[(()=>{const e=D?`${F("pdisk")} ${D}`:F("pdisk"),t=L||F("node");return(0,W.jsx)(r.mg,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=L?`${F("fqdn")}: ${L}`:void 0,t=B?`${F("node")}: ${B}`:void 0;return(0,W.jsx)(f.B,{loading:O,items:[e,t,V,$],className:ge("meta")})})(),(0,W.jsxs)("div",{className:ge("title"),children:[(0,W.jsx)(m.$,{entityName:F("pdisk"),status:(0,N.XY)(U),id:(0,N.r$)(S,D)}),(0,W.jsx)(ee,{decommission:G})]}),(0,W.jsxs)("div",{className:ge("controls"),children:[(0,W.jsxs)(u.B,{onConfirmAction:H,onConfirmActionSuccess:q,buttonDisabled:!T||!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,W.jsx)(o.I,{data:n.A}),F("restart-pdisk-button")]}),s?(0,W.jsx)(X,{decommission:G,onConfirmAction:J,onConfirmActionSuccess:q,buttonDisabled:!T||!t,popoverDisabled:t}):null]}),M.error?(0,W.jsx)(p.o,{error:M.error}):null,O?(0,W.jsx)(h.y,{className:ge("info"),rows:10}):(0,W.jsx)(g.Q,{pDisk:R,nodeId:S,className:ge("info")}),(0,W.jsx)("div",{className:ge("tabs"),children:(0,W.jsx)(a.t,{size:"l",items:be,activeTab:z,wrapTo:({id:e},t)=>{const s=T?(0,b.Ck)(D,S,{activeTab:e}):void 0;return(0,W.jsx)(v.E,{to:s,children:t},e)}})}),(()=>{switch(z){case"diskDistribution":return R?(0,W.jsx)("div",{className:ge("disk-distribution"),children:(0,W.jsx)(ue,{data:R})}):null;case"storage":return T?(0,W.jsx)(P.z,{nodeId:S,pDiskId:D,parentRef:c,viewContext:{nodeId:null===S||void 0===S?void 0:S.toString(),pDiskId:null===D||void 0===D?void 0:D.toString()}}):null;default:return null}})()]})}},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 b=(0,m.cn)("kv-shorty-string");function x({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:b(),children:[o(h),p?(0,f.jsx)(c.N,{className:b("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===a||void 0===a||a()},children:m}):null]})}var k=s(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,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=j(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=j(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)(T,{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)(E,{issues:l,level:s+1,expanded:n})})]})}function T({issue:e}){var t;const s=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,k.kf)(t.row))return"";const{row:s,column:i}=t;return(0,k.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)(x,{value:e.message,expandLabel:"Show full message"})})]}),{row:o,column:a}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,k.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 E(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})]})}},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"}))},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"}))},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:b}=(0,n.v)(e),x=u||m,k=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({},b,{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:k},x)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7145.7676c06d.chunk.js b/ydb/core/viewer/monitoring/static/js/7145.7676c06d.chunk.js new file mode 100644 index 0000000000..a3c6d9f7d2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/7145.7676c06d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7145],{56735:(e,t,s)=>{s.d(t,{Q:()=>b});var i=s(87184),o=s(92459),n=s(7435),a=s(46549),l=s(77506),d=s(56839),r=s(31684),c=s(12888),u=s(18863),m=s(25196),p=s(15132),g=s(33775),h=s(48372);const v=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"}'),k=(0,h.g4)("ydb-pDisk-info",{en:v});var D=s(60712);const f=(0,l.cn)("ydb-pdisk-info");function b({pDisk:e,nodeId:t,withPDiskPageLink:s,className:l}){const h=(0,c.X)(),[v,b,S,y]=function({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:i}){const{PDiskId:l,Path:c,Guid:u,Category:h,Type:v,Device:b,Realtime:S,State:y,SerialNumber:x,TotalSize:I,AllocatedSize:N,StatusV2:w,NumActiveSlots:j,ExpectedSlotCount:T,LogUsedSize:E,LogTotalSize:P,SystemSize:C,SharedWithOs:z}=e||{},M=[];(0,n.f8)(h)&&M.push({label:k("type"),value:v}),(0,n.f8)(c)&&M.push({label:k("path"),value:c}),(0,n.f8)(u)&&M.push({label:k("guid"),value:u}),x&&M.push({label:k("serial-number"),value:x}),(0,n.f8)(z)&&M.push({label:k("shared-with-os"),value:k("yes")});const O=[];(0,n.f8)(w)&&O.push({label:k("drive-status"),value:w}),(0,n.f8)(y)&&O.push({label:k("state"),value:y}),(0,n.f8)(b)&&O.push({label:k("device"),value:(0,D.jsx)(g.k,{status:b})}),(0,n.f8)(S)&&O.push({label:k("realtime"),value:(0,D.jsx)(g.k,{status:S})});const A=[];A.push({label:k("space"),value:(0,D.jsx)(p.O,{value:N,capacity:I,formatValues:d.vX,colorizeProgress:!0})}),(0,n.f8)(j)&&(0,n.f8)(T)&&A.push({label:k("slots"),value:(0,D.jsx)(p.O,{value:j,capacity:T})}),(0,n.f8)(E)&&(0,n.f8)(P)&&A.push({label:k("log-size"),value:(0,D.jsx)(p.O,{value:E,capacity:P,formatValues:d.vX})}),(0,n.f8)(C)&&A.push({label:k("system-size"),value:(0,a.z3)({value:C})});const _=[];if((s||i)&&(0,n.f8)(l)&&(0,n.f8)(t)){const e=(0,o.Ck)(l,t),n=(0,r.ar)({nodeId:t,pDiskId:l});_.push({label:k("links"),value:(0,D.jsxs)("span",{className:f("links"),children:[s&&(0,D.jsx)(m.K,{title:k("pdisk-page"),url:e,external:!1}),i&&(0,D.jsx)(m.K,{title:k("developer-ui"),url:n})]})})}return[M,O,A,_]}({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:h});return(0,D.jsxs)(i.s,{className:l,gap:2,direction:"row",wrap:!0,children:[(0,D.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,D.jsx)(u.z,{info:v,renderEmptyState:()=>null}),(0,D.jsx)(u.z,{info:S,renderEmptyState:()=>null})]}),(0,D.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,D.jsx)(u.z,{info:b,renderEmptyState:()=>null}),(0,D.jsx)(u.z,{info:y,renderEmptyState:()=>null})]})]})}},69134:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>be});var i=s(59284),o=s(76938),n=s(99991),a=s(23871),l=s(44992),d=s(61750),r=s(67087),c=s(370),u=s(22983),m=s(3685),p=s(44508),g=s(42655),h=s(82015),v=s(56735),k=s(58389),D=s(92459),f=s(21334),b=s(67028),S=s(40174),y=s(7187),x=s(68712),I=s(7435),N=s(27295),w=s(78034);const j=f.F.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async({nodeId:e,pDiskId:t},{signal:s,getState:i,dispatch:o})=>{let n;n=await(0,x.FC)("/pdisk/info",void 0,{getState:i,dispatch:o})>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([n,window.api.viewer.getNodeInfo(e,{signal:s})]);return{data:function([e={},t]){var s,i,o;const n=null===(s=t.SystemStateInfo)||void 0===s?void 0:s[0],a=(0,w.q1)(n),{BSC:l={},Whiteboard:d={}}=e||{},{PDisk:r={},VDisks:c=[]}=d,{PDisk:u={}}=l,m=(0,N.or)({...u,...r}),p=null!==(i=m.NodeId)&&void 0!==i?i:a.NodeId,{LogUsedSize:g,LogTotalSize:h,TotalSize:v,SystemSize:k,ExpectedSlotCount:D,SlotSize:f}=m;let b;if((0,I.f8)(h)){const e=100*Number(g)/Number(h);b={SlotType:"log",Used:Number(g),Total:Number(h),UsagePercent:e,Severity:(0,y.SW)(e),SlotData:{LogUsedSize:g,LogTotalSize:h,SystemSize:k}}}const S=c.map((e=>(0,N.WT)({...e,NodeId:p})));S.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const x=S.map((e=>{var t;const s=Math.max((0,y.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 j=[];if(D&&D>x.length){const e=D-x.length;let t=Number(f);if(isNaN(t)){const s=x.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(v)-s-Number(h))/e}j=(0,I._e)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const T=[...x,...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,s)=>["All",{type:"PDiskData",id:(0,y.r$)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var T=s(77506),E=s(90182),P=s(12888),C=s(99936),z=s(13066),M=s(40569),O=s(84375),A=s(84476),_=s(55974),L=s(42829),R=s(48372);const U=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"}'),V=(0,R.g4)("ydb-pDisk-page",{en:U});var $,B,W,G;function H(){return H=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},H.apply(null,arguments)}const J=function(e){return i.createElement("svg",H({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})),B||(B=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})),W||(W=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)"})),G||(G=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 F=(0,T.cn)("ydb-pdisk-decommission-button");function Y(e){return"DECOMMIT_IMMINENT"===e?V("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?V("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?V("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?V("decommission-dialog-none-warning"):void 0}function Q({decommission:e,onConfirmAction:t,onConfirmActionSuccess:s,buttonDisabled:o,popoverDisabled:n}){const[a,l]=i.useState(),[d,r]=i.useState(!1),[c,u]=i.useState(!1),m=function(e,t){return[{text:V("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:V("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:V("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:V("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(e,l);return(0,X.jsxs)(i.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:V("decommission-dialog-title"),text:Y(a),withRetry:c,withCheckBox:!0,retryButtonText:V("decommission-dialog-force-change"),onConfirm:async e=>{r(!0),await t(a,e)},onConfirmActionSuccess:async()=>{u(!1),await(0,I.uk)(5e3);try{await s()}finally{r(!1)}},onConfirmActionError:e=>{u((0,L.D)(e)),r(!1)},onClose:()=>{l(void 0)}})]})}function q({popoverDisabled:e,...t}){return(0,X.jsx)(O.A,{content:V("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}),V("decommission-button"),(0,X.jsx)(n.I,{data:z.A})]})})}var K=s(47665);function Z(e){return V("decommission-label",{decommission:e})}function ee({decommission:e}){return"DECOMMIT_IMMINENT"===e?(0,X.jsx)(K.J,{theme:"danger",size:"m",children:Z(V("decommission-imminent"))}):"DECOMMIT_PENDING"===e?(0,X.jsx)(K.J,{theme:"warning",size:"m",children:Z(V("decommission-pending"))}):"DECOMMIT_REJECTED"===e?(0,X.jsx)(K.J,{theme:"normal",size:"m",children:Z(V("decommission-rejected"))}):null}var te=s(88226),se=s(13096),ie=s(60073),oe=s(44294),ne=s(15132),ae=s(67440),le=s(46549),de=s(56839);const re=(0,T.cn)("ydb-pdisk-space-distribution"),ce=40;function ue({data:e}){const{SlotItems:t}=e,{PDiskId:s,NodeId:i}=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:s,nodeId:i},t))),faded:!0})}):V("no-slots-data")}function me({item:e,pDiskId:t,nodeId:s}){return(0,X.jsx)("div",{className:re("slot-wrapper"),style:{flexGrow:Number(e.Total)||1},children:(()=>{if("vDisk"===e.SlotType){var i;const o=(0,I.f8)(null===(i=e.SlotData)||void 0===i?void 0:i.VDiskSlotId)&&(0,I.f8)(t)&&(0,I.f8)(s)?(0,D.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: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)(se.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:V("log"),used:e.Used,total:e.Total})})}):function(e){return"empty"===e.SlotType}(e)?(0,X.jsx)(se.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:V("empty-slot"),used:e.Total})})}):null})()})}function pe({id:e,title:t,used:s,total:i}){return(0,X.jsxs)("div",{className:re("slot-content"),children:[(0,X.jsxs)("span",{children:[(0,I.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)(s,i);return i?`${e} / ${t}`:e})()})]})}function ge({data:e}){const{LogTotalSize:t,LogUsedSize:s,SystemSize:i}=e,o=[{label:V("label.log-size"),value:(0,X.jsx)(ne.O,{value:s,capacity:t,formatValues:de.vX})}];return(0,I.f8)(i)&&o.push({label:V("label.system-size"),value:(0,le.z3)({value:i})}),(0,X.jsx)(ie.z_,{title:V("log"),info:o})}function he({data:e}){const{Size:t}=e,s=[{label:V("label.slot-size"),value:(0,le.z3)({value:t})}];return(0,X.jsx)(ie.z_,{title:V("empty-slot"),info:s})}const ve=(0,T.cn)("ydb-pdisk-page"),ke={spaceDistribution:"spaceDistribution",storage:"storage"},De=[{id:ke.spaceDistribution,get title(){return V("space-distribution")}},{id:ke.storage,get title(){return V("storage")}}],fe=c.z.nativeEnum(ke).catch(ke.spaceDistribution);function be(){const e=(0,E.YQ)(),t=(0,P.X)(),s=(0,b.c2)(),c=i.useRef(null),[{nodeId:x,pDiskId:N,activeTab:w}]=(0,r.useQueryParams)({activeTab:r.StringParam,nodeId:r.StringParam,pDiskId:r.StringParam}),T=(0,I.f8)(x)&&(0,I.f8)(N),z=fe.parse(w);i.useEffect((()=>{e((0,S.g)("pDisk",{nodeId:x,pDiskId:N}))}),[e,x,N]);const[M]=(0,E.Nt)(),O=T?{nodeId:x,pDiskId:N}:l.hT,A=j.useGetPdiskInfoQuery(O,{pollingInterval:M}),_=A.isFetching&&void 0===A.currentData,L=A.currentData,{NodeHost:R,NodeId:U,NodeType:$,NodeDC:B,Severity:W,DecommitStatus:G}=L||{},H=async e=>{if(T){const t=await window.api.pdisk[s?"restartPDisk":"restartPDiskOld"]({nodeId:x,pDiskId:N,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 s=await window.api.pdisk.changePDiskStatus({nodeId:x,pDiskId:N,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},F=()=>{T&&e(f.F.util.invalidateTags([{type:"PDiskData",id:(0,y.r$)(x,N)}]),"StorageData")};return(0,X.jsxs)("div",{className:ve(null),ref:c,children:[(()=>{const e=N?`${V("pdisk")} ${N}`:V("pdisk"),t=R||V("node");return(0,X.jsx)(d.mg,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=R?`${V("fqdn")}: ${R}`:void 0,t=U?`${V("node")}: ${U}`:void 0;return(0,X.jsx)(k.B,{loading:_,items:[e,t,$,B],className:ve("meta")})})(),(0,X.jsxs)("div",{className:ve("title"),children:[(0,X.jsx)(m.$,{entityName:V("pdisk"),status:(0,y.XY)(W),id:(0,y.r$)(x,N)}),(0,X.jsx)(ee,{decommission:G})]}),(0,X.jsxs)("div",{className:ve("controls"),children:[(0,X.jsxs)(u.B,{onConfirmAction:H,onConfirmActionSuccess:F,buttonDisabled:!T||!t,buttonView:"normal",dialogHeader:V("restart-pdisk-dialog-header"),dialogText:V("restart-pdisk-dialog-text"),retryButtonText:V("force-restart-pdisk-button"),withPopover:!0,popoverContent:V("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,X.jsx)(n.I,{data:o.A}),V("restart-pdisk-button")]}),s?(0,X.jsx)(Q,{decommission:G,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:L,nodeId:x,className:ve("info")}),(0,X.jsx)("div",{className:ve("tabs"),children:(0,X.jsx)(a.t,{size:"l",items:De,activeTab:z,wrapTo:({id:e},t)=>{const s=T?(0,D.Ck)(N,x,{activeTab:e}):void 0;return(0,X.jsx)(h.E,{to:s,children:t},e)}})}),(()=>{switch(z){case"spaceDistribution":return L?(0,X.jsx)("div",{className:ve("disk-distribution"),children:(0,X.jsx)(ue,{data:L})}):null;case"storage":return T?(0,X.jsx)(C.z,{nodeId:x,pDiskId:N,parentRef:c,viewContext:{nodeId:null===x||void 0===x?void 0:x.toString(),pDiskId:null===N||void 0===N?void 0:N.toString()}}):null;default:return null}})()]})}},76938:(e,t,s)=>{s.d(t,{A:()=>o});var i=s(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:"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/8155.654c40b5.chunk.js b/ydb/core/viewer/monitoring/static/js/8155.654c40b5.chunk.js new file mode 100644 index 0000000000..afb5a8ab77 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8155.654c40b5.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8155],{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(67440),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/9300.277e4f3f.chunk.js b/ydb/core/viewer/monitoring/static/js/9300.277e4f3f.chunk.js deleted file mode 100644 index 68a1d7c5d8..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9300.277e4f3f.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})}},28539:(e,t,r)=>{r.d(t,{T:()=>a.T});var a=r(53755)},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})]})},95963:(e,t,r)=>{r.d(t,{v:()=>a.v});var a=r(41775)},7117:(e,t,r)=>{r.d(t,{G:()=>Z});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(43951),h=r(78034),g=r(71708),y=r(62710),b=r(98089),f=r(69775),C=r(24555),v=r(28539),F=r(9252),N=r(95963),R=r(64934),x=r(44433),P=r(48372);const j=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"}'),S=(0,P.g4)("ydb-nodes",{en:j}),w=["database","static","other","any"],B={get database(){return S("database")},get static(){return S("static")},get other(){return S("other")},get any(){return S("any")}};var G=r(60712);function T({value:e="database",onChange:t}){return(0,G.jsx)(x.a,{value:e,onUpdate:t,children:w.map((e=>(0,G.jsx)(x.a.Option,{value:e,children:B[e]},e)))})}const I="nodesTableSelectedColumns",_=["NodeId","Host","Uptime","CPU","RAM","Version","Tablets"],E=["NodeId"],U=["SystemState","Host","DC","Rack","Database","Version","Uptime"];function A(e,t){return t?e:e.filter((e=>"SystemState"!==e))}var L=r(59109);const V=(0,r(77506).cn)("ydb-nodes"),k=e=>V("node",{unavailable:(0,h.X7)(e)}),O=e=>e&&403===e.status?(0,G.jsx)(L.O,{position:"left"}):(0,G.jsx)(o.o,{error:e});var q=r(67087);function D(e){var t;const[r,a]=(0,q.useQueryParams)({uptimeFilter:q.StringParam,peerRole:q.StringParam,search:q.StringParam,nodesGroupBy:q.StringParam}),o=h.Bm.parse(r.uptimeFilter),l=null!==(t=r.search)&&void 0!==t?t:"",n=(s=r.peerRole,w.find((e=>e===s)));var s;const u=(0,i.DM)(),d=function(e,t,r){return A(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:x,handlePeerRoleFilterChange:P,handleGroupByParamChange:j}=D(t),{problemFilter:w,handleProblemFilterChange:B}=c(),I=(0,i.DM)(),_=function(e,t){return A(e,t).map((e=>({value:e,content:(0,s.kn)(e)})))}(t,I),E=(0,i.WF)(),U=r&&E;return(0,G.jsxs)(a.Fragment,{children:[(0,G.jsx)(N.v,{onChange:y,placeholder:S("controls_search-placeholder"),width:238,value:p}),I&&e?null:(0,G.jsx)(F.k,{value:w,onChange:B}),e?null:(0,G.jsx)(R.j,{value:m,onChange:x}),U?(0,G.jsxs)(a.Fragment,{children:[(0,G.jsx)(b.E,{variant:"body-2",children:S("controls_peer-role-label")}),(0,G.jsx)(T,{value:h,onChange:P})]}):null,(0,G.jsx)(f.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:l,sortable:!1}),e?(0,G.jsxs)(a.Fragment,{children:[(0,G.jsx)(b.E,{variant:"body-2",children:S("controls_group-by-placeholder")}),(0,G.jsx)(C.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:g?[g]:void 0,onUpdate:e=>{j(e[0])},options:_,className:V("group-by-select"),popupClassName:V("group-by-popup")})]}):null,(0,G.jsx)(v.T,{current:n,total:u,label:S("nodes"),loading:d})]})}var M=r(78524),W=r(40427),Q=r(11906),$=r(69464),H=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:g,problemFilter:y,uptimeFilter:b,peerRoleFilter:f,filterGroup:C,filterGroupBy:v}=null!==i&&void 0!==i?i:{},F=(0,s.kU)(p),N=F?(0,$.T)(F,d):void 0,R=(0,H.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:g,problems_only:(0,h.AB)(y),uptime:(0,h.Fo)(b),filter_peer_role:f,filter_group:C,filter_group_by:v,fieldsRequired:R}),P=(0,Q.N)(x);return{data:P.Nodes||[],found:P.FoundNodes||0,total:P.TotalNodes||0}};function X({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 g=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,G.jsx)(W.k5,{columnsWidthLSKey:s.zO,parentRef:p,columns:d,fetchData:z,limit:50,initialEntitiesCount:m,renderControls:c,renderErrorMessage:O,renderEmptyDataMessage:()=>"All"!==o||l!==h.cW.All?(0,G.jsx)(M.v,{name:"thumbsUp",width:"200"}):S("empty.default"),getRowClassName:k,filters:g,tableName:"nodes"})}var Y=r(78762);function J(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 Z({path:e,database:t,parentRef:r,additionalNodesProps:o,withPeerRoleFilter:n,columns:s=J({database:t,getNodeRef:null===o||void 0===o?void 0:o.getNodeRef}),defaultColumnsIds:u=_,requiredColumnsIds:d=E,selectedColumnsKey:p=I,groupByParams:m=U}){const{uptimeFilter:g,groupByParam:y,handleUptimeFilterChange:b}=D(m),{problemFilter:f,handleProblemFilterChange:C}=c(),v=(0,i.Pm)(),F=(0,i.Ye)();a.useEffect((()=>{!F||"All"===f&&g===h.cW.All||(C("All"),b(h.cW.All))}),[C,b,f,g,F]);return(0,G.jsx)(l.r,{loading:!v,children:F&&y?(0,G.jsx)(te,{path:e,database:t,parentRef:r,withPeerRoleFilter:n,columns:s,defaultColumnsIds:u,requiredColumnsIds:d,selectedColumnsKey:p,groupByParams:m}):(0,G.jsx)(ee,{path:e,database:t,parentRef:r,withPeerRoleFilter:n,columns:s,defaultColumnsIds:u,requiredColumnsIds:d,selectedColumnsKey:p,groupByParams:m})})}function ee({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:o,defaultColumnsIds:l,requiredColumnsIds:n,selectedColumnsKey:u,groupByParams:d}){const{searchValue:p,uptimeFilter:h,peerRoleFilter:g}=D(d),{problemFilter:y}=c(),b=(0,i.Ye)(),{columnsToShow:f,columnsToSelect:C,setColumns:v}=(0,m.K)(o,u,s.uG,l,n);return(0,G.jsx)(X,{path:e,database:t,searchValue:p,problemFilter:y,uptimeFilter:h,peerRoleFilter:g,columns:f,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:r})=>(0,G.jsx)(K,{withGroupBySelect:b,groupByParams:d,withPeerRoleFilter:a,columnsToSelect:C,handleSelectedColumnsUpdate:v,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!r})})}function te({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:l,defaultColumnsIds:i,requiredColumnsIds:p,selectedColumnsKey:c,groupByParams:b}){const{searchValue:f,peerRoleFilter:C,groupByParam:v}=D(b),[F]=(0,d.Nt)(),{columnsToShow:N,columnsToSelect:R,setColumns:x}=(0,m.K)(l,c,s.uG,i,p),{currentData:P,isFetching:j,error:w}=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:T,FoundNodes:I=0,TotalNodes:_=0}=P||{},{expandedGroups:E,setIsGroupExpanded:U}=(0,y.$)(T);return(0,G.jsxs)(n.L,{children:[(0,G.jsx)(n.L.Controls,{children:(0,G.jsx)(K,{withGroupBySelect:!0,groupByParams:b,withPeerRoleFilter:a,columnsToSelect:R,handleSelectedColumnsUpdate:x,entitiesCountCurrent:I,entitiesCountTotal:_,entitiesLoading:B})}),w?(0,G.jsx)(o.o,{error:w}):null,(0,G.jsx)(n.L.Table,{loading:B,className:V("groups-wrapper"),children:null!==T&&void 0!==T&&T.length?T.map((({name:a,count:o})=>{const l=E[a];return(0,G.jsx)(g.Q,{title:a,count:o,entityName:S("nodes"),expanded:l,onIsExpandedChange:U,children:(0,G.jsx)(X,{path:e,database:t,searchValue:f,problemFilter:"All",uptimeFilter:h.cW.All,peerRoleFilter:C,filterGroup:a,filterGroupBy:v,initialEntitiesCount:o,columns:N,parentRef:r})},a)})):S("no-nodes-groups")})]})}},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"})},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)}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9796.47d2388f.chunk.js b/ydb/core/viewer/monitoring/static/js/9796.47d2388f.chunk.js new file mode 100644 index 0000000000..d2043a9458 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9796.47d2388f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9796],{90053:(e,t,s)=>{s.d(t,{E:()=>h});var a=s(8873),n=s(84476),r=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)(n.$,{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)(n.$.Icon,{children:(0,m.jsx)(a.A,{})})}),(0,m.jsxs)(r.l,{value:[String(i)],onUpdate:e=>{d(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,m.jsx)(r.l.Option,{value:"0",children:c("None")}),(0,m.jsx)(r.l.Option,{value:"15000",children:c("15 sec")}),(0,m.jsx)(r.l.Option,{value:"60000",children:c("1 min")}),(0,m.jsx)(r.l.Option,{value:"120000",children:c("2 min")}),(0,m.jsx)(r.l.Option,{value:"300000",children:c("5 min")})]})]})}},24543:(e,t,s)=>{s.d(t,{u:()=>o});var a=s(59284),n=s(39238),r=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,r.jsxs)(a.Fragment,{children:[(0,r.jsx)(n.z,{anchorRef:h,open:m||u,placement:l,hasArrow:i,onOutsideClick:()=>{p(!1)},...d,children:t}),(0,r.jsx)("span",{className:s,ref:h,onClick:o?()=>{p(!0)}:void 0,onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:e})]})}},88226:(e,t,s)=>{s.d(t,{V:()=>d});s(59284);var a=s(77506),n=s(76086),r=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)(n.TJ),h={inverted:p,compact:s,faded:a,empty:u,inactive:d},g=void 0!==t&&(0,r.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)]})}},53755:(e,t,s)=>{s.d(t,{T:()=>l});var a=s(47665),n=s(77506);const r=(0,s(48372).g4)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var o=s(60712);const i=(0,n.cn)("ydb-entities-count"),l=({total:e,current:t,label:s,loading:n,className:l})=>{let d="";return s&&(d+=`${s}: `),n?d+="...":(d+=`${t}`,e&&Number(e)!==Number(t)&&(d+=` ${r("of")} ${e}`)),(0,o.jsx)(a.J,{theme:"info",size:"m",className:i(null,l),children:d})}},10508:(e,t,s)=>{s.d(t,{c:()=>c});var a=s(67884),n=s(96873),r=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=r.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 N=()=>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?(y=c,(0,d.jsx)(a.N,{target:"_blank",href:y,children:N()})):N(),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)(n.b,{text:t,size:"xs",view:"normal",className:u("clipboard-button",{visible:S})})})]})]});var y}},13096:(e,t,s)=>{s.d(t,{P:()=>u});var a=s(59284),n=s(39238),r=s(43781),o=s.n(r),i=s(77506),l=s(60712);const d=(0,i.cn)("hover-popup"),u=({children:e,popupContent:t,showPopup:s,offset:r,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]),N=a.useCallback((()=>{f(!1),null===c||void 0===c||c()}),[c]),y=a.useMemo((()=>o()(N,h)),[N,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),N()}),[N]),T=v||s||x||D;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("span",{ref:S,onMouseEnter:b,onMouseLeave:()=>{k.cancel(),y()},children:e}),(0,l.jsx)(n.z,{contentClassName:d(null,p),anchorRef:i||S,open:T,onMouseEnter:C,onMouseLeave:j,onEscapeKeyDown:E,onBlur:A,placement:m,hasArrow:!0,offset:r||[0,12],children:(0,l.jsx)("div",{onContextMenu:P,children:t})})]})}},73473:(e,t,s)=>{s.d(t,{S:()=>y});var a=s(38501),n=s(40336),r=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"),N=(e,t)=>[(0,r.z3)({value:e,size:"gb",withSizeLabel:!1,precision:2}),(0,r.z3)({value:t,size:"gb",withSizeLabel:!0,precision:1})];function y({stats:e,percents:t,formatValues:s,className:o,warningThreshold:i,dangerThreshold:m}){var p;const y=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(y))/parseFloat(String(b))*100)||0;w=w>100?100:w;let D=y,I=b,C="/";t?(D=w+"%",I="",C=""):s&&([D,I]=s(Number(y),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),n=Math.max(0,t-a);return s.push({label:h("text_other"),key:"Other",value:n,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(y)),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)(n.u,{responsive:!0,children:j.map((({label:e,value:t,capacity:s,key:a})=>(0,v.jsx)(n.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:N,colorizeProgress:!0}):(0,r.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,y?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})]})})})}},96927:(e,t,s)=>{s.d(t,{O:()=>f,f:()=>v});var a=s(59284),n=s(24600),r=s(54090),o=s(7435),i=s(76086),l=s(31684),d=s(90182),u=s(12888),c=s(41650),m=s(60073),p=s(25196),h=s(60712);const g=[r.m.Orange,r.m.Red,r.m.Yellow],v=(e,t,s)=>{const{AvailableSize:a,TotalSize:n,State:r,PDiskId:d,NodeId:u,StringifiedId:m,Path:v,Realtime:f,Type:S,Device:k}=e,N=[{label:"PDisk",value:null!==m&&void 0!==m?m:i.Pd},{label:"State",value:r||"not available"},{label:"Type",value:S||"unknown"}];if(u&&N.push({label:"Node Id",value:u}),null!==t&&void 0!==t&&t.Host&&N.push({label:"Host",value:t.Host}),null!==t&&void 0!==t&&t.DC&&N.push({label:"DC",value:t.DC}),v&&N.push({label:"Path",value:v}),(0,c.kf)(n)&&N.push({label:"Available",value:`${(0,c.wb)(a)} of ${(0,c.wb)(n)}`}),f&&g.includes(f)&&N.push({label:"Realtime",value:f}),k&&g.includes(k)&&N.push({label:"Device",value:k}),s&&(0,o.f8)(u)&&(0,o.f8)(d)){const e=(0,l.ar)({nodeId:u,pDiskId:d});N.push({label:"Links",value:(0,h.jsx)(p.K,{title:"Developer UI",url:e})})}return N},f=({data:e})=>{const t=(0,u.X)(),s=(0,d.N4)(n.K),r=(0,o.f8)(e.NodeId)?null===s||void 0===s?void 0:s.get(e.NodeId):void 0,i=a.useMemo((()=>v(e,r,t)),[e,r,t]);return(0,h.jsx)(m.z_,{title:"PDisk",info:i,size:"s"})}},40427:(e,t,s)=>{s.d(t,{k5:()=>E});var a=s(59284),n=s(89073);const r=s(21334).F.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async({offset:e,limit:t,sortParams:s,filters:a,columnsIds:n,fetchData:r},{signal:o})=>{try{return{data:await r({limit:t,offset:e,filters:a,sortParams:s,columnsIds:n,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:n="left",resizeable:r})=>(0,m.jsx)("td",{className:c("row-cell",{align:n},t),style:{height:`${s}px`,width:`${a}px`,maxWidth:r?`${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 n=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:n,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:n})=>{const r=null===a||void 0===a?void 0:a(e);return(0,m.jsx)("tr",{className:c("row",r),children:s.map((s=>{var a;const r=null!==(a=s.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:n,width:s.width,align:s.align,className:s.className,resizeable:r,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 N=a.memo;const y=N((function({id:e,chunkSize:t,calculatedCount:s,rowHeight:n,columns:d,fetchData:u,tableName:c,filters:p,sortParams:f,getRowClassName:S,renderErrorMessage:N,renderEmptyDataMessage:y,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};r.useFetchTableChunkQuery(j,{skip:D||!x,pollingInterval:C});const{currentData:P,error:A}=r.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*n+"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:N?N(e):(0,m.jsx)(l.o,{error:e})})}return(0,o._e)(E).map((e=>(0,m.jsx)(h,{columns:d,height:n,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:n,getRowClassName:S},t))):(0,m.jsx)(v,{columns:d,children:y?y():k("empty")})})()})}));function b({minWidth:e,maxWidth:t,getCurrentColumnWidth:s,onResize:n}){const r=a.useRef(null),[o,i]=a.useState(!1);return a.useEffect((()=>{const a=r.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,r=function(e,t=40,s=1/0){return Math.max(t,Math.min(e,s))}(l+a,e,t);r!==d&&(d=r,null===n||void 0===n||n(d))})),c=e=>{x(e),void 0!==d&&(null===n||void 0===n||n(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)}}),[n,e,t,s]),(0,m.jsx)("span",{ref:r,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:n,onSort:r,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===r||void 0===r||r(e.name))},children:[(0,m.jsx)("div",{className:c("head-cell-content"),children:v}),(0,m.jsx)(D,{sortOrder:s,sortable:e.sortable,defaultSortOrder:n})]}),t?(0,m.jsx)(b,{maxWidth:e.resizeMaxWidth,minWidth:e.resizeMinWidth,getCurrentColumnWidth:h,onResize:g}):null]})},C=({columns:e,onSort:t,onColumnsResize:s,defaultSortOrder:n=-1,rowHeight:r=41})=>{const[o,i]=a.useState({}),l=e=>{let s={};if(e===o.columnId){if(o.sortOrder&&o.sortOrder!==n)return i(s),void(null===t||void 0===t||t(s));s={sortOrder:1===o.sortOrder?-1:1,columnId:e}}else s={sortOrder:n,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:n,onSort:l,rowHeight:r,onColumnsResize:s},e.name)}))})})]})};var j=s(13847);const P=({limit:e,initialEntitiesCount:t,fetchData:s,filters:r,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,N=t||1,[b,x]=a.useState(p),[w,D]=a.useState(k),[I,P]=a.useState(N),[A,E]=a.useState(!0),T=a.useRef(null),U=(({parentRef:e,tableRef:t,totalItems:s,rowHeight:n,chunkSize:r,overscanCount:o=1})=>{const i=a.useMemo((()=>Math.ceil(s/r)),[r,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/n/r)-o,0),end:Math.min(Math.floor(c/n/r)+o,Math.max(i-1,0))}}),[e,t,n,r,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}),M=a.useMemo((()=>I?I%e||e:1),[I,e]),R=a.useCallback(((e,t)=>{D(e),P(t),E(!1)}),[]);a.useLayoutEffect((()=>{D(k),P(N),E(!0),null!==u&&void 0!==u&&u.current&&u.current.scrollTo(0,0)}),[r,N,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)(y,{id:a,calculatedCount:a===U.length-1?M:e,chunkSize:e,rowHeight:d,columns:i,fetchData:s,filters:r,tableName:o,sortParams:b,getRowClassName:l,renderErrorMessage:v,renderEmptyDataMessage:f,onDataFetched:R,isActive:t},a)))]});return(0,m.jsx)("div",{ref:T,className:c(null,S),children:g?(0,m.jsxs)(n.L,{children:[(0,m.jsx)(n.L.Controls,{children:g({inited:!A,totalEntities:w,foundEntities:I})}),(0,m.jsx)(n.L.Table,{children:G()})]}):G()})};var A=s(16819);function E({columnsWidthLSKey:e,columns:t,...s}){const[a,n]=(0,A.a)(e),r=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:r,onColumnsResize:n,containerClassName:c("resizeable-table-container"),...s})}},48295:(e,t,s)=>{s.d(t,{_:()=>u});var a=s(77506),n=s(24543),r=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)(n.u,{className:i({type:a}),content:(0,o.jsx)(r.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)))})},15132:(e,t,s)=>{s.d(t,{O:()=>m});var a=s(38501),n=s(77506),r=s(56839),o=s(35736),i=s(41650),l=s(60712);const d=(0,n.cn)("progress-viewer"),u=e=>(0,r.ZV)((0,r.CR)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function m({value:e,capacity:t,formatValues:s=c,percents:n,className:r,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,N=t,y="/";n?(k=S+"%",N="",y=""):s&&([k,N]=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},r),children:[(0,l.jsx)("div",{className:d("line"),style:x}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kf)(t)&&!v?`${k} ${y} ${N}`:k})]}):(0,l.jsx)("div",{className:`${d({size:u})} ${r} error`,children:"no data"})}},41775:(e,t,s)=>{s.d(t,{v:()=>l});var a=s(59284),n=s(28664),r=s(77506),o=s(60712);const i=(0,r.cn)("ydb-search"),l=({onChange:e,value:t="",width:s,className:r,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)(n.k,{hasClear:!0,autoFocus:!0,style:{width:s},className:i(null,r),placeholder:d,value:u,onUpdate:t=>{c(t),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===e||void 0===e||e(t)}),l)}})}},33775:(e,t,s)=>{s.d(t,{k:()=>m});var a=s(45720),n=s(16929),r=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]:n.A,[i.m.Orange]:r.A,[i.m.Red]:n.A};function m({status:e=i.m.Grey,size:t="s",mode:s="color",className:a}){const n={state:e.toLowerCase(),size:t};return"icons"===s&&e in c?(0,d.jsx)(o.I,{className:u("status-icon",n,a),data:c[e]}):(0,d.jsx)("div",{className:u("status-color",n,a)})}},19228:(e,t,s)=>{s.d(t,{Q:()=>l});var a=s(89169),n=s(77506),r=s(66781),o=s(60712);const i=(0,n.cn)("table-skeleton"),l=({rows:e=2,delay:t=600,className:s})=>{const[n]=(0,r.y)(t);return(0,o.jsxs)("div",{className:i("wrapper",{hidden:!n},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}`)))]})}},89073:(e,t,s)=>{s.d(t,{L:()=>i});var a=s(77506),n=s(19228),r=s(60712);const o=(0,a.cn)("ydb-table-with-controls-layout"),i=({children:e,className:t})=>(0,r.jsx)("div",{className:o(null,t),children:e});i.Controls=function({children:e,className:t}){return(0,r.jsx)("div",{className:o("controls-wrapper"),children:(0,r.jsx)("div",{className:o("controls",t),children:e})})},i.Table=function({children:e,loading:t,className:s}){return t?(0,r.jsx)(n.Q,{className:o("loader")}):(0,r.jsx)("div",{className:o("table",s),children:e})}},64934:(e,t,s)=>{s.d(t,{j:()=>o});var a=s(44433),n=s(78034),r=s(60712);const o=({value:e,onChange:t,className:s})=>(0,r.jsxs)(a.a,{value:e,onUpdate:t,className:s,children:[(0,r.jsx)(a.a.Option,{value:n.cW.All,children:n.DG[n.cW.All]}),(0,r.jsx)(a.a.Option,{value:n.cW.SmallUptime,children:n.DG[n.cW.SmallUptime]})]})},13342:(e,t,s)=>{s.d(t,{U:()=>i});var a=s(47665),n=s(77506),r=s(60712);const o=(0,n.cn)("ydb-usage-label");function i({value:e,overloadThreshold:t=90,theme:s,...n}){return(0,r.jsxs)(a.J,{theme:s,className:o({overload:Number(e)>=t}),...n,children:[e||0,"%"]})}},8809:(e,t,s)=>{s.d(t,{y:()=>P});var a=s(77506),n=s(88226),r=s(13096),o=s(44294),i=s(59284),l=s(47665),d=s(24600),u=s(54090),c=s(7435),m=s(76086),p=s(31684),h=s(7187),g=s(90182),v=s(12888),f=s(41650),S=s(60073),k=s(25196),N=s(96927),y=s(29819),b=s(92459),x=s(56839);function w(e){let t;const s=(0,h.NJ)(e)?e.VDiskSlotId:e.VSlotId;if((0,c.f8)(s)&&(0,c.f8)(e.PDiskId)&&(0,c.f8)(e.NodeId))t=(0,b.yX)(s,e.PDiskId,e.NodeId);else if((0,c.f8)(e.NodeId)&&(0,h.NJ)(e)){var a;t=(0,y.vI)(e.NodeId,{pdiskId:null===(a=e.PDiskId)||void 0===a?void 0:a.toString(),vdiskId:(0,x.U9)(e.VDiskId)},"structure")}return t}var D=s(60712);const I=(0,a.cn)("vdisk-storage-popup"),C=({data:e})=>{const t=(0,h.NJ)(e),s=(0,v.X)(),a=i.useMemo((()=>t?((e,t)=>{var s,a,n,r;const{NodeId:o,PDiskId:i,VDiskSlotId:l,StringifiedId:d,VDiskState:m,SatisfactionRank:h,DiskSpace:g,FrontQueues:v,Replicated:S,UnsyncedVDisks:N,AllocatedSize:y,ReadThroughput:b,WriteThroughput:x,StoragePoolName:w}=e,I=[{label:"VDisk",value:d},{label:"State",value:null!==m&&void 0!==m?m:"not available"}];var C,j;if(w&&I.push({label:"StoragePool",value:w}),h&&(null===(s=h.FreshRank)||void 0===s?void 0:s.Flag)!==u.m.Green&&I.push({label:"Fresh",value:null===(C=h.FreshRank)||void 0===C?void 0:C.Flag}),h&&(null===(a=h.LevelRank)||void 0===a?void 0:a.Flag)!==u.m.Green&&I.push({label:"Level",value:null===(j=h.LevelRank)||void 0===j?void 0:j.Flag}),h&&null!==(n=h.FreshRank)&&void 0!==n&&n.RankPercent&&I.push({label:"Fresh",value:h.FreshRank.RankPercent}),h&&null!==(r=h.LevelRank)&&void 0!==r&&r.RankPercent&&I.push({label:"Level",value:h.LevelRank.RankPercent}),g&&g!==u.m.Green&&I.push({label:"Space",value:g}),v&&v!==u.m.Green&&I.push({label:"FrontQueues",value:v}),!1===S&&I.push({label:"Replicated",value:"NO"}),N&&I.push({label:"UnsyncVDisks",value:N}),Number(y)&&I.push({label:"Allocated",value:(0,f.wb)(y)}),Number(b)&&I.push({label:"Read",value:(0,f.O4)(b)}),Number(x)&&I.push({label:"Write",value:(0,f.O4)(x)}),t&&(0,c.f8)(o)&&(0,c.f8)(i)&&(0,c.f8)(l)){const e=(0,p.Wg)({nodeId:o,pDiskId:i,vDiskSlotId:l});I.push({label:"Links",value:(0,D.jsx)(k.K,{title:"Developer UI",url:e})})}return I})(e,s):((e,t)=>{const{NodeId:s,PDiskId:a,VSlotId:n,StoragePoolName:r}=e,o=[{label:"State",value:"not available"}];if(r&&o.push({label:"StoragePool",value:r}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:m.Pd},{label:"PDiskId",value:null!==a&&void 0!==a?a:m.Pd},{label:"VSlotId",value:null!==n&&void 0!==n?n:m.Pd}),t&&(0,c.f8)(s)&&(0,c.f8)(a)&&(0,c.f8)(n)){const e=(0,p.Wg)({nodeId:s,pDiskId:a,vDiskSlotId:n});o.push({label:"Links",value:(0,D.jsx)(k.K,{title:"Developer UI",url:e})})}return o})(e,s)),[e,t,s]),n=(0,g.N4)(d.K),r=(0,c.f8)(e.NodeId)?null===n||void 0===n?void 0:n.get(e.NodeId):void 0,y=i.useMemo((()=>t&&e.PDisk&&(0,N.f)(e.PDisk,r,s)),[e,r,t,s]),b=[];if("Donors"in e&&e.Donors){const t=e.Donors;for(const e of t)b.push({label:"VDisk",value:(0,D.jsx)(o.E,{to:w(e),children:e.StringifiedId})})}return(0,D.jsxs)("div",{className:I(),children:[e.DonorMode&&(0,D.jsx)(l.J,{className:I("donor-label"),children:"Donor"}),(0,D.jsx)(S.z_,{title:"VDisk",info:a,size:"s"}),y&&(0,D.jsx)(S.z_,{title:"PDisk",info:y,size:"s"}),b.length>0&&(0,D.jsx)(S.z_,{title:"Donors",info:b,size:"s"})]})},j=(0,a.cn)("ydb-vdisk-component"),P=({data:e={},compact:t,inactive:s,showPopup:a,onShowPopup:i,onHidePopup:l,progressBarClassName:d,delayClose:u,delayOpen:c})=>{const m=w(e);return(0,D.jsx)(r.P,{showPopup:a,onShowPopup:i,onHidePopup:l,popupContent:(0,D.jsx)(C,{data:e}),offset:[0,5],delayClose:u,delayOpen:c,children:(0,D.jsx)("div",{className:j(),children:(0,D.jsx)(o.E,{to:m,className:j("content"),children:(0,D.jsx)(n.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,compact:t,inactive:s,className:d})})})})}},78762:(e,t,s)=>{s.d(t,{pt:()=>ae,SH:()=>q,fr:()=>B,uk:()=>z,Bg:()=>J,Nh:()=>G,ID:()=>$,fR:()=>Y,iX:()=>F,Vz:()=>X,H:()=>Z,_E:()=>R,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),n=s(40336),r=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 N=({node:e,getNodeRef:t,database:s,statusForIcon:a})=>{if(!e.Host)return(0,k.jsx)("span",{children:"\u2014"});const n="ConnectStatus"===a?e.ConnectStatus:e.SystemState,r=!(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=r?(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:!r,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:n,path:i,hasClipboardButton:!0})})};var y=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 n;const r=(0,h.vI)(s,{database:t},"tablets"),o=`${e.label}: ${e.count}`,i=D("tablet",{state:null===(n=e.state)||void 0===n?void 0:n.toLowerCase()});return(0,k.jsx)(x.N_,{to:r,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 M=(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 G({getNodeRef:e,database:t},{statusForIcon:s="SystemState"}={}){return{name:P.vg.Host,header:P.uG.Host,render:({row:a})=>(0,k.jsx)(N,{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)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("field_memory-used"),children:t}),(0,k.jsx)(n.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:M("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)(y._,{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)(n.u,{responsive:!0,children:e.PoolStats.map((e=>(0,u.kf)(e.Usage)?(0,k.jsx)(n.u.Item,{name:e.Name,children:(0,S.Qz)("Usage",e.Usage).value},e.Name):null))}),children:(0,k.jsx)(b.O,{className:M("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,r.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)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("sum"),children:(0,l.l9)(t)},"NetworkUtilization"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:(0,l.l9)(s)},"NetworkUtilizationMin"),(0,k.jsx)(n.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)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("avg"),children:T(t)},"PingTimeUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:T(s)},"PingTimeMinUs"),(0,k.jsx)(n.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)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("avg"),children:U(t)},"ClockSkewUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:U(s)},"ClockSkewMinUs"),(0,k.jsx)(n.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:()=>r,xd:()=>i,zO:()=>n});var a=s(31911);const n="nodesTableColumnsWidth",r={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))}},31911:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(48372);const n=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"}'),r=(0,a.g4)("ydb-nodes-columns",{en:n})},10576:(e,t,s)=>{s.d(t,{E:()=>g});var a=s(59284),n=s(88226),r=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:N}=e,y=(0,u.f8)(k)&&(0,u.f8)(N),b=a.useRef(null);let x;return y&&(x=(0,d.Ck)(N,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)(r.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)(n.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,className:f}),(0,p.jsx)("div",{className:h("media-type"),children:e.Type})]})})]})}},99936:(e,t,s)=>{s.d(t,{z:()=>Ve});var a=s(12888),n=s(59284),r=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 N=["NodeId","Host","Uptime","CPU","RAM","PDisks"],y=["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 M=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"}'),R=(0,U.g4)("ydb-storage",{en:M});var G=s(59109),L=s(44508),z=s(77506);const V=(0,z.cn)("global-storage"),W=e=>403===e.status?(0,j.jsx)(G.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),n=H.parse(t.visible),r=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:n,searchValue:r,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:r,entitiesLoading:o,columnsToSelect:i,handleSelectedColumnsUpdate:l}){const{searchValue:d,storageType:u,visibleEntities:v,storageGroupsGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:N,handleVisibleEntitiesChange:y,handleStorageGroupsGroupByParamChange:b}=B(),x=(0,a.X)(),w=e&&x;return(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(g.v,{value:d,onChange:k,placeholder:R("controls_groups-search-placeholder"),className:V("search")}),w&&(0,j.jsx)(A,{value:u,onChange:N}),t?null:(0,j.jsx)(T,{value:v,onChange:y}),(0,j.jsx)(c.O,{popupWidth:200,items:i,showStatus:!0,onUpdate:l,sortable:!1}),t?(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:R("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:R("groups"),loading:o,total:r,current:s})]})}function Y({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:a,entitiesLoading:r,columnsToSelect:o,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:u,nodesUptimeFilter:f,storageNodesGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:N,handleVisibleEntitiesChange:y,handleUptimeFilterChange:b,handleStorageNodesGroupByParamChange:w}=B();return(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(g.v,{value:l,onChange:k,placeholder:R("controls_nodes-search-placeholder"),className:V("search")}),e&&(0,j.jsx)(A,{value:d,onChange:N}),t?null:(0,j.jsx)(T,{value:u,onChange:y}),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)(n.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:R("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:R("nodes"),loading:r,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 ne=s(16029),re=s(69464),oe=s(40781);const ie=({columns:e,database:t,nodeId:s,groupId:a,pDiskId:r,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)(),N=(y=k,n.useCallback((async e=>{const{limit:t,offset:s,sortParams:a,filters:n,columnsIds:r}=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!==n&&void 0!==n?n:{},v=(0,f.GP)(i),S=v?(0,re.T)(v,o):void 0,k=(0,oe.R)(r,f.YX),{groups:N,found:b,total:x}=await(0,ne.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:y});return{data:N||[],found:b||0,total:x||0}}),[y]));var y;const b=n.useMemo((()=>({searchValue:u,visibleEntities:c,database:t,nodeId:s,groupId:a,pDiskId:r,filterGroup:i,filterGroupBy:d})),[u,c,t,s,a,r,i,d]);return(0,j.jsx)(o.r,{loading:!S,children:(0,j.jsx)(J.k5,{columnsWidthLSKey:f.qK,parentRef:p,columns:e,fetchData:N,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)(),r=n.useMemo((()=>{const e=(0,de.J)({viewContext:t});return s?e:e.filter((e=>!(0,f.Ai)(e.name)))}),[s,t]),o=n.useMemo((()=>e===I.missing?[...f.LO,f.UW.Degraded]:e===I.space?[...f.LO,f.UW.DiskSpace]:f.LO),[e]);return(0,le.K)(r,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(),r=(0,l.Pm)(),i=(0,l.SA)();n.useEffect((()=>{i&&"all"!==s&&a()}),[a,i,s]);return(0,j.jsx)(o.r,{loading:!r,children:i&&t?(0,j.jsx)(ge,{...e}):(0,j.jsx)(he,{...e})})}function he({database:e,nodeId:t,groupId:s,pDiskId:a,viewContext:n,parentRef:r,initialEntitiesCount:o}){const{searchValue:i,visibleEntities:d,handleShowAllGroups:u}=B(),c=(0,l.SA)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=ue({visibleEntities:d,viewContext:n});return(0,j.jsx)(ie,{database:e,nodeId:t,groupId:s,pDiskId:a,searchValue:i,visibleEntities:d,onShowAll:u,parentRef:r,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:n,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:N}=d.S.useGetStorageGroupsInfoQuery({database:e,with:"all",nodeId:t,groupId:s,pDiskId:a,filter:c,shouldUseGroupsHandler:!0,group:m},{pollingInterval:l}),y=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:y,columnsToSelect:v,handleSelectedColumnsUpdate:f})}),N?(0,j.jsx)(r.o,{error:N}):null,(0,j.jsx)(i.L.Table,{loading:y,className:V("groups-wrapper"),children:null!==b&&void 0!==b&&b.length?b.map((({name:r,count:o})=>{const i=D[r];return(0,j.jsx)(ce.Q,{title:r,count:o,entityName:R("groups"),expanded:i,onIsExpandedChange:I,children:(0,j.jsx)(ie,{database:e,parentRef:n,nodeId:t,groupId:s,pDiskId:a,filterGroup:r,filterGroupBy:m,searchValue:c,visibleEntities:"all",onShowAll:h,renderErrorMessage:W,columns:g,initialEntitiesCount:o})},r)})):R("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}),Ne=({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 ye=s(11905);const be=async e=>{const{type:t="static",storage:s=!0,limit:a,offset:n,sortParams:r,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!==r&&void 0!==r?r:{},S=(0,k.kU)(f),N=S?(0,re.T)(S,v):void 0,y=(0,oe.R)(i,k.fN),b=await window.api.viewer.getNodes({type:t,storage:s,limit:a,offset:n,sort:N,filter:l,uptime:(0,_.Fo)(d),with:u,database:c,node_id:m,group_id:p,filter_group:h,filter_group_by:g,fieldsRequired:y}),x=(0,ye.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:r,filterGroupBy:o,searchValue:i,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:c,renderControls:m,renderErrorMessage:p,initialEntitiesCount:h})=>{const g=n.useMemo((()=>({searchValue:i,visibleEntities:l,nodesUptimeFilter:d,database:t,nodeId:s,groupId:a,filterGroup:r,filterGroupBy:o})),[i,l,d,t,s,a,r,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)(Ne,{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 n=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:n,viewContext:e})},s.PDiskId)}))})},align:Ie.Ay.CENTER,sortable:!1,resizeable:!1});function Ue({visibleEntities:e,database:t,additionalNodesProps:s,viewContext:a}){const r=n.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=n.useMemo((()=>e===I.missing?[...y,k.vg.Missing]:y),[e]);return(0,le.K)(r,"storageNodesSelectedColumns",k.uG,N,o)}const Me=e=>{const{storageNodesGroupByParam:t,visibleEntities:s,nodesUptimeFilter:a,handleShowAllNodes:r}=B(),i=(0,l.Pm)(),d=(0,l.Ye)();n.useEffect((()=>{!d||"all"===s&&a===_.cW.All||r()}),[r,a,d,s]);return(0,j.jsx)(o.r,{loading:!i,children:d&&t?(0,j.jsx)(Ge,{...e}):(0,j.jsx)(Re,{...e})})};function Re({database:e,nodeId:t,groupId:s,viewContext:a,parentRef:n,initialEntitiesCount:r}){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:n,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:r})}function Ge({database:e,groupId:t,nodeId:s,viewContext:a,parentRef:n}){const[r]=(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:r}),S=void 0===g&&v,{tableGroups:k,found:N=0,total:y=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:N,entitiesCountTotal:y,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:r})=>{const i=b[a];return(0,j.jsx)(ce.Q,{title:a,count:r,entityName:R("nodes"),expanded:i,onIsExpandedChange:x,children:(0,j.jsx)(De,{database:e,parentRef:n,nodeId:s,groupId:t,searchValue:o,visibleEntities:"all",nodesUptimeFilter:_.cW.All,onShowAll:c,filterGroup:a,filterGroupBy:l,renderErrorMessage:W,columns:m,initialEntitiesCount:r})},a)})):R("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)(Me,{initialEntitiesCount:(0,ze.b0)(e.viewContext),...e}):(0,j.jsx)(pe,{initialEntitiesCount:(0,ze.QQ)(e.viewContext),...e})}},20831:(e,t,s)=>{s.d(t,{J:()=>oe,k:()=>re});var a=s(79879),n=s(4557),r=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),N=s(41650),y=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,n]=y.useState(),r=(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:n,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:n,withDCMargin:r.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:n}){const r={...e,PDisk:void 0},o=e.StringifiedId,i=(0,N.kf)(r.AllocatedSize)?void 0:n,l=Number(r.AllocatedSize)||1;return(0,C.jsx)("div",{style:{flexGrow:l,minWidth:i},className:j("vdisk-item"),children:(0,C.jsx)(w.y,{data:r,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 n=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===n,onShowPopup:()=>s(n),onHidePopup:()=>s(void 0)}):null}var T=s(7187);const U="--ydb-stack-level",M=(0,g.cn)("stack"),R=({children:e,className:t})=>(0,C.jsx)("div",{className:M(null,t),children:y.Children.map(e,((e,t)=>y.isValidElement(e)?(0,C.jsx)("div",{className:M("layer"),style:{[U]:t},children:e}):null))});function G({data:e,className:t,stackClassName:s,...a}){const{Donors:n,...r}=e||{},o=n&&n.length>0?(0,C.jsxs)(R,{className:s,children:[(0,C.jsx)(w.y,{data:r,...a}),n.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)(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:r.m.Immediate,className:O("pool-name-wrapper"),children:(0,C.jsx)("span",{className:O("pool-name"),children:e.PoolName})}):v.Pd,align:n.Ay.LEFT},F={name:W.UW.MediaType,header:W.H6.MediaType,width:100,resizeMinWidth:100,align:n.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:r.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:n.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:n.Ay.LEFT,defaultOrder:n.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:n.Ay.LEFT,defaultOrder:n.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:n.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:n.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:n.Ay.RIGHT},Q={name:W.UW.Used,header:W.H6.Used,width:100,render:({row:e})=>(0,N.wb)(e.Used,!0),align:n.Ay.RIGHT},X={name:W.UW.Limit,header:W.H6.Limit,width:100,render:({row:e})=>(0,N.wb)(e.Limit),align:n.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:n.Ay.CENTER},Z={name:W.UW.Read,header:W.H6.Read,width:100,render:({row:e})=>e.Read?(0,N.O4)(e.Read):"-",align:n.Ay.RIGHT},ee={name:W.UW.Write,header:W.H6.Write,width:100,render:({row:e})=>e.Write?(0,N.O4)(e.Write):"-",align:n.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:n.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:n.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:n.Ay.CENTER,width:780,resizeable:!1,sortable:!1}),ne=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:n.Ay.CENTER,width:900,resizeable:!1,sortable:!1}),re=()=>[K,F,_,Y,Q,X].map((e=>({...e,sortable:!1}))),oe=e=>[K,H,F,_,B,$,Y,J,Q,X,q,Z,ee,te,se,ae(e),ne(e)].map((e=>({...e,sortable:(0,W.i4)(e.name)})))},10360:(e,t,s)=>{s.d(t,{hu:()=>m,YX:()=>k,LO:()=>p,UW:()=>d,H6:()=>h,qK:()=>i,SE:()=>f,zY:()=>l,GP:()=>y,Ai:()=>c,i4:()=>b,kY:()=>S});var a=s(370),n=s(48372);const r=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,n.g4)("ydb-storage-groups-columns",{en:r}),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"]},N={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 y(e){return N[e]}function b(e){return Boolean(y(e))}},61456:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(48372);const n=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"}'),r=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:r,en:n})},71708:(e,t,s)=>{s.d(t,{Q:()=>d});s(59284);var a=s(33705),n=s(98089),r=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)(n.E,{variant:"subheader-2",children:t}),(0,i.jsxs)(n.E,{variant:"body-2",color:"secondary",className:l("count"),children:[s,": ",(0,i.jsx)(r.J,{theme:"normal",children:o})]})]})]})}),d?(0,i.jsx)("div",{className:l("content"),children:e}):null]})}},62710:(e,t,s)=>{s.d(t,{$:()=>n});var a=s(59284);function n(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})))}),[])}}},3218:(e,t,s)=>{s.d(t,{Ep:()=>g,OH:()=>c,QQ:()=>h,b0:()=>p,k_:()=>u});var a=s(59284),n=s(24600),r=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,r.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,r.f8)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(a&&=String(e.NodeId)===t.nodeId),(0,r.f8)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(a&&=String(e.PDiskId)===t.pDiskId),(0,r.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,r.f8)(null===e||void 0===e?void 0:e.nodeId)||(0,r.f8)(null===e||void 0===e?void 0:e.pDiskId)||(0,r.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function h(e){return(0,r.f8)(null===e||void 0===e?void 0:e.groupId)||(0,r.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function g(e=[],t){const s=(0,i.N4)(n.K);return a.useMemo((()=>{const a=[];return function(e){return"mirror-3-dc"===e||"mirror-3of4"===e}(t)?(e.forEach(((t,n)=>{var r,o,i;(null===s||void 0===s||null===(r=s.get(Number(null===t||void 0===t?void 0:t.NodeId)))||void 0===r?void 0:r.DC)!==(null===s||void 0===s||null===(o=s.get(Number(null===(i=e[n+1])||void 0===i?void 0:i.NodeId)))||void 0===o?void 0:o.DC)&&a.push(n)})),a):a}),[t,e,s])}},16029:(e,t,s)=>{s.d(t,{t:()=>n});var a=s(11905);async function n({version:e="v2",shouldUseGroupsHandler:t,...s},n){if(t&&"v1"!==e){const e=await window.api.storage.getStorageGroups({...s},n);return(0,a.Rv)(e)}{const t=await window.api.viewer.getStorageInfo({version:e,...s},n);return(0,a.Qi)(t)}}},10174:(e,t,s)=>{s.d(t,{S:()=>o});var a=s(21334),n=s(16029),r=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,r.rz)(s)}}catch(s){return{error:s}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await(0,n.t)(e,{signal:t})}}catch(s){return{error:s}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},11905:(e,t,s)=>{s.d(t,{Rv:()=>N,rz:()=>S,Qi:()=>k});var a=s(94025),n=s(67375),r=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,n;const{Whiteboard:i={},PDisk:l,...h}=e,g={...i,...h,VDiskId:i.VDiskId},v=function(e={}){var t,s,a;const{Whiteboard:n,...i}=e,l={...n,...i,PDiskId:null===n||void 0===n?void 0:n.PDiskId},d=i.PDiskId||(0,r.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===n||void 0===n?void 0:n.Category),f=(0,u.d)({State:null===n||void 0===n?void 0:n.State,AllocatedPercent:c}),S=null!==(a=i.SlotSize)&&void 0!==a?a:null===n||void 0===n?void 0:n.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),N=(0,o.LW)({AvailableSize:null!==(a=g.AvailableSize)&&void 0!==a?a:null===l||void 0===l?void 0:l.AvailableSize,AllocatedSize:g.AllocatedSize}),y=null===(n=h.Donors)||void 0===n?void 0:n.map((e=>p({...e,Whiteboard:{...e.Whiteboard,DonorMode:!0}})));return{...g,...N,PDisk:v,Donors:y,PDiskId:f,StringifiedId:S,Severity:k}}function h(e){const{DiskSpace:t,VDisks:s=[]}=e;return t||(0,r.XY)(Math.max(...s.map((e=>(0,r.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 r,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===n.W.OK||(i+=1);const N=Number(null!==s&&void 0!==s?s:k)||0,y=Number(m)||0;l+=y,d+=N+y,u+=Number(g)||0,c+=Number(v)||0,r=!f||f!==r&&r?"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||r||void 0,DiskSpace:S}},f=e=>{const{VDisks:t=[],PoolName:s,Usage:a=0,Read:n=0,Write:r=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(n),Write:Number(r),Used:Number(o),Limit:Number(i),Degraded:Number(l),DiskSpace:S}},S=e=>{const{Nodes:t,TotalNodes:s,FoundNodes:n,NodeGroups:r,MaximumSlotsPerDisk:l,MaximumDisksPerNode:d}=e,u=null===r||void 0===r?void 0:r.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 n,r,l;const d=(null===(n=e.PDisks)||void 0===n?void 0:n.filter((e=>e.State!==a.t.Normal)).length)||0,u=null===(r=e.PDisks)||void 0===r?void 0:r.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(n),tableGroups:u}},k=e=>{const{StoragePools:t,StorageGroups:s,TotalGroups:a,FoundGroups:n}=e,r=((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:r,total:Number(a)||r.length,found:Number(n)}};function N(e){const{FoundGroups:t,TotalGroups:s,StorageGroups:a=[],StorageGroupGroups:n}=e,r=a.map((e=>{const{Usage:t,DiskSpaceUsage:s,Read:a,Write:n,Used:r,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(n),Used:Number(r),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===n||void 0===n?void 0:n.map((({GroupName:e,GroupCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e)));return{groups:r,total:Number(s)||r.length,found:Number(t),tableGroups:o}}},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}({})},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}({})},51930:(e,t,s)=>{s.d(t,{d:()=>r});var a=s(5707),n=s(7187);function r(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,n.SW)(e.AllocatedPercent);return t!==a.Km&&s?Math.max(t,s):t}},64036:(e,t,s)=>{s.d(t,{b:()=>n});var a=s(5707);function n(e){const{DiskSpace:t,VDiskState:s,FrontQueues:n,Replicated:o}=e;if(!s)return a.Km;const i=r(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,r(n));let u=Math.max(i,l,d);return!1===o&&u===a.aW.Green&&(u=a.aW.Blue),u}function r(e){var t;return e&&null!==(t=a.aW[e])&&void 0!==t?t:a.Km}},5707:(e,t,s)=>{s.d(t,{A$:()=>o,Km:()=>i,Yh:()=>l,aW:()=>r,iZ:()=>u,qs:()=>d});var a=s(94025),n=s(67375);const r={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},o=Object.entries(r).reduce(((e,[t,s])=>({...e,[s]:t})),{}),i=r.Grey,l=o[i],d={[n.W.OK]:r.Green,[n.W.Initial]:r.Yellow,[n.W.SyncGuidRecovery]:r.Yellow,[n.W.LocalRecoveryError]:r.Red,[n.W.SyncGuidRecoveryError]:r.Red,[n.W.PDiskError]:r.Red},u={[a.t.Initial]:r.Grey,[a.t.Normal]:r.Green,[a.t.InitialFormatRead]:r.Yellow,[a.t.InitialSysLogRead]:r.Yellow,[a.t.InitialCommonLogRead]:r.Yellow,[a.t.InitialFormatReadError]:r.Red,[a.t.InitialSysLogReadError]:r.Red,[a.t.InitialSysLogParseError]:r.Red,[a.t.InitialCommonLogReadError]:r.Red,[a.t.InitialCommonLogParseError]:r.Red,[a.t.CommonLoggerInitError]:r.Red,[a.t.OpenFileError]:r.Red,[a.t.ChunkQuotaError]:r.Red,[a.t.DeviceIoError]:r.Red}},78461:(e,t,s)=>{s.d(t,{Y:()=>n});const a={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function n(e){if(!e)return;const t=function(e,t){const s={};return Object.entries(t).reduce(((t,[a,n])=>{const r=e.length-t,o=r-n;return s[a]=e.substring(o,r)||"0",t+n}),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}},7187:(e,t,s)=>{s.d(t,{H7:()=>c,NJ:()=>i,SW:()=>d,XY:()=>u,gh:()=>p,r$:()=>m});var a=s(7435),n=s(54090),r=s(16439),o=s(5707);function i(e){return"VDiskId"in e}const l=(0,r.H)([n.m.Green,n.m.Yellow,n.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("-")}},27295:(e,t,s)=>{s.d(t,{LW:()=>u,WT:()=>l,hK:()=>c,or:()=>d});var a=s(56839),n=s(51930),r=s(64036),o=s(78461),i=s(7187);function l(e={}){var t;if(!(0,i.NJ)(e)){const{NodeId:t,PDiskId:s,VSlotId:n}=e;return{StringifiedId:(0,a.U9)({NodeId:t,PDiskId:s,VSlotId:n}),NodeId:t,PDiskId:s,VDiskSlotId:n}}const{PDisk:s,PDiskId:n,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!==n&&void 0!==n?n: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,r.b)(e),N=(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:N}}function d(e={}){const{AvailableSize:t,TotalSize:s,Category:a,State:r,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,n.d)({State:r,AllocatedPercent:g.AllocatedPercent});return{...m,...g,PDiskId:l,NodeId:d,StringifiedId:p,Type:h,Category:a,State:r,Severity:v,SlotSize:u}}function u({AvailableSize:e,AllocatedSize:t}){const s=Number(e),a=Number(t),n=a+s;return{AvailableSize:s,AllocatedSize:a,TotalSize:n,AllocatedPercent:Math.round(100*a/n)}}function c({AvailableSize:e,TotalSize:t}){const s=Number(e),a=Number(t),n=a-s;return{AvailableSize:s,TotalSize:a,AllocatedSize:n,AllocatedPercent:Math.round(100*n/a)}}},69464:(e,t,s)=>{s.d(t,{T:()=>n});var a=s(6388);s(23536);const n=(e,t=a.xN)=>t===a.xN?`-${e}`:e},16439:(e,t,s)=>{s.d(t,{H:()=>n,f:()=>r});var a=s(76086);const n=(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,r=n(["success","warning","danger"])},43951:(e,t,s)=>{s.d(t,{K:()=>r});var a=s(59284),n=s(59001);const r=(e,t,s,r,o)=>{const[i,l]=a.useState((()=>n.f.readUserSettingsValue(t,r)));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));n.f.setUserSettingsValue(t,s),l(s)}),[t])}}},16819:(e,t,s)=>{s.d(t,{a:()=>o});var a=s(59284),n=s(69024),r=s(59001);const o=e=>{const t=a.useCallback((()=>e?r.f.readUserSettingsValue(e,{}):{}),[e]),s=a.useCallback((t=>{e&&r.f.setUserSettingsValue(e,t)}),[e]);return(0,n.a)({saveSizes:s,getSizes:t})}},35736:(e,t,s)=>{s.d(t,{w:()=>n});var a=s(76086);function n({inverseColorize:e,warningThreshold:t=a.Hh,dangerThreshold:s=a.Ed,colorizeProgress:n,fillWidth:r}){let o=e?"danger":"good";return n&&(r>t&&r<=s?o="warning":r>s&&(o=e?"good":"danger")),o}},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})},58267:(e,t,s)=>{s.d(t,{P:()=>o,_:()=>i});var a=s(54090),n=s(6354);const r={[n.r.Dead]:a.m.Red,[n.r.Created]:a.m.Yellow,[n.r.ResolveStateStorage]:a.m.Yellow,[n.r.Candidate]:a.m.Yellow,[n.r.BlockBlobStorage]:a.m.Yellow,[n.r.WriteZeroEntry]:a.m.Yellow,[n.r.Restored]:a.m.Yellow,[n.r.Discover]:a.m.Yellow,[n.r.Lock]:a.m.Yellow,[n.r.Stopped]:a.m.Yellow,[n.r.ResolveLeader]:a.m.Yellow,[n.r.RebuildGraph]:a.m.Yellow,[n.r.Deleted]:a.m.Green,[n.r.Active]:a.m.Green},o=e=>{if(!e)return a.m.Grey;return t=e,Object.values(a.m).includes(t)?e:r[e];var t};function i(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"}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9796.7afb9492.chunk.js b/ydb/core/viewer/monitoring/static/js/9796.7afb9492.chunk.js deleted file mode 100644 index 1d72be512c..0000000000 --- a/ydb/core/viewer/monitoring/static/js/9796.7afb9492.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9796],{90053:(e,t,s)=>{s.d(t,{E:()=>h});var a=s(8873),n=s(84476),r=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}){const t=(0,l.YQ)(),[s,i]=(0,l.Nt)();return(0,m.jsxs)("div",{className:p(null,e),children:[(0,m.jsx)(n.$,{view:"flat-secondary",onClick:()=>{t(o.F.util.invalidateTags(["All"]))},extraProps:{"aria-label":c("Refresh")},children:(0,m.jsx)(n.$.Icon,{children:(0,m.jsx)(a.A,{})})}),(0,m.jsxs)(r.l,{value:[String(s)],onUpdate:e=>{i(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,m.jsx)(r.l.Option,{value:"0",children:c("None")}),(0,m.jsx)(r.l.Option,{value:"15000",children:c("15 sec")}),(0,m.jsx)(r.l.Option,{value:"60000",children:c("1 min")}),(0,m.jsx)(r.l.Option,{value:"120000",children:c("2 min")}),(0,m.jsx)(r.l.Option,{value:"300000",children:c("5 min")})]})]})}},24543:(e,t,s)=>{s.d(t,{u:()=>o});var a=s(59284),n=s(39238),r=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,r.jsxs)(a.Fragment,{children:[(0,r.jsx)(n.z,{anchorRef:h,open:m||u,placement:l,hasArrow:i,onOutsideClick:()=>{p(!1)},...d,children:t}),(0,r.jsx)("span",{className:s,ref:h,onClick:o?()=>{p(!0)}:void 0,onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:e})]})}},88226:(e,t,s)=>{s.d(t,{V:()=>d});s(59284);var a=s(77506),n=s(76086),r=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)(n.TJ),h={inverted:p,compact:s,faded:a,empty:u,inactive:d},g=void 0!==t&&(0,r.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)]})}},53755:(e,t,s)=>{s.d(t,{T:()=>l});var a=s(47665),n=s(77506);const r=(0,s(48372).g4)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var o=s(60712);const i=(0,n.cn)("ydb-entities-count"),l=({total:e,current:t,label:s,loading:n,className:l})=>{let d="";return s&&(d+=`${s}: `),n?d+="...":(d+=`${t}`,e&&Number(e)!==Number(t)&&(d+=` ${r("of")} ${e}`)),(0,o.jsx)(a.J,{theme:"info",size:"m",className:i(null,l),children:d})}},10508:(e,t,s)=>{s.d(t,{c:()=>c});var a=s(67884),n=s(96873),r=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=r.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 N=()=>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?(y=c,(0,d.jsx)(a.N,{target:"_blank",href:y,children:N()})):N(),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)(n.b,{text:t,size:"xs",view:"normal",className:u("clipboard-button",{visible:S})})})]})]});var y}},13096:(e,t,s)=>{s.d(t,{P:()=>u});var a=s(59284),n=s(39238),r=s(43781),o=s.n(r),i=s(77506),l=s(60712);const d=(0,i.cn)("hover-popup"),u=({children:e,popupContent:t,showPopup:s,offset:r,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]),N=a.useCallback((()=>{f(!1),null===c||void 0===c||c()}),[c]),y=a.useMemo((()=>o()(N,h)),[N,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),N()}),[N]),T=v||s||x||D;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("span",{ref:S,onMouseEnter:b,onMouseLeave:()=>{k.cancel(),y()},children:e}),(0,l.jsx)(n.z,{contentClassName:d(null,p),anchorRef:i||S,open:T,onMouseEnter:C,onMouseLeave:j,onEscapeKeyDown:E,onBlur:A,placement:m,hasArrow:!0,offset:r||[0,12],children:(0,l.jsx)("div",{onContextMenu:P,children:t})})]})}},73473:(e,t,s)=>{s.d(t,{S:()=>y});var a=s(38501),n=s(40336),r=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"),N=(e,t)=>[(0,r.z3)({value:e,size:"gb",withSizeLabel:!1,precision:2}),(0,r.z3)({value:t,size:"gb",withSizeLabel:!0,precision:1})];function y({stats:e,percents:t,formatValues:s,className:o,warningThreshold:i,dangerThreshold:m}){var p;const y=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(y))/parseFloat(String(b))*100)||0;w=w>100?100:w;let D=y,I=b,C="/";t?(D=w+"%",I="",C=""):s&&([D,I]=s(Number(y),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),n=Math.max(0,t-a);return s.push({label:h("text_other"),key:"Other",value:n,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(y)),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)(n.u,{responsive:!0,children:j.map((({label:e,value:t,capacity:s,key:a})=>(0,v.jsx)(n.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:N,colorizeProgress:!0}):(0,r.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,y?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})]})})})}},96927:(e,t,s)=>{s.d(t,{O:()=>f,f:()=>v});var a=s(59284),n=s(78668),r=s(24600),o=s(54090),i=s(7435),l=s(76086),d=s(31684),u=s(90182),c=s(41650),m=s(60073),p=s(25196),h=s(60712);const g=[o.m.Orange,o.m.Red,o.m.Yellow],v=(e,t,s)=>{const{AvailableSize:a,TotalSize:n,State:r,PDiskId:o,NodeId:u,StringifiedId:m,Path:v,Realtime:f,Type:S,Device:k}=e,N=[{label:"PDisk",value:null!==m&&void 0!==m?m:l.Pd},{label:"State",value:r||"not available"},{label:"Type",value:S||"unknown"}];if(u&&N.push({label:"Node Id",value:u}),null!==t&&void 0!==t&&t.Host&&N.push({label:"Host",value:t.Host}),null!==t&&void 0!==t&&t.DC&&N.push({label:"DC",value:t.DC}),v&&N.push({label:"Path",value:v}),(0,c.kf)(n)&&N.push({label:"Available",value:`${(0,c.wb)(a)} of ${(0,c.wb)(n)}`}),f&&g.includes(f)&&N.push({label:"Realtime",value:f}),k&&g.includes(k)&&N.push({label:"Device",value:k}),s&&(0,i.f8)(u)&&(0,i.f8)(o)){const e=(0,d.ar)({nodeId:u,pDiskId:o});N.push({label:"Links",value:(0,h.jsx)(p.K,{title:"Developer UI",url:e})})}return N},f=({data:e})=>{const t=(0,u.N4)(n._5),s=(0,u.N4)(r.K),o=(0,i.f8)(e.NodeId)?null===s||void 0===s?void 0:s.get(e.NodeId):void 0,l=a.useMemo((()=>v(e,o,t)),[e,o,t]);return(0,h.jsx)(m.z_,{title:"PDisk",info:l,size:"s"})}},40427:(e,t,s)=>{s.d(t,{k5:()=>E});var a=s(59284),n=s(89073);const r=s(21334).F.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async({offset:e,limit:t,sortParams:s,filters:a,columnsIds:n,fetchData:r},{signal:o})=>{try{return{data:await r({limit:t,offset:e,filters:a,sortParams:s,columnsIds:n,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:n="left",resizeable:r})=>(0,m.jsx)("td",{className:c("row-cell",{align:n},t),style:{height:`${s}px`,width:`${a}px`,maxWidth:r?`${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 n=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:n,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:n})=>{const r=null===a||void 0===a?void 0:a(e);return(0,m.jsx)("tr",{className:c("row",r),children:s.map((s=>{var a;const r=null!==(a=s.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:n,width:s.width,align:s.align,className:s.className,resizeable:r,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 N=a.memo;const y=N((function({id:e,chunkSize:t,calculatedCount:s,rowHeight:n,columns:d,fetchData:u,tableName:c,filters:p,sortParams:f,getRowClassName:S,renderErrorMessage:N,renderEmptyDataMessage:y,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};r.useFetchTableChunkQuery(j,{skip:D||!x,pollingInterval:C});const{currentData:P,error:A}=r.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*n+"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:N?N(e):(0,m.jsx)(l.o,{error:e})})}return(0,o._e)(E).map((e=>(0,m.jsx)(h,{columns:d,height:n,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:n,getRowClassName:S},t))):(0,m.jsx)(v,{columns:d,children:y?y():k("empty")})})()})}));function b({minWidth:e,maxWidth:t,getCurrentColumnWidth:s,onResize:n}){const r=a.useRef(null),[o,i]=a.useState(!1);return a.useEffect((()=>{const a=r.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,r=function(e,t=40,s=1/0){return Math.max(t,Math.min(e,s))}(l+a,e,t);r!==d&&(d=r,null===n||void 0===n||n(d))})),c=e=>{x(e),void 0!==d&&(null===n||void 0===n||n(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)}}),[n,e,t,s]),(0,m.jsx)("span",{ref:r,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:n,onSort:r,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===r||void 0===r||r(e.name))},children:[(0,m.jsx)("div",{className:c("head-cell-content"),children:v}),(0,m.jsx)(D,{sortOrder:s,sortable:e.sortable,defaultSortOrder:n})]}),t?(0,m.jsx)(b,{maxWidth:e.resizeMaxWidth,minWidth:e.resizeMinWidth,getCurrentColumnWidth:h,onResize:g}):null]})},C=({columns:e,onSort:t,onColumnsResize:s,defaultSortOrder:n=-1,rowHeight:r=41})=>{const[o,i]=a.useState({}),l=e=>{let s={};if(e===o.columnId){if(o.sortOrder&&o.sortOrder!==n)return i(s),void(null===t||void 0===t||t(s));s={sortOrder:1===o.sortOrder?-1:1,columnId:e}}else s={sortOrder:n,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:n,onSort:l,rowHeight:r,onColumnsResize:s},e.name)}))})})]})};var j=s(13847);const P=({limit:e,initialEntitiesCount:t,fetchData:s,filters:r,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,N=t||1,[b,x]=a.useState(p),[w,D]=a.useState(k),[I,P]=a.useState(N),[A,E]=a.useState(!0),T=a.useRef(null),U=(({parentRef:e,tableRef:t,totalItems:s,rowHeight:n,chunkSize:r,overscanCount:o=1})=>{const i=a.useMemo((()=>Math.ceil(s/r)),[r,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/n/r)-o,0),end:Math.min(Math.floor(c/n/r)+o,Math.max(i-1,0))}}),[e,t,n,r,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]),M=a.useCallback(((e,t)=>{D(e),P(t),E(!1)}),[]);a.useLayoutEffect((()=>{D(k),P(N),E(!0),null!==u&&void 0!==u&&u.current&&u.current.scrollTo(0,0)}),[r,N,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)(y,{id:a,calculatedCount:a===U.length-1?R:e,chunkSize:e,rowHeight:d,columns:i,fetchData:s,filters:r,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)(n.L,{children:[(0,m.jsx)(n.L.Controls,{children:g({inited:!A,totalEntities:w,foundEntities:I})}),(0,m.jsx)(n.L.Table,{children:G()})]}):G()})};var A=s(16819);function E({columnsWidthLSKey:e,columns:t,...s}){const[a,n]=(0,A.a)(e),r=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:r,onColumnsResize:n,containerClassName:c("resizeable-table-container"),...s})}},48295:(e,t,s)=>{s.d(t,{_:()=>u});var a=s(77506),n=s(24543),r=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)(n.u,{className:i({type:a}),content:(0,o.jsx)(r.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)))})},15132:(e,t,s)=>{s.d(t,{O:()=>m});var a=s(38501),n=s(77506),r=s(56839),o=s(35736),i=s(41650),l=s(60712);const d=(0,n.cn)("progress-viewer"),u=e=>(0,r.ZV)((0,r.CR)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function m({value:e,capacity:t,formatValues:s=c,percents:n,className:r,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,N=t,y="/";n?(k=S+"%",N="",y=""):s&&([k,N]=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},r),children:[(0,l.jsx)("div",{className:d("line"),style:x}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kf)(t)&&!v?`${k} ${y} ${N}`:k})]}):(0,l.jsx)("div",{className:`${d({size:u})} ${r} error`,children:"no data"})}},41775:(e,t,s)=>{s.d(t,{v:()=>l});var a=s(59284),n=s(28664),r=s(77506),o=s(60712);const i=(0,r.cn)("ydb-search"),l=({onChange:e,value:t="",width:s,className:r,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)(n.k,{hasClear:!0,autoFocus:!0,style:{width:s},className:i(null,r),placeholder:d,value:u,onUpdate:t=>{c(t),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===e||void 0===e||e(t)}),l)}})}},33775:(e,t,s)=>{s.d(t,{k:()=>m});var a=s(45720),n=s(16929),r=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]:n.A,[i.m.Orange]:r.A,[i.m.Red]:n.A};function m({status:e=i.m.Grey,size:t="s",mode:s="color",className:a}){const n={state:e.toLowerCase(),size:t};return"icons"===s&&e in c?(0,d.jsx)(o.I,{className:u("status-icon",n,a),data:c[e]}):(0,d.jsx)("div",{className:u("status-color",n,a)})}},19228:(e,t,s)=>{s.d(t,{Q:()=>l});var a=s(89169),n=s(77506),r=s(66781),o=s(60712);const i=(0,n.cn)("table-skeleton"),l=({rows:e=2,delay:t=600,className:s})=>{const[n]=(0,r.y)(t);return(0,o.jsxs)("div",{className:i("wrapper",{hidden:!n},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}`)))]})}},89073:(e,t,s)=>{s.d(t,{L:()=>i});var a=s(77506),n=s(19228),r=s(60712);const o=(0,a.cn)("ydb-table-with-controls-layout"),i=({children:e,className:t})=>(0,r.jsx)("div",{className:o(null,t),children:e});i.Controls=function({children:e,className:t}){return(0,r.jsx)("div",{className:o("controls-wrapper"),children:(0,r.jsx)("div",{className:o("controls",t),children:e})})},i.Table=function({children:e,loading:t,className:s}){return t?(0,r.jsx)(n.Q,{className:o("loader")}):(0,r.jsx)("div",{className:o("table",s),children:e})}},64934:(e,t,s)=>{s.d(t,{j:()=>o});var a=s(44433),n=s(78034),r=s(60712);const o=({value:e,onChange:t,className:s})=>(0,r.jsxs)(a.a,{value:e,onUpdate:t,className:s,children:[(0,r.jsx)(a.a.Option,{value:n.cW.All,children:n.DG[n.cW.All]}),(0,r.jsx)(a.a.Option,{value:n.cW.SmallUptime,children:n.DG[n.cW.SmallUptime]})]})},13342:(e,t,s)=>{s.d(t,{U:()=>i});var a=s(47665),n=s(77506),r=s(60712);const o=(0,n.cn)("ydb-usage-label");function i({value:e,overloadThreshold:t=90,theme:s,...n}){return(0,r.jsxs)(a.J,{theme:s,className:o({overload:Number(e)>=t}),...n,children:[e||0,"%"]})}},8809:(e,t,s)=>{s.d(t,{y:()=>P});var a=s(77506),n=s(88226),r=s(13096),o=s(44294),i=s(59284),l=s(47665),d=s(78668),u=s(24600),c=s(54090),m=s(7435),p=s(76086),h=s(31684),g=s(7187),v=s(90182),f=s(41650),S=s(60073),k=s(25196),N=s(96927),y=s(29819),b=s(92459),x=s(56839);function w(e){let t;const s=(0,g.NJ)(e)?e.VDiskSlotId:e.VSlotId;return(0,m.f8)(s)&&(0,m.f8)(e.PDiskId)&&(0,m.f8)(e.NodeId)?t=(0,b.yX)(s,e.PDiskId,e.NodeId):(0,m.f8)(e.NodeId)&&(0,g.NJ)(e)&&(t=(0,b.KY)(b.Ay.node,{id:e.NodeId,activeTab:y.mX},{pdiskId:e.PDiskId,vdiskId:(0,x.U9)(e.VDiskId)})),t}var D=s(60712);const I=(0,a.cn)("vdisk-storage-popup"),C=({data:e})=>{const t=(0,g.NJ)(e),s=(0,v.N4)(d._5),a=i.useMemo((()=>t?((e,t)=>{var s,a,n,r;const{NodeId:o,PDiskId:i,VDiskSlotId:l,StringifiedId:d,VDiskState:u,SatisfactionRank:p,DiskSpace:g,FrontQueues:v,Replicated:S,UnsyncedVDisks:N,AllocatedSize:y,ReadThroughput:b,WriteThroughput:x,StoragePoolName:w}=e,I=[{label:"VDisk",value:d},{label:"State",value:null!==u&&void 0!==u?u:"not available"}];var C,j;if(w&&I.push({label:"StoragePool",value:w}),p&&(null===(s=p.FreshRank)||void 0===s?void 0:s.Flag)!==c.m.Green&&I.push({label:"Fresh",value:null===(C=p.FreshRank)||void 0===C?void 0:C.Flag}),p&&(null===(a=p.LevelRank)||void 0===a?void 0:a.Flag)!==c.m.Green&&I.push({label:"Level",value:null===(j=p.LevelRank)||void 0===j?void 0:j.Flag}),p&&null!==(n=p.FreshRank)&&void 0!==n&&n.RankPercent&&I.push({label:"Fresh",value:p.FreshRank.RankPercent}),p&&null!==(r=p.LevelRank)&&void 0!==r&&r.RankPercent&&I.push({label:"Level",value:p.LevelRank.RankPercent}),g&&g!==c.m.Green&&I.push({label:"Space",value:g}),v&&v!==c.m.Green&&I.push({label:"FrontQueues",value:v}),S||I.push({label:"Replicated",value:"NO"}),N&&I.push({label:"UnsyncVDisks",value:N}),Number(y)&&I.push({label:"Allocated",value:(0,f.wb)(y)}),Number(b)&&I.push({label:"Read",value:(0,f.O4)(b)}),Number(x)&&I.push({label:"Write",value:(0,f.O4)(x)}),t&&(0,m.f8)(o)&&(0,m.f8)(i)&&(0,m.f8)(l)){const e=(0,h.Wg)({nodeId:o,pDiskId:i,vDiskSlotId:l});I.push({label:"Links",value:(0,D.jsx)(k.K,{title:"Developer UI",url:e})})}return I})(e,s):((e,t)=>{const{NodeId:s,PDiskId:a,VSlotId:n,StoragePoolName:r}=e,o=[{label:"State",value:"not available"}];if(r&&o.push({label:"StoragePool",value:r}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:p.Pd},{label:"PDiskId",value:null!==a&&void 0!==a?a:p.Pd},{label:"VSlotId",value:null!==n&&void 0!==n?n:p.Pd}),t&&(0,m.f8)(s)&&(0,m.f8)(a)&&(0,m.f8)(n)){const e=(0,h.Wg)({nodeId:s,pDiskId:a,vDiskSlotId:n});o.push({label:"Links",value:(0,D.jsx)(k.K,{title:"Developer UI",url:e})})}return o})(e,s)),[e,t,s]),n=(0,v.N4)(u.K),r=(0,m.f8)(e.NodeId)?null===n||void 0===n?void 0:n.get(e.NodeId):void 0,y=i.useMemo((()=>t&&e.PDisk&&(0,N.f)(e.PDisk,r,s)),[e,r,t,s]),b=[];if("Donors"in e&&e.Donors){const t=e.Donors;for(const e of t)b.push({label:"VDisk",value:(0,D.jsx)(o.E,{to:w(e),children:e.StringifiedId})})}return(0,D.jsxs)("div",{className:I(),children:[e.DonorMode&&(0,D.jsx)(l.J,{className:I("donor-label"),children:"Donor"}),(0,D.jsx)(S.z_,{title:"VDisk",info:a,size:"s"}),y&&(0,D.jsx)(S.z_,{title:"PDisk",info:y,size:"s"}),b.length>0&&(0,D.jsx)(S.z_,{title:"Donors",info:b,size:"s"})]})},j=(0,a.cn)("ydb-vdisk-component"),P=({data:e={},compact:t,inactive:s,showPopup:a,onShowPopup:i,onHidePopup:l,progressBarClassName:d,delayClose:u,delayOpen:c})=>{const m=w(e);return(0,D.jsx)(r.P,{showPopup:a,onShowPopup:i,onHidePopup:l,popupContent:(0,D.jsx)(C,{data:e}),offset:[0,5],delayClose:u,delayOpen:c,children:(0,D.jsx)("div",{className:j(),children:(0,D.jsx)(o.E,{to:m,className:j("content"),children:(0,D.jsx)(n.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,compact:t,inactive:s,className:d})})})})}},78762:(e,t,s)=>{s.d(t,{pt:()=>ae,SH:()=>X,fr:()=>B,uk:()=>z,Bg:()=>J,Nh:()=>G,ID:()=>$,fR:()=>Y,iX:()=>F,Vz:()=>q,H:()=>Z,_E:()=>M,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),n=s(40336),r=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 N=({node:e,getNodeRef:t,database:s,statusForIcon:a})=>{if(!e.Host)return(0,k.jsx)("span",{children:"\u2014"});const n="ConnectStatus"===a?e.ConnectStatus:e.SystemState,r=!(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=r?(0,h.vI)(e.NodeId,{database:null!==s&&void 0!==s?s:e.TenantName}):void 0;return(0,k.jsx)(c.s,{disabled:!r,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:n,path:i,hasClipboardButton:!0})})};var y=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 n;const r=(0,h.vI)(s,{database:t},h.q7),o=`${e.label}: ${e.count}`,i=D("tablet",{state:null===(n=e.state)||void 0===n?void 0:n.toLowerCase()});return(0,k.jsx)(x.N_,{to:r,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 M(){return{name:P.vg.NodeId,header:"#",width:80,resizeMinWidth:80,render:({row:e})=>e.NodeId,align:a.Ay.RIGHT}}function G({getNodeRef:e,database:t},{statusForIcon:s="SystemState"}={}){return{name:P.vg.Host,header:P.uG.Host,render:({row:a})=>(0,k.jsx)(N,{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)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("field_memory-used"),children:t}),(0,k.jsx)(n.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)(y._,{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)(n.u,{responsive:!0,children:e.PoolStats.map((e=>(0,u.kf)(e.Usage)?(0,k.jsx)(n.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,r.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 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 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)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("sum"),children:(0,l.l9)(t)},"NetworkUtilization"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:(0,l.l9)(s)},"NetworkUtilizationMin"),(0,k.jsx)(n.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)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("avg"),children:T(t)},"PingTimeUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:T(s)},"PingTimeMinUs"),(0,k.jsx)(n.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)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("avg"),children:U(t)},"ClockSkewUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:U(s)},"ClockSkewMinUs"),(0,k.jsx)(n.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:()=>d,kU:()=>c,kn:()=>l,sp:()=>m,uG:()=>o,vg:()=>r,zO:()=>n});var a=s(31911);const n="nodesTableColumnsWidth",r={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={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")}},i={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 l(e){return i[e]}const d={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"]},u={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 c(e){return u[e]}function m(e){return Boolean(c(e))}},31911:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(48372);const n=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"}'),r=(0,a.g4)("ydb-nodes-columns",{en:n})},10576:(e,t,s)=>{s.d(t,{E:()=>g});var a=s(59284),n=s(88226),r=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:N}=e,y=(0,u.f8)(k)&&(0,u.f8)(N),b=a.useRef(null);let x;return y&&(x=(0,d.Ck)(N,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)(r.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)(n.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,className:f}),(0,p.jsx)("div",{className:h("media-type"),children:e.Type})]})})]})}},99936:(e,t,s)=>{s.d(t,{z:()=>Ve});var a=s(59284),n=s(79553),r=s(98167),o=s(89073),i=s(67028),l=s(10174),d=s(90182),u=s(69775),c=s(98089),m=s(24555),p=s(53755),h=s(41775),g=s(64934),v=s(10360),f=s(370),S=s(86782);const k=["NodeId","Host","Uptime","CPU","RAM","PDisks"],N=["NodeId"],y=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],b=y.map((e=>({value:e,content:(0,S.kn)(e)}))),x=f.z.custom((e=>y.includes(e))).catch(void 0);var w=s(44433);const D={all:"all",missing:"missing",space:"space"},I={groups:"groups",nodes:"nodes"};var C=s(60712);const j={[I.groups]:"Groups",[I.nodes]:"Nodes"},P=({value:e,onChange:t})=>(0,C.jsxs)(w.a,{value:e,onUpdate:t,qa:"storage-type-filter",children:[(0,C.jsx)(w.a.Option,{value:I.groups,children:j[I.groups]}),(0,C.jsx)(w.a.Option,{value:I.nodes,children:j[I.nodes]})]}),A={[D.all]:"All",[D.missing]:"Degraded",[D.space]:"Out of Space"},E=({value:e,onChange:t})=>(0,C.jsxs)(w.a,{value:e,onUpdate:t,qa:"storage-visible-entities-filter",children:[(0,C.jsx)(w.a.Option,{value:D.missing,children:A[D.missing]}),(0,C.jsx)(w.a.Option,{value:D.space,children:A[D.space]}),(0,C.jsx)(w.a.Option,{value:D.all,children:A[D.all]})]});var T=s(48372);const U=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"}'),R=(0,T.g4)("ydb-storage",{en:U});var M=s(59109),G=s(44508),L=s(77506);const z=(0,L.cn)("global-storage"),V=e=>403===e.status?(0,C.jsx)(M.O,{position:"left"}):(0,C.jsx)(G.o,{error:e});var W=s(67087);const O=f.z.nativeEnum(D).catch(D.all),H=f.z.nativeEnum(I).catch(I.groups);var F=s(78034);function _(){var e;const[t,s]=(0,W.useQueryParams)({type:W.StringParam,visible:W.StringParam,search:W.StringParam,uptimeFilter:W.StringParam,storageNodesGroupBy:W.StringParam,storageGroupsGroupBy:W.StringParam}),a=H.parse(t.type),n=O.parse(t.visible),r=null!==(e=t.search)&&void 0!==e?e:"",o=F.Bm.parse(t.uptimeFilter),i=v.kY.parse(t.storageGroupsGroupBy),l=x.parse(t.storageNodesGroupBy),d=e=>{s({visible:e},"replaceIn")},u=e=>{s({uptimeFilter:e},"replaceIn")};return{storageType:a,visibleEntities:n,searchValue:r,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(F.cW.All)}}}function B({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:n,entitiesLoading:r,columnsToSelect:o,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:g,storageGroupsGroupByParam:f,handleTextFilterChange:S,handleStorageTypeChange:k,handleVisibleEntitiesChange:N,handleStorageGroupsGroupByParamChange:y}=_();return(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(h.v,{value:l,onChange:S,placeholder:R("controls_groups-search-placeholder"),className:z("search")}),e&&(0,C.jsx)(P,{value:d,onChange:k}),t?null:(0,C.jsx)(E,{value:g,onChange:N}),(0,C.jsx)(u.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(c.E,{variant:"body-2",children:R("controls_group-by-placeholder")}),(0,C.jsx)(m.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:f?[f]:void 0,onUpdate:e=>{y(e[0])},options:v.SE})]}):null,(0,C.jsx)(p.T,{label:R("groups"),loading:r,total:n,current:s})]})}function $({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:n,entitiesLoading:r,columnsToSelect:o,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:v,nodesUptimeFilter:f,storageNodesGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:N,handleVisibleEntitiesChange:y,handleUptimeFilterChange:x,handleStorageNodesGroupByParamChange:w}=_();return(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(h.v,{value:l,onChange:k,placeholder:R("controls_nodes-search-placeholder"),className:z("search")}),e&&(0,C.jsx)(P,{value:d,onChange:N}),t?null:(0,C.jsx)(E,{value:v,onChange:y}),t?null:(0,C.jsx)(g.j,{value:f,onChange:x}),(0,C.jsx)(u.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(c.E,{variant:"body-2",children:R("controls_group-by-placeholder")}),(0,C.jsx)(m.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{w(e[0])},options:b})]}):null,(0,C.jsx)(p.T,{label:R("nodes"),loading:r,total:n,current:s})]})}var Y=s(40427),J=s(84476),K=s(7889),Q=s(78524);const q=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),X=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"}'),Z=(0,T.g4)("ydb-storage-empty-filter",{ru:X,en:q}),ee=({title:e,message:t=Z("default_message"),showAll:s=Z("default_button_label"),onShowAll:a})=>(0,C.jsx)(K.p,{image:(0,C.jsx)(Q.v,{name:"thumbsUp"}),position:"left",title:e,description:t,actions:a&&[(0,C.jsx)(J.$,{onClick:a,children:s},"show-all")]});var te=s(61456);const se=({visibleEntities:e,onShowAll:t})=>{let s;return e===D.space&&(s=(0,te.A)("empty.out_of_space")),e===D.missing&&(s=(0,te.A)("empty.degraded")),s?(0,C.jsx)(ee,{title:s,showAll:(0,te.A)("show_all"),onShowAll:t}):null};var ae=s(16029),ne=s(69464),re=s(40781);const oe=({columns:e,database:t,nodeId:s,groupId:n,pDiskId:o,filterGroup:l,filterGroupBy:d,searchValue:u,visibleEntities:c,onShowAll:m,parentRef:p,renderControls:h,renderErrorMessage:g,initialEntitiesCount:f})=>{const S=(0,i.Pm)(),k=(0,i.YA)(),N=(y=k,a.useCallback((async e=>{const{limit:t,offset:s,sortParams:a,filters:n,columnsIds:r}=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!==n&&void 0!==n?n:{},f=(0,v.GP)(i),S=f?(0,ne.T)(f,o):void 0,k=(0,re.R)(r,v.YX),{groups:N,found:b,total:x}=await(0,ae.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:y});return{data:N||[],found:b||0,total:x||0}}),[y]));var y;const b=a.useMemo((()=>({searchValue:u,visibleEntities:c,database:t,nodeId:s,groupId:n,pDiskId:o,filterGroup:l,filterGroupBy:d})),[u,c,t,s,n,o,l,d]);return(0,C.jsx)(r.r,{loading:!S,children:(0,C.jsx)(Y.k5,{columnsWidthLSKey:v.qK,parentRef:p,columns:e,fetchData:N,limit:50,initialEntitiesCount:f,renderControls:h,renderErrorMessage:g,renderEmptyDataMessage:()=>c!==D.all?(0,C.jsx)(se,{onShowAll:m,visibleEntities:c}):(0,te.A)("empty.default"),filters:b,tableName:"storage-groups"})})};var ie=s(43951),le=s(20831);function de({visibleEntities:e,viewContext:t}){const s=a.useMemo((()=>(0,le.J)({viewContext:t})),[t]),n=a.useMemo((()=>e===D.missing?[...v.LO,v.UW.Degraded]:e===D.space?[...v.LO,v.UW.DiskSpace]:v.LO),[e]);return(0,ie.K)(s,v.zY,v.H6,v.hu,n)}var ue=s(71708),ce=s(62710);function me(e){const{storageGroupsGroupByParam:t,visibleEntities:s,handleShowAllGroups:n}=_(),o=(0,i.Pm)(),l=(0,i.SA)();a.useEffect((()=>{l&&"all"!==s&&n()}),[n,l,s]);return(0,C.jsx)(r.r,{loading:!o,children:l&&t?(0,C.jsx)(he,{...e}):(0,C.jsx)(pe,{...e})})}function pe({database:e,nodeId:t,groupId:s,pDiskId:a,viewContext:n,parentRef:r,initialEntitiesCount:o}){const{searchValue:l,visibleEntities:d,handleShowAllGroups:u}=_(),c=(0,i.SA)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=de({visibleEntities:d,viewContext:n});return(0,C.jsx)(oe,{database:e,nodeId:t,groupId:s,pDiskId:a,searchValue:l,visibleEntities:d,onShowAll:u,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,C.jsx)(B,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:V,columns:m,initialEntitiesCount:o})}function he({database:e,nodeId:t,groupId:s,pDiskId:a,parentRef:r,viewContext:i}){const[u]=(0,d.Nt)(),{searchValue:c,storageGroupsGroupByParam:m,visibleEntities:p,handleShowAllGroups:h}=_(),{columnsToShow:g,columnsToSelect:v,setColumns:f}=de({visibleEntities:p,viewContext:i}),{currentData:S,isFetching:k,error:N}=l.S.useGetStorageGroupsInfoQuery({database:e,with:"all",nodeId:t,groupId:s,pDiskId:a,filter:c,shouldUseGroupsHandler:!0,group:m},{pollingInterval:u}),y=void 0===S&&k,{tableGroups:b,found:x=0,total:w=0}=S||{},{expandedGroups:D,setIsGroupExpanded:I}=(0,ce.$)(b);return(0,C.jsxs)(o.L,{children:[(0,C.jsx)(o.L.Controls,{children:(0,C.jsx)(B,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:x,entitiesCountTotal:w,entitiesLoading:y,columnsToSelect:v,handleSelectedColumnsUpdate:f})}),N?(0,C.jsx)(n.o,{error:N}):null,(0,C.jsx)(o.L.Table,{loading:y,className:z("groups-wrapper"),children:null!==b&&void 0!==b&&b.length?b.map((({name:n,count:o})=>{const i=D[n];return(0,C.jsx)(ue.Q,{title:n,count:o,entityName:R("groups"),expanded:i,onIsExpandedChange:I,children:(0,C.jsx)(oe,{database:e,parentRef:r,nodeId:t,groupId:s,pDiskId:a,filterGroup:n,filterGroupBy:m,searchValue:c,visibleEntities:"all",onShowAll:h,renderErrorMessage:V,columns:g,initialEntitiesCount:o})},n)})):R("no-groups")})]})}var ge=s(67157),ve=s(71294);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,T.g4)("ydb-storage-nodes",{ru:Se,en:fe}),Ne=({visibleEntities:e,nodesUptimeFilter:t,onShowAll:s})=>{let a;return e===D.space&&(a=ke("empty.out_of_space")),e===D.missing&&(a=ke("empty.degraded")),t===F.cW.SmallUptime&&(a=ke("empty.small_uptime")),e!==D.all&&t!==F.cW.All&&(a=ke("empty.several_filters")),a?(0,C.jsx)(ee,{title:a,showAll:ke("show_all"),onShowAll:s}):null};var ye=s(11905);const be=async e=>{const{type:t="static",storage:s=!0,limit:a,offset:n,sortParams:r,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!==r&&void 0!==r?r:{},k=(0,S.kU)(f),N=k?(0,ne.T)(k,v):void 0,y=(0,re.R)(i,S.fN),b=await window.api.viewer.getNodes({type:t,storage:s,limit:a,offset:n,sort:N,filter:l,uptime:(0,F.Fo)(d),with:u,database:c,node_id:m,group_id:p,filter_group:h,filter_group_by:g,fieldsRequired:y}),x=(0,ye.rz)(b);return{data:x.nodes||[],found:x.found||0,total:x.total||0}},xe=(0,L.cn)("ydb-storage-nodes"),we=e=>xe("node",{unavailable:(0,F.X7)(e)}),De=({columns:e,database:t,nodeId:s,groupId:n,filterGroup:r,filterGroupBy:o,searchValue:i,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:c,renderControls:m,renderErrorMessage:p,initialEntitiesCount:h})=>{const g=a.useMemo((()=>({searchValue:i,visibleEntities:l,nodesUptimeFilter:d,database:t,nodeId:s,groupId:n,filterGroup:r,filterGroupBy:o})),[i,l,d,t,s,n,r,o]);return(0,C.jsx)(Y.k5,{columnsWidthLSKey:"storageNodesColumnsWidth",parentRef:c,columns:e,fetchData:be,rowHeight:51,limit:50,initialEntitiesCount:h,renderControls:m,renderErrorMessage:p,renderEmptyDataMessage:()=>l!==D.all||d!==F.cW.All?(0,C.jsx)(Ne,{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,L.cn)("ydb-storage-nodes-columns"),Ae="--maximum-slots",Ee="--maximum-disks",Te=({viewContext:e})=>({name:S.vg.PDisks,header:S.uG.PDisks,className:Pe("pdisks-column"),render:({row:t})=>{var s;const a={[Ae]:t.MaximumSlotsPerDisk,[Ee]:t.MaximumDisksPerNode};return(0,C.jsx)("div",{className:Pe("pdisks-wrapper"),style:a,children:null===(s=t.PDisks)||void 0===s?void 0:s.map((s=>{var a;const n=null===(a=t.VDisks)||void 0===a?void 0:a.filter((e=>e.PDiskId===s.PDiskId));return(0,C.jsx)("div",{className:Pe("pdisks-item"),children:(0,C.jsx)(je.E,{data:s,vDisks:n,viewContext:e})},s.PDiskId)}))})},align:Ie.Ay.CENTER,sortable:!1,resizeable:!1});function Ue({visibleEntities:e,database:t,additionalNodesProps:s,viewContext:n}){const r=a.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,S.sp)(e.name)})))})({database:t,additionalNodesProps:s,viewContext:n})),[t,s,n]),o=a.useMemo((()=>e===D.missing?[...N,S.vg.Missing]:N),[e]);return(0,ie.K)(r,"storageNodesSelectedColumns",S.uG,k,o)}const Re=e=>{const{storageNodesGroupByParam:t,visibleEntities:s,nodesUptimeFilter:n,handleShowAllNodes:o}=_(),l=(0,i.Pm)(),d=(0,i.Ye)();a.useEffect((()=>{!d||"all"===s&&n===F.cW.All||o()}),[o,n,d,s]);return(0,C.jsx)(r.r,{loading:!l,children:d&&t?(0,C.jsx)(Ge,{...e}):(0,C.jsx)(Me,{...e})})};function Me({database:e,nodeId:t,groupId:s,viewContext:a,parentRef:n,initialEntitiesCount:r}){const{searchValue:o,visibleEntities:l,nodesUptimeFilter:d,handleShowAllNodes:u}=_(),c=(0,i.Ye)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a});return(0,C.jsx)(De,{database:e,nodeId:t,groupId:s,searchValue:o,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:n,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,C.jsx)($,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:V,columns:m,initialEntitiesCount:r})}function Ge({database:e,groupId:t,nodeId:s,viewContext:a,parentRef:n}){const[r]=(0,d.Nt)(),{searchValue:i,storageNodesGroupByParam:u,handleShowAllNodes:c}=_(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a}),{currentData:g,isFetching:v,error:f}=l.S.useGetStorageNodesInfoQuery({database:e,with:"all",filter:i,node_id:s,group_id:t,group:u},{pollingInterval:r}),S=void 0===g&&v,{tableGroups:k,found:N=0,total:y=0}=g||{},{expandedGroups:b,setIsGroupExpanded:x}=(0,ce.$)(k);return(0,C.jsxs)(o.L,{children:[(0,C.jsx)(o.L.Controls,{children:(0,C.jsx)($,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:N,entitiesCountTotal:y,entitiesLoading:S,columnsToSelect:p,handleSelectedColumnsUpdate:h})}),f?(0,C.jsx)(G.o,{error:f}):null,(0,C.jsx)(o.L.Table,{loading:S,className:z("groups-wrapper"),children:null!==k&&void 0!==k&&k.length?k.map((({name:a,count:r})=>{const o=b[a];return(0,C.jsx)(ue.Q,{title:a,count:r,entityName:R("nodes"),expanded:o,onIsExpandedChange:x,children:(0,C.jsx)(De,{database:e,parentRef:n,nodeId:s,groupId:t,searchValue:i,visibleEntities:"all",nodesUptimeFilter:F.cW.All,onShowAll:c,filterGroup:a,filterGroupBy:u,renderErrorMessage:V,columns:m,initialEntitiesCount:r})},a)})):R("no-nodes")})]})}function Le({database:e,viewContext:t}){const{balancer:s}=(0,ge.Zd)(),{additionalNodesProps:a}=(0,ve.B)({balancer:s}),{visibleEntities:n}=_();return Ue({additionalNodesProps:a,visibleEntities:n,database:e,viewContext:t})}var ze=s(3218);const Ve=e=>{const{storageType:t}=_();return"nodes"===t?(0,C.jsx)(Re,{initialEntitiesCount:(0,ze.b0)(e.viewContext),...e}):(0,C.jsx)(me,{initialEntitiesCount:(0,ze.QQ)(e.viewContext),...e})}},20831:(e,t,s)=>{s.d(t,{J:()=>oe,k:()=>re});var a=s(79879),n=s(4557),r=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),N=s(41650),y=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}){const[s,a]=y.useState(),n=(0,I.Ep)(e),{theme:{spaceBaseSize:r}}=(0,b.L)();if(!e.length)return null;const o=(300-r*(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=>(0,C.jsx)(A,{vDisk:e,inactive:!(0,I.OH)(e,t),highlightedVDisk:s,setHighlightedVDisk:a,unavailableVDiskWidth:o},e.StringifiedId)))}),(0,C.jsx)("div",{className:j("pdisks-wrapper"),children:null===e||void 0===e?void 0:e.map(((e,t)=>{var r;return(0,C.jsx)(E,{vDisk:e,highlightedVDisk:s,setHighlightedVDisk:a,withDCMargin:n.includes(t)},null===e||void 0===e||null===(r=e.PDisk)||void 0===r?void 0:r.StringifiedId)}))})]})}function A({vDisk:e,highlightedVDisk:t,inactive:s,setHighlightedVDisk:a,unavailableVDiskWidth:n}){const r={...e,PDisk:void 0},o=e.StringifiedId,i=(0,h.f8)(r.AllocatedSize)?void 0:n,l=Number(r.AllocatedSize)||1;return(0,C.jsx)("div",{style:{flexGrow:l,minWidth:i},className:j("vdisk-item"),children:(0,C.jsx)(w.y,{data:r,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 n=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===n,onShowPopup:()=>s(n),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:y.Children.map(e,((e,t)=>y.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:n,...r}=e||{},o=n&&n.length>0?(0,C.jsxs)(M,{className:s,children:[(0,C.jsx)(w.y,{data:r,...a}),n.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}){const s=(0,I.Ep)(e);return(0,C.jsx)("div",{className:L("wrapper"),children:null===e||void 0===e?void 0:e.map(((e,a)=>(0,C.jsx)(G,{data:e,inactive:!(0,I.OH)(e,t),className:L("item",{"with-dc-margin":s.includes(a)})},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:r.m.Immediate,className:O("pool-name-wrapper"),children:(0,C.jsx)("span",{className:O("pool-name"),children:e.PoolName})}):v.Pd,align:n.Ay.LEFT},F={name:W.UW.MediaType,header:W.H6.MediaType,width:100,resizeMinWidth:100,align:n.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:r.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:n.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:n.Ay.LEFT,defaultOrder:n.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:n.Ay.LEFT,defaultOrder:n.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:n.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:n.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:n.Ay.RIGHT},Q={name:W.UW.Used,header:W.H6.Used,width:100,render:({row:e})=>(0,N.wb)(e.Used,!0),align:n.Ay.RIGHT},q={name:W.UW.Limit,header:W.H6.Limit,width:100,render:({row:e})=>(0,N.wb)(e.Limit),align:n.Ay.RIGHT},X={name:W.UW.DiskSpace,header:W.H6.DiskSpace,width:70,render:({row:e})=>(0,C.jsx)(c.k,{status:e.DiskSpace}),align:n.Ay.CENTER},Z={name:W.UW.Read,header:W.H6.Read,width:100,render:({row:e})=>e.Read?(0,N.O4)(e.Read):"-",align:n.Ay.RIGHT},ee={name:W.UW.Write,header:W.H6.Write,width:100,render:({row:e})=>e.Write?(0,N.O4)(e.Write):"-",align:n.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:n.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:n.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}),align:n.Ay.CENTER,width:780,resizeable:!1,sortable:!1}),ne=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}),align:n.Ay.CENTER,width:900,resizeable:!1,sortable:!1}),re=()=>[K,F,_,Y,Q,q].map((e=>({...e,sortable:!1}))),oe=e=>[K,H,F,_,B,$,Y,J,Q,q,X,Z,ee,te,se,ae(e),ne(e)].map((e=>({...e,sortable:(0,W.i4)(e.name)})))},10360:(e,t,s)=>{s.d(t,{hu:()=>u,YX:()=>f,LO:()=>c,UW:()=>d,H6:()=>m,qK:()=>i,SE:()=>g,zY:()=>l,GP:()=>k,i4:()=>N,kY:()=>v});var a=s(370),n=s(48372);const r=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,n.g4)("ydb-storage-groups-columns",{en:r}),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=["GroupId","PoolName","Erasure","Used","VDisks"],c=["GroupId"],m={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")}},p={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")}},h=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],g=h.map((e=>({value:e,content:p[e]}))),v=a.z.custom((e=>h.includes(e))).catch(void 0),f={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"]},S={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 k(e){return S[e]}function N(e){return Boolean(k(e))}},61456:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(48372);const n=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"}'),r=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:r,en:n})},71708:(e,t,s)=>{s.d(t,{Q:()=>d});s(59284);var a=s(33705),n=s(98089),r=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)(n.E,{variant:"subheader-2",children:t}),(0,i.jsxs)(n.E,{variant:"body-2",color:"secondary",className:l("count"),children:[s,": ",(0,i.jsx)(r.J,{theme:"normal",children:o})]})]})]})}),d?(0,i.jsx)("div",{className:l("content"),children:e}):null]})}},62710:(e,t,s)=>{s.d(t,{$:()=>n});var a=s(59284);function n(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})))}),[])}}},3218:(e,t,s)=>{s.d(t,{Ep:()=>g,OH:()=>c,QQ:()=>h,b0:()=>p,k_:()=>u});var a=s(59284),n=s(24600),r=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,r.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,r.f8)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(a&&=String(e.NodeId)===t.nodeId),(0,r.f8)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(a&&=String(e.PDiskId)===t.pDiskId),(0,r.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,r.f8)(null===e||void 0===e?void 0:e.nodeId)||(0,r.f8)(null===e||void 0===e?void 0:e.pDiskId)||(0,r.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function h(e){return(0,r.f8)(null===e||void 0===e?void 0:e.groupId)||(0,r.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function g(e=[]){const t=(0,i.N4)(n.K);return a.useMemo((()=>{const s=[];return e.forEach(((a,n)=>{var r,o,i;(null===t||void 0===t||null===(r=t.get(Number(null===a||void 0===a?void 0:a.NodeId)))||void 0===r?void 0:r.DC)!==(null===t||void 0===t||null===(o=t.get(Number(null===(i=e[n+1])||void 0===i?void 0:i.NodeId)))||void 0===o?void 0:o.DC)&&s.push(n)})),s}),[e,t])}},16029:(e,t,s)=>{s.d(t,{t:()=>n});var a=s(11905);async function n({version:e="v2",shouldUseGroupsHandler:t,...s},n){if(t&&"v1"!==e){const e=await window.api.storage.getStorageGroups({...s},n);return(0,a.Rv)(e)}{const t=await window.api.viewer.getStorageInfo({version:e,...s},n);return(0,a.Qi)(t)}}},10174:(e,t,s)=>{s.d(t,{S:()=>o});var a=s(21334),n=s(16029),r=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,r.rz)(s)}}catch(s){return{error:s}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await(0,n.t)(e,{signal:t})}}catch(s){return{error:s}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},11905:(e,t,s)=>{s.d(t,{Rv:()=>N,rz:()=>S,Qi:()=>k});var a=s(94025),n=s(67375),r=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,n;const{Whiteboard:i={},PDisk:l,...h}=e,g={...i,...h,VDiskId:i.VDiskId},v=l?function(e={}){var t,s,a;const{Whiteboard:n,...i}=e,l={...n,...i,PDiskId:null===n||void 0===n?void 0:n.PDiskId},d=i.PDiskId||(0,r.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===n||void 0===n?void 0:n.Category),f=(0,u.d)({State:null===n||void 0===n?void 0:n.State,AllocatedPercent:c}),S=null!==(a=i.SlotSize)&&void 0!==a?a:null===n||void 0===n?void 0:n.EnforcedDynamicSlotSize;return{...l,StringifiedId:d,AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g,Type:v,Severity:f,SlotSize:S}}({...l,NodeId:g.NodeId}):void 0,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),N=(0,o.LW)({AvailableSize:null!==(a=g.AvailableSize)&&void 0!==a?a:null===l||void 0===l?void 0:l.AvailableSize,AllocatedSize:g.AllocatedSize}),y=null===(n=h.Donors)||void 0===n?void 0:n.map((e=>p({...e,Whiteboard:{...e.Whiteboard,DonorMode:!0}})));return{...g,...N,PDisk:v,Donors:y,PDiskId:f,StringifiedId:S,Severity:k}}function h(e){const{DiskSpace:t,VDisks:s=[]}=e;return t||(0,r.XY)(Math.max(...s.map((e=>(0,r.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 r,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);e&&S===a.t.Normal&&t===n.W.OK||(i+=1);const N=Number(null!==s&&void 0!==s?s:k)||0,y=Number(m)||0;l+=y,d+=N+y,u+=Number(g)||0,c+=Number(v)||0,r=!f||f!==r&&r?"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||r||void 0,DiskSpace:S}},f=e=>{const{VDisks:t=[],PoolName:s,Usage:a=0,Read:n=0,Write:r=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(n),Write:Number(r),Used:Number(o),Limit:Number(i),Degraded:Number(l),DiskSpace:S}},S=e=>{const{Nodes:t,TotalNodes:s,FoundNodes:n,NodeGroups:r,MaximumSlotsPerDisk:l,MaximumDisksPerNode:d}=e,u=null===r||void 0===r?void 0:r.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 n,r,l;const d=(null===(n=e.PDisks)||void 0===n?void 0:n.filter((e=>e.State!==a.t.Normal)).length)||0,u=null===(r=e.PDisks)||void 0===r?void 0:r.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(n),tableGroups:u}},k=e=>{const{StoragePools:t,StorageGroups:s,TotalGroups:a,FoundGroups:n}=e,r=((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:r,total:Number(a)||r.length,found:Number(n)}};function N(e){const{FoundGroups:t,TotalGroups:s,StorageGroups:a=[],StorageGroupGroups:n}=e,r=a.map((e=>{const{Usage:t,DiskSpaceUsage:s,Read:a,Write:n,Used:r,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(n),Used:Number(r),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===n||void 0===n?void 0:n.map((({GroupName:e,GroupCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e)));return{groups:r,total:Number(s)||r.length,found:Number(t),tableGroups:o}}},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}({})},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}({})},51930:(e,t,s)=>{s.d(t,{d:()=>i});var a=s(54090),n=s(16439),r=s(5707);const o=(0,n.H)([a.m.Green,a.m.Yellow,a.m.Red]);function i(e){const t=function(e){return t=e,void 0!==t&&t in r.iZ?r.iZ[e]:r.Km;var t}(e.State),s=o(e.AllocatedPercent||0);return t!==r.Km&&s?Math.max(t,r.aW[s]):t}},64036:(e,t,s)=>{s.d(t,{b:()=>n});var a=s(5707);function n(e){const{DiskSpace:t,VDiskState:s,FrontQueues:n,Replicated:o}=e;if(!s)return a.Km;const i=r(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,r(n));let u=Math.max(i,l,d);return o||u!==a.aW.Green||(u=a.aW.Blue),u}function r(e){var t;return e&&null!==(t=a.aW[e])&&void 0!==t?t:a.Km}},5707:(e,t,s)=>{s.d(t,{A$:()=>o,Km:()=>i,Yh:()=>l,aW:()=>r,iZ:()=>u,qs:()=>d});var a=s(94025),n=s(67375);const r={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},o=Object.entries(r).reduce(((e,[t,s])=>({...e,[s]:t})),{}),i=r.Grey,l=o[i],d={[n.W.OK]:r.Green,[n.W.Initial]:r.Yellow,[n.W.SyncGuidRecovery]:r.Yellow,[n.W.LocalRecoveryError]:r.Red,[n.W.SyncGuidRecoveryError]:r.Red,[n.W.PDiskError]:r.Red},u={[a.t.Initial]:r.Grey,[a.t.Normal]:r.Green,[a.t.InitialFormatRead]:r.Yellow,[a.t.InitialSysLogRead]:r.Yellow,[a.t.InitialCommonLogRead]:r.Yellow,[a.t.InitialFormatReadError]:r.Red,[a.t.InitialSysLogReadError]:r.Red,[a.t.InitialSysLogParseError]:r.Red,[a.t.InitialCommonLogReadError]:r.Red,[a.t.InitialCommonLogParseError]:r.Red,[a.t.CommonLoggerInitError]:r.Red,[a.t.OpenFileError]:r.Red,[a.t.ChunkQuotaError]:r.Red,[a.t.DeviceIoError]:r.Red}},78461:(e,t,s)=>{s.d(t,{Y:()=>n});const a={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function n(e){if(!e)return;const t=function(e,t){const s={};return Object.entries(t).reduce(((t,[a,n])=>{const r=e.length-t,o=r-n;return s[a]=e.substring(o,r)||"0",t+n}),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}},7187:(e,t,s)=>{s.d(t,{H7:()=>i,NJ:()=>r,XY:()=>o,gh:()=>d,r$:()=>l});var a=s(7435),n=s(5707);function r(e){return"VDiskId"in e}function o(e){return void 0===e?n.Yh:n.A$[e]||n.Yh}function i(e){return e?n.aW[e]:0}function l(e,t){if((0,a.f8)(e)&&(0,a.f8)(t))return`${e}-${t}`}function d(e,t,s){return[e,t,s].join("-")}},27295:(e,t,s)=>{s.d(t,{LW:()=>u,WT:()=>l,hK:()=>c,or:()=>d});var a=s(56839),n=s(51930),r=s(64036),o=s(78461),i=s(7187);function l(e={}){var t;if(!(0,i.NJ)(e)){const{NodeId:t,PDiskId:s,VSlotId:n}=e;return{StringifiedId:(0,a.U9)({NodeId:t,PDiskId:s,VSlotId:n}),NodeId:t,PDiskId:s,VDiskSlotId:n}}const{PDisk:s,PDiskId:n,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!==n&&void 0!==n?n: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,r.b)(e),N=(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:N}}function d(e={}){const{AvailableSize:t,TotalSize:s,Category:a,State:r,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,n.d)({State:r,AllocatedPercent:g.AllocatedPercent});return{...m,...g,PDiskId:l,NodeId:d,StringifiedId:p,Type:h,Category:a,State:r,Severity:v,SlotSize:u}}function u({AvailableSize:e,AllocatedSize:t}){const s=Number(e),a=Number(t),n=a+s;return{AvailableSize:s,AllocatedSize:a,TotalSize:n,AllocatedPercent:Math.round(100*a/n)}}function c({AvailableSize:e,TotalSize:t}){const s=Number(e),a=Number(t),n=a-s;return{AvailableSize:s,TotalSize:a,AllocatedSize:n,AllocatedPercent:Math.round(100*n/a)}}},69464:(e,t,s)=>{s.d(t,{T:()=>n});var a=s(6388);s(23536);const n=(e,t=a.xN)=>t===a.xN?`-${e}`:e},16439:(e,t,s)=>{s.d(t,{H:()=>n,f:()=>r});var a=s(76086);const n=(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,r=n(["success","warning","danger"])},43951:(e,t,s)=>{s.d(t,{K:()=>r});var a=s(59284),n=s(59001);const r=(e,t,s,r,o)=>{const[i,l]=a.useState((()=>n.f.readUserSettingsValue(t,r)));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));n.f.setUserSettingsValue(t,s),l(s)}),[t])}}},16819:(e,t,s)=>{s.d(t,{a:()=>o});var a=s(59284),n=s(69024),r=s(59001);const o=e=>{const t=a.useCallback((()=>e?r.f.readUserSettingsValue(e,{}):{}),[e]),s=a.useCallback((t=>{e&&r.f.setUserSettingsValue(e,t)}),[e]);return(0,n.a)({saveSizes:s,getSizes:t})}},35736:(e,t,s)=>{s.d(t,{w:()=>n});var a=s(76086);function n({inverseColorize:e,warningThreshold:t=a.Hh,dangerThreshold:s=a.Ed,colorizeProgress:n,fillWidth:r}){let o=e?"danger":"good";return n&&(r>t&&r<=s?o="warning":r>s&&(o=e?"good":"danger")),o}},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})},58267:(e,t,s)=>{s.d(t,{P:()=>o,_:()=>i});var a=s(54090),n=s(6354);const r={[n.r.Dead]:a.m.Red,[n.r.Created]:a.m.Yellow,[n.r.ResolveStateStorage]:a.m.Yellow,[n.r.Candidate]:a.m.Yellow,[n.r.BlockBlobStorage]:a.m.Yellow,[n.r.WriteZeroEntry]:a.m.Yellow,[n.r.Restored]:a.m.Yellow,[n.r.Discover]:a.m.Yellow,[n.r.Lock]:a.m.Yellow,[n.r.Stopped]:a.m.Yellow,[n.r.ResolveLeader]:a.m.Yellow,[n.r.RebuildGraph]:a.m.Yellow,[n.r.Deleted]:a.m.Green,[n.r.Active]:a.m.Green},o=e=>{if(!e)return a.m.Grey;return t=e,Object.values(a.m).includes(t)?e:r[e];var t};function i(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"}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/985.86fef64d.chunk.js b/ydb/core/viewer/monitoring/static/js/985.86fef64d.chunk.js deleted file mode 100644 index 6768a21cf3..0000000000 --- a/ydb/core/viewer/monitoring/static/js/985.86fef64d.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 985.86fef64d.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[985],{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"})))}},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"})))}},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"})))}},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"})))))}},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)},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 l=()=>`ck.${((e,t)=>{let i="";for(let s=e;s>0;--s)i+=t[Math.floor(Math.random()*t.length)];return i})(10,"0123456789abcdefghijklmnopqrstuvwxyz")}`,c=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:c,type:h,isMobile:d,renderPluginLoader:u}=e,g=(0,s.Tt)(e,["instanceRef","id","type","isMobile","renderPluginLoader"]),p=n.useMemo((()=>l()),[]),m=c||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 b=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(b,Object.assign({ref:t,id:m,lang:v},g))))},C=c(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)))})))},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)}}},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),l=i(8964);var c=i(38469),h=i.n(c);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}),l.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)}}}},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))))}},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),l=e=>!e.some((e=>a(e)));function c(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 b({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:c(i,t)},t),n&&a),!n&&a,"horizontal"===r&&s.createElement("div",{className:o("dots",{"with-note":Boolean(e)})}))}var E=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:l,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",l)},s.createElement("dt",{className:o("term-container",{multiline:_}),style:g},s.createElement(b,{direction:i,name:t,nameTitle:u,note:f,multilineName:_})),s.createElement("dd",{className:o("definition"),title:c(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=E(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=E(e,["items"]);if(l(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}))}},6170:(e,t,i)=>{"use strict";i.d(t,{B:()=>c});var s=i(59284),n=i(73633),r=i(84375),o=i(99991);const a=(0,i(98192).om)("help-popover"),l=16;function c(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:l})))}},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:"_"}))},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 l="g-date-",c=(0,i(82435).withNaming)({n:l,e:"__",m:"_"});function h({name:e,value:t,onReset:i,form:r,disabled:o,toStringValue:a}){const l=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 c=a?a(t):`${null!==t&&void 0!==t?t:""}`;return(0,s.jsx)("input",{ref:l,type:"hidden",name:e,value:c,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"}'),b=(0,_.N)({en:v,ru:C},`${l}relative-range-date-picker-presets`),E=[{from:"now-1d",to:"now",get title(){return b("Last day")}},{from:"now-3d",to:"now",get title(){return b("Last 3 days")}},{from:"now-1w",to:"now",get title(){return b("Last week")}},{from:"now-1M",to:"now",get title(){return b("Last month")}},{from:"now-3M",to:"now",get title(){return b("Last 3 months")}},{from:"now-6M",to:"now",get title(){return b("Last 6 months")}},{from:"now-1y",to:"now",get title(){return b("Last year")}},{from:"now-3y",to:"now",get title(){return b("Last 3 years")}}],S=[{from:"now-5m",to:"now",get title(){return b("Last 5 minutes")}},{from:"now-15m",to:"now",get title(){return b("Last 15 minutes")}},{from:"now-30m",to:"now",get title(){return b("Last 30 minutes")}},{from:"now-1h",to:"now",get title(){return b("Last hour")}},{from:"now-3h",to:"now",get title(){return b("Last 3 hours")}},{from:"now-6h",to:"now",get title(){return b("Last 6 hours")}},{from:"now-12h",to:"now",get title(){return b("Last 12 hours")}}],y=[{from:"now/d",to:"now/d",get title(){return b("Today")}},{from:"now-1d/d",to:"now-1d/d",get title(){return b("Yesterday")}},{from:"now-2d/d",to:"now-2d/d",get title(){return b("Day before yesterday")}},{from:"now/w",to:"now/w",get title(){return b("This week")}},{from:"now/M",to:"now/M",get title(){return b("This month")}},{from:"now/y",to:"now/y",get title(){return b("This year")}},{from:"now/d",to:"now",get title(){return b("From start of day")}},{from:"now/w",to:"now",get title(){return b("From start of week")}},{from:"now/M",to:"now",get title(){return b("From start of month")}},{from:"now/y",to:"now",get title(){return b("From start of year")}}],w=S.concat(E,y),L=/^now-(\d+)([smhdwMy])$/,R={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,l,c,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!==(l=null===(a=(0,f.bQ)(e.end.value,{timeZone:t,roundUp:!0}))||void 0===a?void 0:a.format(s))&&void 0!==l?l:"":e.end.value),!i&&"relative"===(null===(c=e.start)||void 0===c?void 0:c.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=L.exec(s);if(e){const[,t,i]=e;if(["s","m","h","d","w","M","y"].includes(i)){const e=1===Number(t)?R[i]:T[i];return b(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},`${l}relative-range-date-picker-control`),M=c("relative-range-date-picker-control"),P=n.forwardRef((({props:e,state:t,open:i,isMobile:r,onClick:o,onKeyDown:a,onFocus:l,onClickCalendar:c,onUpdate:h},f)=>{var _;const{alwaysShowAsAbsolute:v,presetTabs:C,getRangeTitle:b}=e,E=e.format||"L",S=n.useMemo((()=>"function"===typeof b?b(t.value,t.timeZone):N({value:t.value,timeZone:t.timeZone,alwaysShowAsAbsolute:v,format:E,presets:null===C||void 0===C?void 0:C.flatMap((({presets:e})=>e))})),[v,E,b,C,t.timeZone,t.value]),y=e.validationState||(t.isInvalid?"invalid":void 0),w=null!==(_=e.errorMessage)&&void 0!==_?_:t.errors.join("\n"),L={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:c,onKeyDown:a};return e.renderControl?e.renderControl({ref:f,value:t.value,title:S,validationState:y,errorMessage:w,open:i,triggerProps:L}):(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})},L),{disabled:r,onClick:o}),onKeyDown:a,onFocus:l,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:c,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),l="highlightedRange"in t&&t.highlightedRange,c=Boolean(l&&a),h=a&&l&&e.isSame(l.start,t.mode),d=a&&l&&e.isSame(l.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 b=q(e,"D",t.timeZone);return"months"===t.mode?b=q(e,"MMM",t.timeZone):"quarters"===t.mode?b=q(e,"[Q]Q",t.timeZone):"years"===t.mode&&(b=q(e,"YYYY",t.timeZone)),{cellProps:v,buttonProps:C,formattedDate:b,isDisabled:o,isSelected:a,isRangeSelection:c,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},`${l}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=c("calendar"),se=n.forwardRef((function(e,t){const{state:i}=e,{calendarProps:r,modeButtonProps:o,nextButtonProps:l,previousButtonProps:c}=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),l=o+1===t.availableModes.length,c=o+2===t.availableModes.length,h=t.disabled||l,d={disabled:t.disabled,className:h?J:void 0,onClick:h?void 0:()=>{t.zoomOut(),c&&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({},c,{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({},l,{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 l;r?l=te.indexOf(t.mode)>te.indexOf(e.mode)?"zoom-out":"zoom-in":o&&(l=e.startDate.isBefore(t.startDate)?"forward":"backward");const{gridProps:c}=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")},c,{children:[l&&(0,s.jsx)(re,{className:ie("previous-state"),state:t,animation:l}),(0,s.jsx)(re,{className:ie("current-state"),state:e,animation:l,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)(le,{date:t,state:e},t.unix())))]},t)))})}function le({date:e,state:t}){const{cellProps:i,buttonProps:n,formattedDate:r,isDisabled:o,isSelected:a,isRangeSelection:l,isSelectionStart:c,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":l,"selection-start":c,"selection-end":h,"out-of-boundary":d,unavailable:u,current:g,weekend:p}),children:r}))}))}function ce(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:l=he}=e,[c,h]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),d=te.filter((e=>l[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,_=ce(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]),b=n.useMemo((()=>e.maxValue?e.maxValue.timeZone(v):void 0),[v,e.maxValue]),E=n.useMemo((()=>e.focusedValue?K(e.focusedValue.timeZone(v),C,b):e.focusedValue),[e.focusedValue,C,b,v]),S=n.useMemo((()=>{var t;return K((null===(t=e.defaultFocusedValue?e.defaultFocusedValue:c)||void 0===t?void 0:t.timeZone(v))||j({timeZone:v}).startOf(u),C,b)}),[b,C,e.defaultFocusedValue,v,c,u]),[y,w]=(0,o.P)(E,S,(t=>{var i;null===(i=e.onFocusUpdate)||void 0===i||i.call(e,t.timeZone(_))})),L=null!==(s=null===y||void 0===y?void 0:y.timeZone(v))&&void 0!==s?s:K(j({timeZone:v}),C,b);function R(e){w(K(e.startOf(m),C,b))}ge(L,C,b)&&w(K(L,C,b));const[T,x]=n.useState(e.autoFocus||!1),k=de(L,m),A=ue(L,m);return{disabled:r,readOnly:a,value:c,setValue(e){if(!r&&!a){let t=K(e,C,b);if(this.isCellUnavailable(t))return;c&&(t=Y(t,c.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:b,focusedDate:L,startDate:k,endDate:A,setFocusedDate(e){R(e),x(!0)},focusNextCell(){R(L.add(1,this.mode))},focusPreviousCell(){R(L.subtract(1,this.mode))},focusNextRow(){"days"===this.mode?R(L.add(1,"week")):"quarters"===this.mode?R(L.add(1,"years")):R(L.add(3,this.mode))},focusPreviousRow(){"days"===this.mode?R(L.subtract(1,"week")):"quarters"===this.mode?R(L.subtract(1,"years")):R(L.subtract(3,this.mode))},focusNextPage(e){"days"===this.mode?R(L.add({months:e?12:1})):"quarters"===this.mode?R(L.add(4,"years")):R(L.add(12,this.mode))},focusPreviousPage(e){"days"===this.mode?R(L.subtract({months:e?12:1})):"quarters"===this.mode?R(L.subtract(4,"years")):R(L.subtract(12,this.mode))},focusSectionStart(){R(de(L,this.mode))},focusSectionEnd(){R(ue(L,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(L,!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(c&&e.isSame(c.timeZone(v),m)&&!this.isCellDisabled(e))},isCellUnavailable(t){return this.mode===u&&Boolean(e.isDateUnavailable&&e.isDateUnavailable(t))},isCellFocused(e){return this.isFocused&&L&&e.isSame(L,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},`${l}date-field`),Ce={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,weekday:!0},be={start:"[",end:"]"},Ee={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 Le={weekday:"day",day:"date",dayPeriod:"hour"};function Re(e){if("literal"===e||"timeZoneName"===e||"unknown"===e)throw new Error(`${e} section does not have duration unit.`);return e in Le?Le[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===be.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===be.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=Ee[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 l=De(a,t,i,s,r);if(n.push(l),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+=l.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,l=!i.current;setTimeout((()=>{a&&a===i.current&&(l?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=ce(e.value||e.defaultValue||e.placeholderValue),l=e.timeZone||a,c=e=>{r(e?e.timeZone(a):e)},[h,d]=n.useState((()=>j({placeholderValue:e.placeholderValue,timeZone:l}))),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:l})));const C=s&&s.isValid()&&Fe(p,_)?s.timeZone(l):h.timeZone(l),b=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,_),[E,S]=n.useState(-1),y=n.useMemo((()=>{if(-1===E)return null;if("all"===E)return{startIndex:0,endIndex:b.editableSections.length-1};if("number"===typeof E)return{startIndex:E,endIndex:E};if("string"===typeof E){const e=b.editableSections.findIndex((e=>e.type===E));return{startIndex:e,endIndex:e}}return E}),[E,b.editableSections]);function w(t){e.disabled||e.readOnly||(Fe(p,_)?s&&t.isSame(s)||c(t):(s&&c(null),d(t)))}function L(e){_[e]=!0,_.day&&_.month&&_.year&&p.weekday&&(_.weekday=!0),_.hour&&p.dayPeriod&&(_.dayPeriod=!0),v(Object.assign({},_))}const R=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:l,flushAllValidSections:c,flushValidSection:h,setSelectedSections:d,setValue:u,setDate:g,adjustSection:p,setSection:m,getSectionValue:f,setSectionValue:_,createPlaceholder:v,setValueFromString:C}=e,b=n.useRef(""),{hasDate:E,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:l,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:E,hasTime:S,selectedSectionIndexes:o,validationState:i,setSelectedSections(e){b.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;b.current="";const e=Me(this.sections,a);-1!==e&&p(e,1)},decrement(){if(this.readOnly||this.disabled)return;b.current="";const e=Me(this.sections,a);-1!==e&&p(e,-1)},incrementPage(){if(this.readOnly||this.disabled)return;b.current="";const e=Me(this.sections,a);-1!==e&&p(e,He[this.sections[e].type]||1)},decrementPage(){if(this.readOnly||this.disabled)return;b.current="";const e=Me(this.sections,a);-1!==e&&p(e,-(He[this.sections[e].type]||1))},incrementToMax(){if(this.readOnly||this.disabled)return;b.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;b.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(b.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=Re(i.type);r=n.set(e,s[e]())}_(t,r)},clearAll(){if(this.readOnly||this.disabled)return;b.current="",c(),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=b.current+e;const n=n=>{var r,o,a;let l="month"===i.type?n-1:n;const c=0===i.minValue;if("hour"!==i.type||12!==i.minValue&&11!==i.maxValue){if(l>(null!==(r=i.maxValue)&&void 0!==r?r:0)&&(l=Number(e)-("month"===i.type?1:0),s=e,l>(null!==(o=i.maxValue)&&void 0!==o?o:0)))return void(b.current="")}else n>12&&(l=Number(e)),12===i.minValue&&l>1&&(l+=12);const h=l>0||0===l&&c;h&&m(t,l),Number(n+"0")>(null!==(a=i.maxValue)&&void 0!==a?a:0)||s.length>=String(i.maxValue).length?(b.current="",h&&this.focusNextSection()):b.current=s},r=n=>{var r;const o=null!==(r=i.options)&&void 0!==r?r:[];let a=n.toLocaleUpperCase(),l=o.filter((e=>e.startsWith(a)));if(0===l.length&&(n!==e&&(a=e.toLocaleUpperCase(),l=o.filter((e=>e.startsWith(a)))),0===l.length))return void(b.current="");const c=l[0],h=o.indexOf(c);"dayPeriod"===i.type?m(t,1===h?12:0):m(t,h),l.length>1?b.current=s:(b.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=>(b.current="",C(e))};var y}({value:s,displayValue:C,placeholderValue:e.placeholderValue,timeZone:l,validationState:R,editableSections:b.editableSections,readOnly:e.readOnly,disabled:e.disabled,selectedSectionIndexes:y,selectedSections:E,isEmpty:0===Object.keys(_).length,flushAllValidSections:function(){_={},v({})},flushValidSection:function(e){const t=b.editableSections[e];t&&delete _[t.type],v(Object.assign({},_))},setSelectedSections:S,setValue:w,setDate:c,adjustSection:function(e,t){const i=b.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=Re(e.type);return t.set(r,n)}(i,C,t)):(L(i.type),Object.keys(_).length>=Object.keys(p).length&&w(C)))},setSection:function(e,t){const i=b.editableSections[e];i&&(L(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(Re(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:l}).timeZone(l)},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,l);return!!t.isValid()&&(c(t),!0)}})}const We=c("date-field");function Ve(e){var{className:t}=e,i=(0,me.Tt)(e,["className"]);const r=Be(i),{inputProps:o}=Ue(r,i),[l,c]=n.useState(!1),{focusWithinProps:d}=(0,a.R)({onFocusWithinChange(e){c(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&&!l&&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=c("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=c("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},`${l}relative-date-picker`);function et(e,t){var{onFocus:i,onBlur:s}=t,r=(0,me.Tt)(t,["onFocus","onBlur"]);const{mode:l,setMode:c,datePickerState:h,relativeDateState:d}=e,[u,g]=n.useState("relative"===l?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)}}),[b,E]=(0,o.P)(void 0,!1,r.onOpenChange);!e.isActive&&b&&E(!1);const S={onFocus:()=>{e.isActive||(e.setActive(!0),E(!0))},errorMessage:r.errorMessage,errorPlacement:r.errorPlacement,controlProps:{onClick:()=>{e.disabled||b||(e.setActive(!0),E(!0))},role:"combobox","aria-expanded":b}},{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 L=r.validationState;L||(L="relative"===l?d.validationState:h.dateFieldState.validationState);const R=n.useRef(null),T=(0,W.N)(R,"relative"===l?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=R.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(),E(!0),k())}}),fieldProps:$e(S,"relative"===l?w:y,"absolute"===l&&h.dateFieldState.isEmpty&&!e.isActive&&r.placeholder?{value:""}:void 0,{controlRef:T,validationState:L}),modeSwitcherProps:{size:m(r.size),disabled:e.readOnly||e.disabled,view:"flat-secondary",style:{zIndex:2,marginInlineEnd:2},selected:"relative"===l,extraProps:{"aria-label":Je("Formula input mode")},onClick:()=>{if(c("relative"===l?"absolute":"relative"),"relative"===l){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":b},view:"flat-secondary",onClick:()=>{e.setActive(!0),E(!b),b||k()}},popupProps:{open:b,onEscapeKeyDown:()=>{E(!1),A()},onOutsideClick:e=>{var t;e.target&&!(null===(t=N.current)||void 0===t?void 0:t.contains(e.target))&&E(!1)},onTransitionExited:()=>{g("relative"===l?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||(E(!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 l,c;const{disabled:h,readOnly:d}=a,[u,g]=(0,o.P)(a.open,null!==(l=a.defaultOpen)&&void 0!==l&&l,a.onOpenChange),p=g,[m,f]=(0,o.P)(a.value,null!==(c=a.defaultValue)&&void 0!==c?c:null,a.onUpdate),[_,v]=n.useState(null),[C,b]=n.useState(null),E=ce(s(a.value)||s(a.defaultValue)||a.placeholderValue),S=a.timeZone||E;let y=_,w=C;const L=a.format||"L",R=(e,s)=>{h||d||(f(i(t(e,s),E)),v(null),b(null))},T=r(Object.assign(Object.assign({},a),{value:m,onUpdate(e){e?R(e,e):f(null)},disabled:h,readOnly:d,validationState:a.validationState,minValue:a.minValue,maxValue:a.maxValue,isDateUnavailable:a.isDateUnavailable,format:L,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,E):null)},dateValue:y,timeValue:w,setDateValue:e=>{if(h||d)return;const t=!T.hasTime;T.hasTime?w||t?R(e,w||e):v(e):R(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?R(y,i):b(i)},disabled:h,readOnly:d,format:L,hasDate:T.hasDate,hasTime:T.hasTime,timeFormat:x,timeZone:S,isOpen:u,setOpen(t,i){!t&&!m&&y&&T.hasTime&&R(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"),[l,c]=n.useState(i);i!==l&&(c(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 l=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]),[c,h]=n.useState(l);l&&l!==c&&h(l);const d=e.validationState||r&&!l?"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:l,lastCorrectDate:c,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=c("relative-date-picker");function nt(e){var t;const i=it(e),{groupProps:o,fieldProps:a,modeSwitcherProps:l,calendarButtonProps:c,popupProps:m,calendarProps:f,timeInputProps:_}=et(i,e),v=n.useRef(null),C=(0,W.N)(v,o.ref),b=(0,r.I)(),E=i.datePickerState.hasTime&&!i.datePickerState.hasDate;return(0,s.jsxs)("div",Object.assign({},o,{ref:C,className:st(null,e.className),children:[b&&"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:b&&"absolute"===i.mode,className:st("input",{mobile:b&&"absolute"===i.mode})}),hasClear:e.hasClear&&!(b&&"absolute"===i.mode),startContent:(0,s.jsx)(g.$,Object.assign({},l,{children:(0,s.jsx)(p.I,{data:H})})),endContent:(0,s.jsxs)(n.Fragment,{children:[!b&&!E&&(0,s.jsx)(g.$,Object.assign({},c,{children:(0,s.jsx)(p.I,{data:d})})),!b&&E&&(0,s.jsx)(qe,{size:c.size,icon:B}),b&&"absolute"===i.mode&&(0,s.jsx)(qe,{size:c.size,icon:E?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}),!b&&!E&&(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),lt=i(87924),ct=i.n(lt),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 bt(e,t){return"left"===e?(Ct(t),"start"):"right"===e?(Ct(t),"end"):e}const Et=(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:l,getRowClassNames:c,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===c||void 0===c?void 0:c(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&&l?l.bind(null,e,t):void 0,className:Et("row",{disabled:f,interactive:v,"vertical-align":h},_.join(" "))},i.map(((i,s)=>{const{id:r,align:o,primary:a,className:l,sticky:c}=i,h=St.getBodyCellContent(i,e,t),g=bt(o,"column.align"),m=bt(c,"column.sticky");return n.createElement("td",{key:r,style:p[s],className:Et("cell",{align:g,primary:a,sticky:m,"edge-padding":d,"word-wrap":u},l)},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=ct()(t,n):dt()(t,s)&&(a=ct()(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:Et({"with-primary":r,"with-sticky-scroll":t},i),"data-qa":s},t?n.createElement(n.Fragment,null,n.createElement("div",{ref:this.scrollContainerRef,className:Et("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:Et("head")},n.createElement("tr",{className:Et("row")},e.map(((e,r)=>{const{id:o,align:a,primary:l,sticky:c,className:h}=e,d=bt(a,"column.align"),u=bt(c,"column.sticky"),g=St.getHeadCellContent(e);return n.createElement("th",{key:o,ref:this.state.columnHeaderRefs[r],style:s[r],className:Et("cell",{align:d,primary:l,sticky:u,"edge-padding":t,"word-wrap":i},h)},g)}))))}renderBody(){const{data:e}=this.props;return n.createElement("tbody",{className:Et("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:Et("table",{width:e})},this.renderHead(),this.renderBody())}renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return n.createElement("tr",{className:Et("row",{empty:!0})},n.createElement("td",{className:Et("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:Et("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:Et("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=c("relative-range-date-picker-presets-doc"),Lt=[{id:"title",name:()=>b("Range")},{id:"from",name:()=>b("From")},{id:"to",name:()=>b("To")}],Rt=[{get title(){return b("Last 5 minutes")},from:"now - 5m",to:"now"},{get title(){return b("From start of day")},from:"now/d",to:"now"},{get title(){return b("This week")},from:"now/w",to:"now/w"},{get title(){return b("From start of week")},from:"now/w",to:"now"},{get title(){return b("Previous month")},from:"now - 1M/M",to:"now - 1M/M"}];function Tt({size:e,docs:t}){return(0,s.jsx)(St,{columns:Lt,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=Rt}){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=c("relative-range-date-picker-presets");function It({className:e,size:t="m",minValue:i,withTime:r,onChoosePreset:o,presetTabs:a,docs:l}){var c,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:b("Main"),presets:[]},n=E;e&&n.unshift(...S),s.presets=x(n,t),s.presets.length>0&&i.push(s);const r={id:"other",title:b("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===(c=d[0])||void 0===c?void 0:c.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:l})]}),(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},`${l}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=c("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},`${l}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},`${l}validation`);function Qt(e,t,i,s,n,r="Value"){const o=e&&i&&i.isBefore(e),a=e&&t&&e.isBefore(t),l=e&&(null===s||void 0===s?void 0:s(e))||!1,c=o||a||l,h=[];return c&&(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})),l&&h.push($t("Selected date unavailable."))),{isInvalid:c,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,l=t?(0,f.bQ)(t.value,{timeZone:o,roundUp:!0}):null,c=Qt(a,s,n,r,o);a||i||(c.isInvalid=!0,c.errors.push(Kt("Value is required.")));const h=Qt(l,s,n,r,o);return l||i||(h.isInvalid=!0,h.errors.push(Kt("Value is required."))),a&&l&&l.isBefore(a)&&(c.isInvalid=!0,c.errors.push(Kt('"From" can\'t be after "To".'))),{isInvalid:c.isInvalid||h.isInvalid,startValidationResult:c,endValidationResult:h}}const Jt=c("relative-range-date-picker-dialog");function ei({props:e,state:t,open:i,onClose:n,focusInput:r,isMobile:o,anchorRef:a,className:l}){return o?(0,s.jsx)(F.c,{visible:i,onClose:n,contentClassName:Jt("content",{mobile:!0,size:"xl"},l),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},l),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,l,c;const h=function(e,t){var i,s,r,o;const{withApplyButton:a,allowNullableValues:l}=t,[c,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(c,d,l,t.minValue,t.maxValue,t.isDateUnavailable,m)),[l,d,t.isDateUnavailable,t.maxValue,t.minValue,c,m]);return{start:c,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(c,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(c,d,Object.assign(Object.assign({},t),{timeZone:i})),i)},applyValue:function(){e.setValue(Xt(c,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===(c=null===(l=h.endValidation)||void 0===l?void 0:l.errors)||void 0===c?void 0:c.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},`${l}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,l]=(0,o.P)(e.timeZone,null!==(i=e.defaultTimeZone)&&void 0!==i?i:"default",e.onUpdateTimeZone),c=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,l=Qt(o,i,s,n,r,ni('"From"'));o||t||(l.isInvalid=!0,l.errors.push(ni('"From" is required.')));const c=Qt(a,i,s,n,r,ni('"To"'));a||t||(c.isInvalid=!0,c.errors.push(ni('"To" is required.')));o&&a&&a.isBefore(o)&&(l.isInvalid=!0,l.errors.push(ni('"From" can\'t be after "To".')));return{isInvalid:l.isInvalid||c.isInvalid,errors:l.errors.concat(c.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),l(i),(s!==t||s&&a!==i)&&(null===(n=e.onUpdate)||void 0===n||n.call(e,t,i))}},c)}const oi=c("relative-range-date-picker");function ai(e){const t=ri(e),i=(0,r.I)(),l=n.useRef(null),c=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:l},m,{className:oi(null,e.className),style:e.style,children:[(0,s.jsx)(P,{props:e,state:t,open:g,isMobile:i,ref:c,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 li(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 li(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=c.current)||void 0===e||e.focus({preventScroll:!0})}))},anchorRef:l,isMobile:i,className:e.popupClassName})]}))}function li(e){return e?"relative"===e.type?e.value:e.value.toISOString():""}},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},594:(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:"M14.756 10.164c1.665-.962 1.665-3.366 0-4.329L6.251.918C4.585-.045 2.5 1.158 2.5 3.083v9.834c0 1.925 2.085 3.128 3.751 2.164z",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},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"}))))},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"}))},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"}))},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"}))},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"}))},73253:(e,t,i)=>{"use strict";i.d(t,{og:()=>R,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"),l=n("1:1","normal"),c=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,l,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,l=n.startZoom||1;e.setZoom(l),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)}))}(c,o,a,l,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)}))}(c),c}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)"},l={hasControls:!1,hasRotatingPoint:!1,lockMovementX:!0,lockMovementY:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0},c="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,l=Boolean(a),c=[],h=[];if(o.forEach((e=>{const t=e.data.group;l?a===t?c.push(e):h.push(e):c.push(e)})),n.addNodes(c),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,l=new Map,c=new Map,h=[];return s.traverseBF((s=>{const{object:n,width:r,height:l}=function(e,t,i,s,n,r,o){var a,l;const c=null!==(a=t.shapeInstance)&&void 0!==a?a:r.node(e,{top:i,left:s},t,n,o),h=null!==(l=t.canvasNode)&&void 0!==l?l:c.getShape();return t.addShapeInstance(c),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:l}),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&&l.has(t.parent)){const e=l.get(t.parent);s<e&&(s=e)}return l.set(t,s),t.children.length>0&&(n=16*(t.children.length-1)+t.children.reduce(((t,i)=>t+e(i)),0),c.set(t,n)),s=Math.max(s,n),l.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=l.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=c.get(o);n<h&&(t=Math.floor((h-n)/2));const a=i+s+v(o.children.length),l=r+t;e(o.children,a,l)}r=n}}([s.root],n,r),h}(e.canvas,s,n,e,t,i,r);let a=0,l=0;return o.forEach((e=>{a=Math.max(a,(e.left||0)+e.getScaledWidth()),l=Math.max(l,(e.top||0)+e.getScaledHeight())})),{nodes:o,bottom:l,right:a}}function b(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 E(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}=b(o),c=new s.fabric.Path(`M ${e} ${a}\n V ${a+16}`,{fill:"",stroke:i.stroke,strokeWidth:1});t.push(new s.fabric.Group([c],Object.assign({},l))),n.push(r)}if(o&&o.children.length>1&&!n.includes(r)){const{x:e,y:a}=b(o),c=12,h=6,d=[new s.fabric.Path(`M ${e} ${a}\n V ${a+c}`,{fill:"",stroke:i.stroke,strokeWidth:1})],{x:u,y:g}=E(o.children[0]),{x:p,y:m}=E(o.children[o.children.length-1]),f=new s.fabric.Path(`M ${u} ${g}\n V ${g-c+h}\n Q ${u} ${g-c} ${u+h} ${g-c}\n H ${p-h}\n Q ${p} ${m-c} ${p} ${m+h-c}\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}=E(e),a=new s.fabric.Path(`M ${n} ${r}\n V ${r-c}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(a)})),t.push(new s.fabric.Group(d,Object.assign({},l))),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,l=s+r;a>e&&(e=a),l>t&&(t=l)})),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 L(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 R(e,t,i,s){const n=L(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),l=U(s.height);if("border-box"===s.boxSizing&&(Math.round(a+r)!==t&&(a-=H(s,"left","right")+r),Math.round(l+o)!==i&&(l-=H(s,"top","bottom")+o)),!function(e){return e===P(e).document.documentElement}(e)){var c=Math.round(a+r)-t,h=Math.round(l+o)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(h)&&(l-=h)}return z(n.left,n.top,a,l)}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:c,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,l=a+o.getScaledWidth();return{group:t,items:new s.fabric.Group(r,{opacity:this.selectedGroup===t?1:0}),title:o,hoverLine:this.createHoverLine(a,l,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,l=X.expandedWidth-2*X.padding,c=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:l-a}));n.push(o,c),i+=Math.max(o.getScaledHeight(),c.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 l=new s.fabric.Text(t,Object.assign(Object.assign({left:this.left,top:i},this.textProps),{fontWeight:"bold"}));if(n.push(l),i+=l.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},l))}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:c,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:c,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({},l),{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},l))}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:c,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},l))}}const ae=40,le=40,ce=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:le,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:ce,ry:ce,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},l))}}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:c,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},l))}}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:c,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},l));const i=new s.fabric.Text("Tables:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:c,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:c,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},l))}(this.data.tables||[],this.opts.colors),a=function(e,t){if(!e)return new s.fabric.Group([],Object.assign({top:0,left:0},l));const i=new s.fabric.Text("CTE:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:c,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:c,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},l))}(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},l))}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)}},55299:(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),l=i(63365),c=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),b=i(43937);const E=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"}));var S=i(70825),y=i(71153),w=i(94420);const L=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 R=i(27612);const T={danger:{filled:_.A,outlined:v.A},info:{filled:C.A,outlined:b.A},success:{filled:E,outlined:S.A},warning:{filled:y.A,outlined:w.A},utility:{filled:L,outlined:R.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:b}=e;return s.createElement(f,{layout:d,view:i},s.createElement(o.Z,{style:_,className:m({corners:p},(0,c.Y)({py:4,px:5},g)),theme:t,view:i,qa:b},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,l.$)({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,l.$)({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},80604:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(27145),n=i(59284),r=i(46734),o=i(9296);const a=(0,i(69220).om)("card"),l=n.forwardRef((function(e,t){const{type:i="container",theme:l,view:c,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,b=v?"normal":void 0,E=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:l||b,view:c||E,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)}))},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")}))}))},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),l=i(69220),c=i(7412);const h=(0,l.om)("tooltip"),d=["bottom","top"],u=e=>{const{children:t,content:i,disabled:l,placement:u=d,qa:g,id:p,className:m,style:f,disablePortal:_,contentClassName:v,openDelay:C=1e3,closeDelay:b}=e,[E,S]=s.useState(null),y=(0,r.d)(E,{openDelay:C,closeDelay:b,preventTriggerOnFocus:!0}),w=s.Children.only(t),L=(0,c.Q)(w),R=(0,n.N)(S,L);return s.createElement(s.Fragment,null,s.cloneElement(w,{ref:R}),E?s.createElement(o.z,{id:p,role:"tooltip",className:h(null,m),style:f,open:y&&!l,placement:u,anchorRef:{current:E},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)}},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],l=i[5],c=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,b=0;b<C;)v=_[e[b++]^255&v]^f[e[b++]^v>>8&255]^m[e[b++]^v>>16&255]^p[e[b++]^v>>>24]^g[e[b++]]^u[e[b++]]^d[e[b++]]^h[e[b++]]^c[e[b++]]^l[e[b++]]^a[e[b++]]^o[e[b++]]^r[e[b++]]^n[e[b++]]^s[e[b++]]^t[e[b++]];for(C+=15;b<C;)v=v>>>8^t[255&(v^e[b++])];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({})},22868:(e,t,i)=>{"use strict";var s=i(67796),n={};function r(e,t,i,s,n,r,o,a){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=[i,s,n,r,o,a],h=0;(l=new Error(t.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}var o="mixins";e.exports=function(e,t,i){var a=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},h={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var i=0;i<t.length;i++)u(e,t[i])},childContextTypes:function(e,t){e.childContextTypes=s({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=s({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=s({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var i in t){var s=t[i];if(t.hasOwnProperty(i)){if(r(!(i in h),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',i),i in e)return r("DEFINE_MANY_MERGED"===(c.hasOwnProperty(i)?c[i]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",i),void(e[i]=p(e[i],s));e[i]=s}}}(e,t)},autobind:function(){}};function d(e,t){var i=l.hasOwnProperty(t)?l[t]:null;C.hasOwnProperty(t)&&r("OVERRIDE_BASE"===i,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&r("DEFINE_MANY"===i||"DEFINE_MANY_MERGED"===i,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function u(e,i){if(i){r("function"!==typeof i,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),r(!t(i),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var s=e.prototype,n=s.__reactAutoBindPairs;for(var a in i.hasOwnProperty(o)&&h.mixins(e,i.mixins),i)if(i.hasOwnProperty(a)&&a!==o){var c=i[a],u=s.hasOwnProperty(a);if(d(u,a),h.hasOwnProperty(a))h[a](e,c);else{var g=l.hasOwnProperty(a);if("function"===typeof c&&!g&&!u&&!1!==i.autobind)n.push(a,c),s[a]=c;else if(u){var f=l[a];r(g&&("DEFINE_MANY_MERGED"===f||"DEFINE_MANY"===f),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",f,a),"DEFINE_MANY_MERGED"===f?s[a]=p(s[a],c):"DEFINE_MANY"===f&&(s[a]=m(s[a],c))}else s[a]=c}}}else;}function g(e,t){for(var i in r(e&&t&&"object"===typeof e&&"object"===typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(i)&&(r(void 0===e[i],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",i),e[i]=t[i]);return e}function p(e,t){return function(){var i=e.apply(this,arguments),s=t.apply(this,arguments);if(null==i)return s;if(null==s)return i;var n={};return g(n,i),g(n,s),n}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function f(e,t){return t.bind(e)}var _={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},C={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},b=function(){};return s(b.prototype,e.prototype,C),function(e){var t=function(e,s,o){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,i=0;i<t.length;i+=2){var s=t[i],n=t[i+1];e[s]=f(e,n)}}(this),this.props=e,this.context=s,this.refs=n,this.updater=o||i,this.state=null;var a=this.getInitialState?this.getInitialState():null;r("object"===typeof a&&!Array.isArray(a),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=a};for(var s in t.prototype=new b,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],a.forEach(u.bind(null,t)),u(t,_),u(t,e),u(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),r(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[s]||(t.prototype[s]=null);return t}}},14538:(e,t,i)=>{"use strict";var s=i(59284),n=i(22868);if("undefined"===typeof s)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var r=(new s.Component).updater;e.exports=n(s.Component,s.isValidElement,r)},91740:e=>{e.exports=Date.now||function(){return(new Date).getTime()}},41470:(e,t,i)=>{var s=i(91740);e.exports=function(e,t,i){var n,r,o,a,l;function c(){var h=s()-a;h<t&&h>0?n=setTimeout(c,t-h):(n=null,i||(l=e.apply(o,r),n||(o=r=null)))}return null==t&&(t=100),function(){o=this,r=arguments,a=s();var h=i&&!n;return n||(n=setTimeout(c,t)),h&&(l=e.apply(o,r),o=r=null),l}}},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 l=new ImageData(a,s,n);i.putImageData(l,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(l,c){var h,d,u=new n.Point(l.x,l.y);0===c?(d=e[c+1],h=i?a(n.util.createVector(d,u)).addEquals(u):e[e.length-1]):c===e.length-1?(h=e[c-1],d=i?a(n.util.createVector(h,u)).addEquals(u):e[0]):(h=e[c-1],d=e[c+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],l=n.util.array.min(a);return{left:r,top:l,width:o,height:n.util.array.max(a)-l}},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 l(){++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),l()})):l()})):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),l=(e[0]*e[3]-e[2]*e[1])/a,c=i(e[0]*e[2]+e[1]*e[3],o);return{angle:n/r,scaleX:a,scaleY:l,skewX:c/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),l=n.util.makeBoundingBoxFromPoints(o,a);return{x:l.width,y:l.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 l=0;l<i[a].length;l++){s++;var c=e[a][l];if(c&&Object.keys(c).length>0)n.util.hasStyleChanged(r,c,!0)?o.push({start:s,end:s+1,style:c}):o[o.length-1].end++;r=c||{}}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,l,c,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+l;return["C",h+c*(-i*r*g-s*o*u),d+c*(-s*r*g+i*o*u),f+c*(i*r*m+s*o*p),_+c*(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],l=i[3],c=i[4],h=i[5],d=function(e,t,i,o,a,l,c){var h=Math.PI,d=c*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,b=_*_,E=f*f,S=v*C-v*b-C*E,y=0;if(S<0){var w=Math.sqrt(1-S/(v*C));i*=w,o*=w}else y=(a===l?-1:1)*Math.sqrt(S/(v*b+C*E));var L=y*i*_/o,R=-y*o*f/i,T=g*L-u*R+.5*e,x=u*L+g*R+.5*t,k=r(1,0,(f-L)/i,(_-R)/o),A=r((f-L)/i,(_-R)/o,(-f-L)/i,(-_-R)/o);0===l&&A>0?A-=2*h:1===l&&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,c,h,l),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 l(e,t,i,s,n,r,o,a){return function(l){var c,h=(c=l)*c*c,d=function(e){return 3*e*e*(1-e)}(l),u=function(e){return 3*e*(1-e)*(1-e)}(l),g=function(e){return(1-e)*(1-e)*(1-e)}(l);return{x:o*h+n*d+i*u+e*g,y:a*h+r*d+s*u+t*g}}}function c(e,t,i,s,n,r,o,a){return function(l){var c=1-l,h=3*c*c*(i-e)+6*c*l*(n-i)+3*l*l*(o-n),d=3*c*c*(s-t)+6*c*l*(r-s)+3*l*l*(a-r);return Math.atan2(d,h)}}function h(e,t,i,s,n,r){return function(o){var a,l=(a=o)*a,c=function(e){return 2*e*(1-e)}(o),h=function(e){return(1-e)*(1-e)}(o);return{x:n*l+i*c+e*h,y:r*l+s*c+t*h}}}function d(e,t,i,s,n,r){return function(o){var a=1-o,l=2*a*(i-e)+2*o*(n-i),c=2*a*(s-t)+2*o*(r-s);return Math.atan2(c,l)}}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,l=e.iterator,c={x:e.x,y:e.y},h=.01,d=e.angleFinder;o<t&&h>1e-4;)i=l(r),n=r,(s=a(c.x,c.y,i.x,i.y))+o>t?(r-=h,h/=2):(c=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=l(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),n=c(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,l,c=[],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 c;for(var f,_=0,v=(l=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;_<v;_++){a=(s=l[_]).slice(1).trim(),h.length=0;var C=s.charAt(0);if(f=[C],"a"===C.toLowerCase())for(var b;b=m.exec(a);)for(var E=1;E<b.length;E++)h.push(b[E]);else for(;o=d.exec(a);)h.push(o[0]);E=0;for(var S=h.length;E<S;E++)r=parseFloat(h[E]),isNaN(r)||f.push(r);var y=t[C.toLowerCase()],w=i[C]||C;if(f.length-1>y)for(var L=1,R=f.length;L<R;L+=y)c.push([C].concat(f.slice(L,L+y))),C=w;else c.push(f)}return c},n.util.makePathSimpler=function(e){var t,i,s,n,r,a,l=0,c=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]+=l,t[2]+=c;case"L":l=t[1],c=t[2];break;case"h":t[1]+=l;case"H":t[0]="L",t[2]=c,l=t[1];break;case"v":t[1]+=c;case"V":t[0]="L",c=t[1],t[1]=l,t[2]=c;break;case"m":t[0]="M",t[1]+=l,t[2]+=c;case"M":l=t[1],c=t[2],d=t[1],u=t[2];break;case"c":t[0]="C",t[1]+=l,t[2]+=c,t[3]+=l,t[4]+=c,t[5]+=l,t[6]+=c;case"C":r=t[3],a=t[4],l=t[5],c=t[6];break;case"s":t[0]="S",t[1]+=l,t[2]+=c,t[3]+=l,t[4]+=c;case"S":"C"===n?(r=2*l-r,a=2*c-a):(r=l,a=c),l=t[3],c=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]+=l,t[2]+=c,t[3]+=l,t[4]+=c;case"Q":r=t[1],a=t[2],l=t[3],c=t[4];break;case"t":t[0]="T",t[1]+=l,t[2]+=c;case"T":"Q"===n?(r=2*l-r,a=2*c-a):(r=l,a=c),t[0]="Q",l=t[1],c=t[2],t[1]=r,t[2]=a,t[3]=l,t[4]=c;break;case"a":t[0]="A",t[6]+=l,t[7]+=c;case"A":s=!0,g=g.concat(o(l,c,t)),l=t[6],c=t[7];break;case"z":case"Z":l=d,c=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,l=1,c=0,h=a>2;for(t=t||0,h&&(l=e[2].x<o.x?-1:e[2].x===o.x?0:1,c=e[2].y<o.y?-1:e[2].y===o.y?0:1),s.push(["M",r.x-l*t,r.y-c*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&&(l=r.x>e[i-2].x?1:r.x===e[i-2].x?0:-1,c=r.y>e[i-2].y?1:r.y===e[i-2].y?0:-1),s.push(["L",r.x+l*t,r.y+c*t]),s},n.util.getPathSegmentsInfo=p,n.util.getBoundsOfCurve=function(t,i,s,r,o,a,l,c){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,b=Math.min,E=Math.max,S=Math.abs,y=[],w=[[],[]];u=6*t-12*s+6*o,d=-3*t+9*s-9*o+3*l,g=3*s-3*t;for(var L=0;L<2;++L)if(L>0&&(u=6*i-12*r+6*a,d=-3*i+9*r-9*a+3*c,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 R,T,x,k=y.length,A=k;k--;)R=(x=1-(p=y[k]))*x*x*t+3*x*x*p*s+3*x*p*p*o+p*p*p*l,w[0][k]=R,T=x*x*x*i+3*x*x*p*r+3*x*p*p*a+p*p*p*c,w[1][k]=T;w[0][A]=t,w[1][A]=i,w[0][A+1]=l,w[1][A+1]=c;var N=[{x:b.apply(null,w[0]),y:b.apply(null,w[1])},{x:E.apply(null,w[0]),y:E.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,l=o.command,c=e[s];switch(l){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(c[1],c[2]),a)).angle=Math.atan2(c[2]-o.y,c[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 l=0,c=n.length;l<c;l++)s(a,n[l],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},l={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!n)return a;for(var c in l)a[l[c]]+=parseInt(i(e,c),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 l(){return o.apply(n.window,arguments)}n.util.animate=function(i){i||(i={});var o,a=!1,c=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,c()},currentValue:"startValue"in i?i.startValue:0,completionRate:0,durationRate:0}),n.runningAnimations.push(o),l((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,b=f?_.map((function(e,t){return m(s,_[t],C[t],h)})):m(s,_,C,h),E=f?Math.abs((b[0]-_[0])/C[0]):Math.abs((b-_)/C);if(o.currentValue=f?b.slice():b,o.completionRate=E,o.durationRate=r,!a){if(!g(b,E,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 c()):(u(b,E,r),void l(e));c()}}(n)})),o.cancel},n.util.requestAnimFrame=l,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(),l=r.onComplete,c=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(l)return l(e(a,a,0),i,s)},onChange:function(t,i,s){if(c){if(Array.isArray(t))return c(e(t,t,0),i,s);c(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"},l={stroke:"strokeOpacity",fill:"fillOpacity"},c="font-size",h="clip-path";function d(e){return e in a?a[e]:e}function u(e,i,s,n){var a,l=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 c=i.indexOf("fill"),h=i.indexOf("stroke");i="fill";(c>-1&&h>-1&&h<c||-1===c&&h>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;a=l?i.map(r):r(i,n)}}else i="";return!l&&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(),l=[];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],c=o.slice(2).map(parseFloat);switch(a){case"translate":!function(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}(n,c);break;case"rotate":c[0]=t.util.degreesToRadians(c[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,c);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,c);break;case"skewX":e(n,c,2);break;case"skewY":e(n,c,1);break;case"matrix":n=c}l.push(n.concat()),n=i.concat()}));for(var c=l[0];l.length>1;)l.shift(),c=t.util.multiplyTransformMatrices(c,l[0]);return c}}();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,l,c=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")||"",_=!c||!(c=c.match(v)),C=!u||!g||"100%"===u||"100%"===g,b=_&&C,E={},S="",y=0,w=0;if(E.width=0,E.height=0,E.toBeParsed=b,_&&(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")),b)return E;if(_)return E.width=r(u),E.height=r(g),E;if(i=-parseFloat(c[1]),s=-parseFloat(c[2]),n=parseFloat(c[3]),o=parseFloat(c[4]),E.minX=i,E.minY=s,E.viewBoxWidth=n,E.viewBoxHeight=o,C?(E.width=n,E.height=o):(E.width=r(u),E.height=r(g),h=E.width/n,d=E.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=E.width-n*h,w=E.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 E;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(l=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)l.appendChild(e.firstChild);e.appendChild(l)}else(l=e).removeAttribute("x"),l.removeAttribute("y"),a=l.getAttribute("transform")+a;return l.setAttribute("transform",a),E}function b(e,t){var i="xlink:href",s=_(e,t.getAttribute(i).slice(1));if(s&&s.getAttribute(i)&&b(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,l,c,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 b=g.ownerDocument.createElementNS(v,"g");for(a=0,c=(l=g.attributes).length;a<c;a++)o=l.item(a),b.setAttributeNS(v,o.nodeName,o.nodeValue);for(;g.firstChild;)b.appendChild(g.firstChild);g=b}for(a=0,c=(l=n.attributes).length;a<c;a++)"x"!==(o=l.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,l=t.Object.__uid++,c=C(e),h=t.util.toArray(e.getElementsByTagName("*"));if(c.crossOrigin=r&&r.crossOrigin,c.svgUid=l,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[l]=t.getGradientDefs(e),t.cssRules[l]=t.getCSSRules(e),t.clipPaths[l]=g,t.parseElements(u,(function(e,s){i&&(i(e,c,s,h),delete t.gradientDefs[l],delete t.cssRules[l],delete t.clipPaths[l])}),s(c),n,r)}}};var E=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(E);if(i){var s=i[1],n=i[3],o=i[4],a=i[5],l=i[6];s&&(t.fontStyle=s),n&&(t.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),o&&(t.fontSize=r(o)),l&&(t.fontFamily=l),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")&&b(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,_[c]&&(_[c]=g=r(_[c],p));var C,b,E={};for(var S in _)b=u(C=d(S),_[S],f,g),E[C]=b;E&&E.font&&t.parseFontDeclaration(E.font,E);var y=i(f,E);return t.svgValidParentsRegEx.test(e.nodeName)?y:function(e){for(var i in l)if("undefined"!==typeof e[l[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[l[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 l=a[i].split(":"),c=l[0].trim(),h=l[1].trim();o[c]=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 l=a[0].parentNode,c=t;c.parentNode&&c.getAttribute("clip-path")!==e.clipPath;)c=c.parentNode;c.parentNode.appendChild(l);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,c);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),l=(s.x-e.x)*(e.y-n.y)-(s.y-e.y)*(e.x-n.x),c=(r.y-n.y)*(s.x-e.x)-(r.x-n.x)*(s.y-e.y);if(0!==c){var h=a/c,d=l/c;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===l?"Coincident":"Parallel");return o},t.Intersection.intersectLinePolygon=function(e,t,s){var n,r,o,a,l=new i,c=s.length;for(a=0;a<c;a++)n=s[a],r=s[(a+1)%c],o=i.intersectLineLine(e,t,n,r),l.appendPoints(o.points);return l.points.length>0&&(l.status="Intersection"),l},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],l=i.intersectLinePolygon(o,a,t);n.appendPoints(l.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),l=new t.Point(r.x,o.y),c=i.intersectLinePolygon(r,a,e),h=i.intersectLinePolygon(a,o,e),d=i.intersectLinePolygon(o,l,e),u=i.intersectLinePolygon(l,r,e),g=new i;return g.appendPoints(c.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]),l=t.util.array.min([e,i,s]);if(o=(a+l)/2,a===l)n=r=0;else{var c=a-l;switch(r=o>.5?c/(2-a-l):c/(a+l),a){case e:n=(i-s)/c+(i<s?6:0);break;case i:n=(s-e)/c+2;break;case s:n=(e-i)/c+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,l=parseFloat(t[2])/(/%$/.test(t[2])?100:1),c=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===l)n=r=o=c;else{var h=c<=.5?c*(l+1):c+l-c*l,d=2*c-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),l=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(l,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",l="bottom",c="center",h={top:l,bottom:o,left:a,right:r,center:c},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===c&&e.originY===c}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),l=e(t,i,s,n);return r.setPositionByOrigin(a,i.originX,i.originY),l}}function b(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 E(e,i,s,n,r){var o=e.target,a=o.controls[e.corner],l=o.canvas.getZoom(),c=o.padding/l,h=o.toLocalPoint(new t.Point(n,r),i,s);return h.x>=c&&(h.x-=c),h.x<=-c&&(h.x+=c),h.y>=c&&(h.y-=c),h.y<=c&&(h.y+=c),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,c=t.target,h=c._getTransformedDimensions(0,c.skewY),u=E(t,t.originX,t.originY,i,s),g=Math.abs(2*u.x)-h.x,p=c.skewX;g<2?n=0:(n=d(Math.atan2(g/c.scaleX,h.y/c.scaleY)),t.originX===r&&t.originY===l&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(c)&&(n=-n));var m=p!==n;if(m){var f=c._getTransformedDimensions().y;c.set("skewX",n),y(c,"skewY","scaleY","y",f)}return m}function L(e,t,i,s){var n,c=t.target,h=c._getTransformedDimensions(c.skewX,0),u=E(t,t.originX,t.originY,i,s),g=Math.abs(2*u.y)-h.y,p=c.skewY;g<2?n=0:(n=d(Math.atan2(g/c.scaleY,h.x/c.scaleX)),t.originX===r&&t.originY===l&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(c)&&(n=-n));var m=p!==n;if(m){var f=c._getTransformedDimensions().x;c.set("skewY",n),y(c,"skewX","scaleX","x",f)}return m}function R(e,t,i,s,n){n=n||{};var r,o,a,l,c,d,g=t.target,p=g.lockScalingX,v=g.lockScalingY,C=n.by,b=m(e,g),S=_(g,C,b),y=t.gestureScale;if(S)return!1;if(y)o=t.scaleX*y,a=t.scaleY*y;else{if(r=E(t,t.originX,t.originY,i,s),c="y"!==C?u(r.x):1,d="x"!==C?u(r.y):1,t.signX||(t.signX=c),t.signY||(t.signY=d),g.lockScalingFlip&&(t.signX!==c||t.signY!==d))return!1;if(l=g._getTransformedDimensions(),b&&!C){var w=Math.abs(r.x)+Math.abs(r.y),L=t.original,R=w/(Math.abs(l.x*L.scaleX/g.scaleX)+Math.abs(l.y*L.scaleY/g.scaleY));o=L.scaleX*R,a=L.scaleY*R}else o=Math.abs(r.x*g.scaleX/l.x),a=Math.abs(r.y*g.scaleY/l.y);f(t)&&(o*=2,a*=2),t.signX!==c&&"y"!==C&&(t.originX=h[t.originX],o*=-1,t.signX=c),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=b("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,l=Math.atan2(n.ey-o.y,n.ex-o.x),c=Math.atan2(s-o.y,i-o.x),h=d(c-l+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=b("scaling",C((function(e,t,i,s){return R(e,t,i,s)}))),n.scalingX=b("scaling",C((function(e,t,i,s){return R(e,t,i,s,{by:"x"})}))),n.scalingY=b("scaling",C((function(e,t,i,s){return R(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=b("resizing",C((function(e,t,i,s){var n=t.target,r=E(t,t.originX,t.originY,i,s),o=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=f(t)?2:1,l=n.width,c=Math.abs(r.x*a/n.scaleX)-o;return n.set("width",Math.max(c,0)),l!==c}))),n.skewHandlerX=function(e,t,i,s){var n,l=t.target,h=l.skewX,d=t.originY;return!l.lockSkewingX&&(0===h?n=E(t,c,c,i,s).x>0?r:a:(h>0&&(n=d===o?r:a),h<0&&(n=d===o?a:r),S(l)&&(n=n===r?a:r)),t.originX=n,b("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=E(t,c,c,i,s).y>0?o:l:(h>0&&(n=d===r?o:l),h<0&&(n=d===r?l:o),S(a)&&(n=n===o?l:o)),t.originY=n,b("skewing",C(L))(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,l=!n.get("lockMovementY")&&n.top!==o;return a&&n.set("left",r),l&&n.set("top",o),(a||l)&&p("moving",v(e,t,i,s)),a||l},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=b,n.getLocalPoint=E,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,l="undefined"!==typeof s.transparentCorners?s.transparentCorners:n.transparentCorners,c=l?"stroke":"fill",h=!l&&(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[c](),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,l="undefined"!==typeof n.transparentCorners?n.transparentCorners:r.transparentCorners,c=l?"stroke":"fill",h=!l&&(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[c+"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,l,c,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),l=g*t.util.cos(m),c=g*t.util.sin(m)}else{g=.7071067812*(h&&d?h:i);p=t.util.degreesToRadians(45-e);o=l=g*t.util.cos(p),a=c=g*t.util.sin(p)}return{tl:{x:s-c,y:n-l},tr:{x:s+o,y:n-a},bl:{x:s-o,y:n+a},br:{x:s+c,y:n+l}}},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"),l=e.getAttribute("offset")||0;if(l=(l=parseFloat(l)/(/%$/.test(l)?100:1))<0?0:l>1?1:l,a){var c=a.split(/\s*;\s*/);for(""===c[c.length-1]&&c.pop(),o=c.length;o--;){var h=c[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:l,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,l=t(this.coords,!0),c=(i=i||{},t(this.colorStops,!0)),h=l.r1>l.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(c.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="',l.x1,'" y1="',l.y1,'" x2="',l.x2,'" y2="',l.y2,'">\n']:"radial"===this.type&&(o=["<radialGradient ",a,' cx="',h?l.x1:l.x2,'" cy="',h?l.y1:l.y2,'" r="',h?l.r1:l.r2,'" fx="',h?l.x2:l.x1,'" fy="',h?l.y2:l.y1,'">\n']),"radial"===this.type){if(h)for((c=c.concat()).reverse(),s=0,r=c.length;s<r;s++)c[s].offset=1-c[s].offset;var f=Math.min(l.r1,l.r2);if(f>0){var _=f/Math.max(l.r1,l.r2);for(s=0,r=c.length;s<r;s++)c[s].offset+=_*(1-c[s].offset)}}for(s=0,r=c.length;s<r;s++){var v=c[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,l=this.colorStops[i].offset;"undefined"!==typeof a&&(o=new n.Color(o).setAlpha(a).toRgba()),t.addColorStop(l,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,l,c,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",l=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",l=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)),c=d.length;c--;)p.push(e(d[c],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,l,r,u),"pixels"===u&&(m=-i.left,f=-i.top),new n.Gradient({id:t.getAttribute("id"),type:a,coords:l,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,l=n.util.createCanvasElement,c=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=l();if(!e)throw c;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw c;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+'" ',l=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],l)+" "+s(-i[5]/i[3],l)+" "+s(this.width/i[0],l)+" "+s(this.height/i[3],l)+'" '),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,l,c="",h={},d=n.fontPaths,u=[];for(this._objects.forEach((function e(t){u.push(t),t._objects&&t._objects.forEach(e)})),a=0,l=u.length;a<l;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)c+=["\t\t@font-face {\n","\t\t\tfont-family: '",g,"';\n","\t\t\tsrc: url('",d[g],"');\n","\t\t}\n"].join("");return c&&(c=['\t<style type="text/css">',"<![CDATA[\n",c,"]]>","</style>\n"].join("")),c},_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,l=n.util.invertTransform(s),c=this[t+"Vpt"]?n.util.matrixToSVG(l):"";e.push('<rect transform="'+c+" 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,l=this._activeObject,c=0;if(e===l&&"activeSelection"===e.type)for(a=l._objects,s=0;s<a.length;s++)n=a[s],(r=this._objects.indexOf(n))>0+c&&(o=r-1,i(this._objects,n),this._objects.splice(o,0,n)),c++;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,l=this._activeObject,c=0;if(e===l&&"activeSelection"===e.type)for(s=(a=l._objects).length;s--;)n=a[s],(r=this._objects.indexOf(n))<this._objects.length-1-c&&(o=r+1,i(this._objects,n),this._objects.splice(o,0,n)),c++;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=l();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 l=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(l)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var c=new n.Group(t);this.shadow&&c.set("shadow",new n.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:c}),this.canvas.add(c),this.canvas.fire("path:created",{path:c}),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,l=e.selectionBackgroundColor,c=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(a),a.save(),a.transform(c[0],c[1],c[2],c[3],c[4],c[5]),e.render(a),a.restore(),e.selectionBackgroundColor=l,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],l=s&&o?a.getActionHandler(e,i,a):n.controlsUtils.dragHandler,c=this._getActionFromCorner(s,o,e,i),h=this._getOriginFromCorner(i,o),d=e[this.centeredKey],u={target:i,action:c,actionHandler:l,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,c,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),l=Math.min(s.y,o.y),c=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,l,c-a,h-l)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,a+=d,l+=d,c-=d,h-=d,n.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(a,l,c-a,h-l))},findTarget:function(e,t){if(!this.skipTargetFind){var s,n,r=this.getPointer(e,!0),o=this._activeObject,a=this.getActiveObjects(),l=i(e),c=a.length>1&&!t||1===a.length;if(this.targets=[],c&&o._findTargetCorner(r,l))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,l=o.height||0;a&&l||("top"in o&&"bottom"in o&&(l=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 c=this.getRetinaScaling();return 1!==c&&(n.x/=c,n.y/=c),s=0===a||0===l?{width:1,height:1}:{width:r.width/a,height:r.height/l},{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 l=t===this._activeObject;this._maybeGroupObjects(e),o||(o=this._shouldRender(t)||!l&&t===this._activeObject)}var c,h;if(t){if(c=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[c],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!==c)){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 l=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e));if(t.__corner=l,t===this._activeObject&&(l||!o)){this._setupCurrentTransform(e,t,a);var c=t.controls[l],h=(i=this.getPointer(e),c&&c.getMouseDownHandler(e,t,c));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,l=i.canvasEvtIn,c=i.canvasEvtOut;a&&(s={e:t,target:e,previousTarget:o},n={e:t,target:o,nextTarget:e}),r=e&&a,o&&a&&(c&&this.fire(c,n),o.fire(i.evtOut,n)),r&&(l&&this.fire(l,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,l=o+this._groupSelector.left,c=a+this._groupSelector.top,h=new n.Point(e(o,l),e(a,c)),d=new n.Point(t(o,l),t(a,c)),u=!this.selectionFullyContained,g=o===l&&a===c,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,l=r*e,c=this.viewportTransform,h=(c[4]-(t.left||0))*e,d=(c[5]-(t.top||0))*e,u=this.interactive,g=[l,0,0,l,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=c,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,l=t.util.limitDimsByArea(a,i),c=t.util.capValue,h=c(o,l.x,r),d=c(o,l.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,l=o.height,c=o.zoomX,h=o.zoomY,d=a!==this.cacheWidth||l!==this.cacheHeight,u=this.zoomX!==c||this.zoomY!==h;return!(!d&&!u)&&(d?(r.width=a,r.height=l):(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=l,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(c,h),this.zoomX=c,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(),l=this.calcTransformMatrix();n="undefined"!==typeof(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,r="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,l=t.util.multiplyTransformMatrices(a,l),s=t.util.qrDecompose(l),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,l=n.y/this.scaleY/o;r.width=Math.ceil(a),r.height=Math.ceil(l),(s=r.getContext("2d")).beginPath(),s.moveTo(0,0),s.lineTo(a,0),s.lineTo(a,l),s.lineTo(0,l),s.closePath(),s.translate(a/2,l/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 l,c,h,d,u=t.util.createCanvasElement(),g=this.getBoundingRect(!0,!0),p=this.shadow,m={x:0,y:0};p&&(c=p.blur,l=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),m.x=2*Math.round(o(p.offsetX)+c)*o(l.scaleX),m.y=2*Math.round(o(p.offsetY)+c)*o(l.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 l,c,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,c=a-r,((l=o-s)||c)&&(h=this._getTransformedDimensions(),d=e.x+l*h.x,u=e.y+c*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(),l=n.util.cos(o)*a,c=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+=l*(r-s),this.top+=c*(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,l=o+a,c=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-=c,d.tl.y-=l,d.tr.x+=l,d.tr.y-=c,d.bl.x-=l,d.bl.y+=c,d.br.x+=c,d.br.y+=l),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",l=this.strokeMiterLimit?this.strokeMiterLimit:"4",c="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: ",l,"; ",u,"fill-rule: ",i,"; ","opacity: ",c,";",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:"",l=t.fontWeight?"font-weight: "+t.fontWeight+s:"",c=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,l,d,c,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()+'" ',l=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",c=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",d=c&&c.absolutePositioned,u=this.stroke,g=this.fill,p=this.shadow,m=[],f=e.indexOf("COMMON_PARTS"),_=t.additionalTransform;return c&&(c.clipPathId="CLIPPATH_"+n.Object.__uid++,s='<clipPath id="'+c.clipPathId+'" >\n'+c.toClipPathSVG(o)+"</clipPath>\n"),d&&m.push("<g ",l,this.getSvgCommons()," >\n"),m.push("<g ",this.getSvgTransform(!1),d?"":l+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)),c&&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),l=a.length-1;for(this.__corner=0;l>=0;l--)if(n=a[l],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,l=s.x+r*(o?this.canvas.getZoom():t.scaleX)+a,c=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(-l/2,-c/2,l,c),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,l=r?this.get(r[0])[r[1]]:this.get(e);"from"in i||(i.from=l),a||(t=~t.indexOf("=")?l+parseFloat(t.replace("=","")):parseFloat(t));var c={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(c.startValue,c.endValue,c.duration,c):n.util.animate(c)}}),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,l=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 l: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,l=.4477152502;e.beginPath(),e.moveTo(r+t,o),e.lineTo(r+s-t,o),a&&e.bezierCurveTo(r+s-l*t,o,r+s,o+l*i,r+s,o+i),e.lineTo(r+s,o+n-i),a&&e.bezierCurveTo(r+s,o+n-l*i,r+s-l*t,o+n,r+s-t,o+n),e.lineTo(r+t,o+n),a&&e.bezierCurveTo(r+l*t,o+n,r,o+n-l*i,r,o+n-i),e.lineTo(r,o+i),a&&e.bezierCurveTo(r,o+l*i,r+l*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,l=-this.pathOffset.x,c=-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+l,r+c);break;case"M":i=n=t[1],s=r=t[2],e.moveTo(n+l,r+c);break;case"C":n=t[5],r=t[6],o=t[3],a=t[4],e.bezierCurveTo(t[1]+l,t[2]+c,o+l,a+c,n+l,r+c);break;case"Q":e.quadraticCurveTo(t[1]+l,t[2]+c,t[3]+l,t[4]+c),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,l=0,c=0,h=0,d=0,u=this.path.length;d<u;++d){switch((e=this.path[d])[0]){case"L":c=e[1],h=e[2],n=[];break;case"M":a=c=e[1],l=h=e[2],n=[];break;case"C":n=t.util.getBoundsOfCurve(c,h,e[1],e[2],e[3],e[4],e[5],e[6]),c=e[5],h=e[6];break;case"Q":n=t.util.getBoundsOfCurve(c,h,e[1],e[2],e[1],e[2],e[3],e[4]),c=e[3],h=e[4];break;case"z":case"Z":c=a,h=l}n.forEach((function(e){r.push(e.x),o.push(e.y)})),r.push(c),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"],l=0,c=this._objects.length,h=a.length;l<c;++l){for(s=(t=this._objects[l]).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)),l=o.y||0,c=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:c,y:l},"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="",l="";if(!s)return[];if(this.hasCrop()){var c=n.Object.__uid++;t.push('<clipPath id="imageCrop_'+c+'">\n','\t<rect x="'+r+'" y="'+o+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+c+')" '}if(this.imageSmoothing||(l='" 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,l,'"',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(),l=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,c=o.width,h=o.height;a.width=c,a.height=h,this._element=a,this._lastScaleX=e.scaleX=s,this._lastScaleY=e.scaleY=r,n.filterBackend.applyFilters([e],o,c,h,this._element,l),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,l=a(this.cropX,0),c=a(this.cropY,0),h=t.naturalWidth||t.width,d=t.naturalHeight||t.height,u=l*i,g=c*s,p=o(n*i,h-u),m=o(r*s,d-g),f=-n/2,_=-r/2,v=o(n,h/i-l),C=o(r,d/s-c);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,l=0,c=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&&(l=-e),"Max"===t.alignY&&(l=e)),"slice"===t.meetOrSlice&&(e=i-d/(r=o=n.util.findScaleToCover(this._element,g)),"Mid"===t.alignX&&(c=e/2),"Max"===t.alignX&&(c=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:l,cropX:c,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,l="undefined"!==typeof Uint8ClampedArray;if(s&&i&&r&&l){var c=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:c};c.width=e,c.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 l={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},c=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,c),e.forEach((function(e){e&&e.applyTo(l)})),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)}(l),this.copyGLTo2D(a,l),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(l.sourceTexture),a.deleteTexture(l.targetTexture),a.deleteFramebuffer(c),n.getContext("2d").setTransform(1,0,0,1,0,0),l},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),l=this.getUniformLocations(e,o)||{};return l.uStepW=e.getUniformLocation(o,"uStepW"),l.uStepH=e.getUniformLocation(o,"uStepH"),{program:o,attributeLocations:a,uniformLocations:l}},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,l=this.matrix,c=this.colorsOnly;for(r=0;r<a;r+=4)t=o[r],i=o[r+1],s=o[r+2],c?(o[r]=t*l[0]+i*l[1]+s*l[2]+255*l[4],o[r+1]=t*l[5]+i*l[6]+s*l[7]+255*l[9],o[r+2]=t*l[10]+i*l[11]+s*l[12]+255*l[14]):(n=o[r+3],o[r]=t*l[0]+i*l[1]+s*l[2]+n*l[3]+255*l[4],o[r+1]=t*l[5]+i*l[6]+s*l[7]+n*l[8]+255*l[9],o[r+2]=t*l[10]+i*l[11]+s*l[12]+n*l[13]+255*l[14],o[r+3]=t*l[15]+i*l[16]+s*l[17]+n*l[18]+255*l[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,l,c,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,b=p.height,E=e.ctx.createImageData(C,b),S=E.data,y=this.opaque?1:0;for(d=0;d<b;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>=b||o<0||o>=C||(l=4*(a*C+o),c=f[g*_+u],t+=m[l]*c,i+=m[l+1]*c,s+=m[l+2]*c,y||(n+=m[l+3]*c));S[r]=t,S[r+1]=i,S[r+2]=s,S[r+3]=y?m[r+3]:n}e.imageData=E},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,l,c,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),l=i;l<h;l++)for(c=s;c<d;c++)g[t=4*l*m+4*c]=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,l=new t.Color(this.color).getSource(),c=[l[0]-a,l[1]-a,l[2]-a],h=[l[0]+a,l[1]+a,l[2]+a];for(i=0;i<o.length;i+=4)s=o[i],n=o[i+1],r=o[i+2],s>c[0]&&n>c[1]&&r>c[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,l,c=e.imageData.data,h=c.length,d=1-this.alpha;i=(l=new t.Color(this.color).getSource())[0]*this.alpha,s=l[1]*this.alpha,n=l[2]*this.alpha;for(var u=0;u<h;u+=4)switch(r=c[u],o=c[u+1],a=c[u+2],this.mode){case"multiply":c[u]=r*i/255,c[u+1]=o*s/255,c[u+2]=a*n/255;break;case"screen":c[u]=255-(255-r)*(255-i)/255,c[u+1]=255-(255-o)*(255-s)/255,c[u+2]=255-(255-a)*(255-n)/255;break;case"add":c[u]=r+i,c[u+1]=o+s,c[u+2]=a+n;break;case"diff":case"difference":c[u]=Math.abs(r-i),c[u+1]=Math.abs(o-s),c[u+2]=Math.abs(a-n);break;case"subtract":c[u]=r-i,c[u+1]=o-s,c[u+2]=a-n;break;case"darken":c[u]=Math.min(r,i),c[u+1]=Math.min(o,s),c[u+2]=Math.min(a,n);break;case"lighten":c[u]=Math.max(r,i),c[u+1]=Math.max(o,s),c[u+2]=Math.max(a,n);break;case"overlay":c[u]=i<128?2*r*i/255:255-2*(255-r)*(255-i)/255,c[u+1]=s<128?2*o*s/255:255-2*(255-o)*(255-s)/255,c[u+2]=n<128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case"exclusion":c[u]=i+r-2*i*r/255,c[u+1]=s+o-2*s*o/255,c[u+2]=n+a-2*n*a/255;break;case"tint":c[u]=i+r*d,c[u+1]=s+o*d,c[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,l,c,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 b=0;b<f;b+=4)switch(o=m[b],a=m[b+1],l=m[b+2],c=m[b+3],i=u[b],s=u[b+1],n=u[b+2],r=u[b+3],this.mode){case"multiply":m[b]=o*i/255,m[b+1]=a*s/255,m[b+2]=l*n/255,m[b+3]=c*r/255;break;case"mask":m[b+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,l=Math.ceil,c=t.Image.filters,h=t.util.createClass;c.Resize=h(c.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,l=o(r*i),c=o(a*s);"sliceHack"===this.resizeType?n=this.sliceByTwo(e,r,a,l,c):"hermite"===this.resizeType?n=this.hermiteFastResize(e,r,a,l,c):"bilinear"===this.resizeType?n=this.bilinearFiltering(e,r,a,l,c):"lanczos"===this.resizeType&&(n=this.lanczosResize(e,r,a,l,c)),e.imageData=n},sliceByTwo:function(e,i,n,r,o){var a,l,c=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),(l=a.getContext("2d")).clearRect(0,0,1.5*i,n),l.putImageData(c,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),l.drawImage(a,f,_,i,n,v,C,g,p),f=v,_=C,C+=p;return l.getImageData(f,_,r,o)},lanczosResize:function(e,t,o,a,c){var h=e.imageData.data,d=e.ctx.createImageData(a,c),u=d.data,g=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,m=this.rcpScaleY,f=2/this.rcpScaleX,_=2/this.rcpScaleY,v=l(p*this.lanczosLobes/2),C=l(m*this.lanczosLobes/2),b={},E={},S={};return function e(l){var y,w,L,R,T,x,k,A,N,I,O;for(E.x=(l+.5)*p,S.x=s(E.x),y=0;y<c;y++){for(E.y=(y+.5)*m,S.y=s(E.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-E.x)),b[I]||(b[I]={});for(var D=S.y-C;D<=S.y+C;D++)D<0||D>=o||(O=s(1e3*r(D-E.y)),b[I][O]||(b[I][O]=g(n(i(I*f,2)+i(O*_,2))/1e3)),(L=b[I][O])>0&&(T+=L,x+=L*h[R=4*(D*t+w)],k+=L*h[R+1],A+=L*h[R+2],N+=L*h[R+3]))}u[R=4*(y*a+l)]=x/T,u[R+1]=k/T,u[R+2]=A/T,u[R+3]=N/T}return++l<a?e(l):d}(0)},bilinearFiltering:function(e,t,i,n,r){var o,a,l,c,h,d,u,g,p,m=0,f=this.rcpScaleX,_=this.rcpScaleY,v=4*(t-1),C=e.imageData.data,b=e.ctx.createImageData(n,r),E=b.data;for(l=0;l<r;l++)for(c=0;c<n;c++)for(h=f*c-(o=s(f*c)),d=_*l-(a=s(_*l)),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,E[m++]=g;return b},hermiteFastResize:function(e,t,i,o,a){for(var c=this.rcpScaleX,h=this.rcpScaleY,d=l(c/2),u=l(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,b=0,E=0,S=0,y=0,w=0,L=0,R=(f+.5)*h,T=s(f*h);T<(f+1)*h;T++)for(var x=r(R-(T+.5))/u,k=(_+.5)*c,A=x*x,N=s(_*c);N<(_+1)*c;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&&(L+=C*g[(I=4*(N+T*t))+3],E+=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],b+=C)}m[v]=S/b,m[v+1]=y/b,m[v+2]=w/b,m[v+3]=L/E}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,l,c,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++)c=p*(l=h/g)*r+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,c,a),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);for(h=-15;h<=g;h++)c=p*(l=h/g)*o+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,a,c),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,l=this._textLines.length;a<l;a++)if(("justify"===this.textAlign||a!==l-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 c=0,h=n.length;c<=h;c++)r=this.__charBounds[a][c],this._reSpaceAndTab.test(n[c])?(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,l=e.fillStyle,c=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=c+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=c+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=l,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,l=this.getFontCache(t),c=i+e,h=this._getFontDeclaration(t)===this._getFontDeclaration(s),d=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==l[i]&&(o=l[i]),void 0!==l[e]&&(a=n=l[e]),h&&void 0!==l[c]&&(a=(r=l[c])-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,l[e]=n),void 0===o&&h&&i&&(o=u.measureText(i).width,l[i]=o),h&&void 0===r&&(r=u.measureText(c).width,l[c]=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,l=0,c=this._textLines[e],h=new Array(c.length),d=0,u=this.path,g="right"===this.pathSide;for(this.__charBounds[e]=h,i=0;i<c.length;i++)s=c[i],r=this._getGraphemeBox(s,e,i,n),h[i]=r,l+=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-l:0;break;case"center":d=(a-l)/2;break;case"right":d=g?0:a-l}for(d+=this.pathStartOffset*(g?-1:1),i=g?c.length-1:0;g?i>=0:i<c.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:l,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):{},l=this._measureChar(e,o,s,a),c=l.kernedWidth,h=l.width;0!==this.charSpacing&&(h+=r=this._getWidthOfCharSpacing(),c+=r);var d={width:h,left:0,height:o.fontSize,kernedWidth:c,deltaY:o.deltaY};if(i>0&&!n){var u=this.__charBounds[t][i-1];d.left=u.left+u.width+l.kernedWidth-l.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),l=a/this.lineHeight,c=this._getLineLeftOffset(r);this._renderTextLine(t,e,this._textLines[r],s+c,n+i+l,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,l,c,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,b=i.canvas.getAttribute("dir");if(i.save(),b!==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 E=0,S=s.length-1;E<=S;E++)h=E===S||this.charSpacing||f,p+=s[E],c=this.__charBounds[o][E],0===m?(n+=C*(c.kernedWidth-c.width),m+=c.width):m+=c.kernedWidth,g&&!h&&this._reSpaceAndTab.test(s[E])&&(h=!0),h||(a=a||this.getCompleteStyleDeclaration(o,E),l=this.getCompleteStyleDeclaration(o,E+1),h=t.util.hasStyleChanged(a,l,!1)),h&&(f?(i.save(),i.translate(c.renderLeft,c.renderTop),i.rotate(c.angle),this._renderChar(e,i,o,E,p,-m/2,0,u),i.restore()):(d=n,this._renderChar(e,i,o,E,p,d,r,u)),p="",a=l,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,l,c=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&&(l=this._setStrokeStyles(t,h)),t.font=this._getFontDeclaration(h),c&&c.textBackgroundColor&&this._removeShadow(t),c&&c.deltaY&&(o+=c.deltaY),d&&t.fillText(n,r-a.offsetX,o-a.offsetY),u&&t.strokeText(n,r-l.offsetX,o-l.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,l,c,h,d,u,g,p,m,f,_,v=this._getLeftOffset(),C=this._getTopOffset(),b=this.path,E=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)){l=this._textLines[y],m=i/this.lineHeight,r=this._getLineLeftOffset(y),d=0,u=0,c=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 L=0,R=l.length;L<R;L++)if(g=this.__charBounds[y][L],p=this.getValueOfPropertyAt(y,L,t),f=this.getValueOfPropertyAt(y,L,"fill"),n=this.getHeightOfChar(y,L),a=this.getValueOfPropertyAt(y,L,"deltaY"),b&&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!==c||f!==_||n!==s||a!==o)&&u>0){var T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),c&&_&&(e.fillStyle=_,e.fillRect(T,h+S*s+o,u,this.fontSize/15)),d=g.left,u=g.width,c=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-E,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 l="";"textContent"in e?l=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(l=e.firstChild.data),l=l.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var c=n.strokeWidth;n.strokeWidth=0;var h=new t.Text(l,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 c?c: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 l in t=0,s[a]){var c;n++,(c=s[a][l]).hasOwnProperty(e)?(i?c[e]!==i&&(r=!1):i=c[e],c[e]===this[e]&&delete c[e]):r=!1,0!==Object.keys(c).length?t++:delete s[a][l]}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 l=0;l<i;l++)r+=this.getHeightOfLine(l);t=this._getLineLeftOffset(i);var c=this.__charBounds[i][s];return c&&(o=c.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,l=e.topOffset,c=this.getValueOfPropertyAt(s,n,"deltaY");l+=(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,l+e.top+c,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,l=o.lineIndex,c=r.charIndex<0?0:r.charIndex,h=o.charIndex<0?0:o.charIndex,d=a;d<=l;d++){var u,g=this._getLineLeftOffset(d)||0,p=this.getHeightOfLine(d),m=0,f=0;if(d===a&&(m=this.__charBounds[a][c].left),d>=a&&d<l)f=n&&!this.isEndOfWrapping(d)?this.width:this.getLineWidth(d)||5;else if(d===l)if(0===h)f=this.__charBounds[l][h].left;else{var _=this._getWidthOfCharSpacing();f=this.__charBounds[l][h-1].left+this.__charBounds[l][h-1].width-_}u=p,(this.lineHeight<1||d===l&&this.lineHeight>1)&&(p/=this.lineHeight);var v=e.left+g+m,C=f-m,b=p,E=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",b=1,E=p):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-C),t.fillRect(v,e.top+e.topOffset+E,C,b),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,l=this.calcTransformMatrix(),c={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 c=n.util.transformPoint(c,l),(c=n.util.transformPoint(c,this.canvas.viewportTransform)).x*=f,c.y*=_,c.x<0&&(c.x=0),c.x>p&&(c.x=p),c.y<0&&(c.y=0),c.y>m&&(c.y=m),c.x+=this.canvas._offset.left,c.y+=this.canvas._offset.top,{left:c.x+"px",top:c.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,l=r.lineIndex,c=r.charIndex;if(o!==l){if(this.styles[o])for(i=a;i<this._unwrappedTextLines[o].length;i++)delete this.styles[o][i];if(this.styles[l])for(i=c;i<this._unwrappedTextLines[l].length;i++)(s=this.styles[l][i])&&(this.styles[o]||(this.styles[o]={}),this.styles[o][a+i-c]=s);for(i=o+1;i<=l;i++)delete this.styles[i];this.shiftLineStyles(l,o-l)}else if(this.styles[o]){s=this.styles[o];var h,d,u=c-a;for(i=a;i<c;i++)delete s[i];for(d in this.styles[o])(h=parseInt(d,10))>=c&&(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,l=this._unwrappedTextLines[t].length,c=l===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],c&&0===i||delete this.styles[t][h])}var u=!1;for(a&&!c&&(this.styles[t+s]=o,u=!0),(u||l>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 l=parseInt(a,10);l>=i&&(r[l+s]=o[l],o[l-s]||delete r[l])}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 c=r[i?i-1:1];c&&s--;)this.styles[t][i+s]=e(c)},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,l=0,c=this._textLines.length;l<c&&r<=i.y;l++)r+=this.getHeightOfLine(l)*this.scaleY,a=l,l>0&&(o+=this._textLines[l-1].length+this.missingNewlineOffset(l-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,l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,c=this._text.length,h=l.length,d=h-c,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<c&&(i=f?this._text.slice(g+d,g):this._text.slice(u,u-d)),s=l.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),l=this._textLines[n].slice(0,r),c=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-l.length+(1-c)},_getIndexOnLine:function(e,t){for(var i,s,n=this._textLines[e],r=this._getLineLeftOffset(e),o=0,a=0,l=n.length;a<l;a++)if((r+=i=this.__charBounds[e][a].width)>t){s=!0;var c=r-i,h=r,d=Math.abs(c-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,l,c,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,b=i({angle:t(v)});b[4]=h.renderLeft,b[5]=h.renderTop;var E=s({x:-C,y:0},b);l=E.x,c=E.y}return['<tspan x="',e(l,f),'" y="',e(c,f),'" ',m,g,_,">",n.util.string.escapeXml(o),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,s){var r,o,a,l,c,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++)c=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&&!c&&this._reSpaceAndTab.test(p[m])&&(c=!0),c||(r=r||this.getCompleteStyleDeclaration(t,m),o=this.getCompleteStyleDeclaration(t,m+1),c=n.util.hasStyleChanged(r,o,!0)),c&&(l=this._getStyleDeclaration(t,m)||{},e.push(this._createTextCharSpan(u,l,i,s,a)),u="",r=o,i+=g,g=0)},_pushTextBgRect:function(t,i,s,r,o,a){var l=n.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(s,l),'" y="',e(r,l),'" width="',e(o,l),'" height="',e(a,l),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,s){for(var n,r,o=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,l=0,c=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+c,s,l,a),c=n.left,l=n.width,h=r):l+=n.kernedWidth;r&&this._pushTextBgRect(e,r,i+c,s,l,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 l in i[a])if(l>=s&&(!n||l<t))for(var c in i[a][l])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=[],l=[],c=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===c.length&&c.push([]),s-=n;for(var v=0;v<c.length;v++)h=o?c[v]:t.util.string.graphemeSplit(c[v]),g=this._measureWord(h,i,d),d+=h.length,(r+=p+g-_)>s&&!f?(a.push(l),l=[],r=g,f=!0):r+=_,f||o||l.push(u),l=l.concat(h),p=o?0:this._measureWord([u],i,d),d++,f=!1,g>m&&(m=g);return v&&a.push(l),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,l=n.Object.prototype.controls;if(l.ml=new n.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.mr=new n.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.mb=new n.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.mt=new n.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.tl=new n.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),l.tr=new n.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),l.bl=new n.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:s}),l.br=new n.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:s}),l.mtr=new n.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),n.Textbox){var c=n.Textbox.prototype.controls={};c.mtr=l.mtr,c.tr=l.tr,c.br=l.br,c.tl=l.tl,c.bl=l.bl,c.mt=l.mt,c.mb=l.mb,c.mr=new n.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),c.ml=new n.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},79064:(e,t,i)=>{var s=i(59368),n=i(63819);e.exports=function e(t,i,r,o,a){var l=-1,c=t.length;for(r||(r=n),a||(a=[]);++l<c;){var h=t[l];i>0&&r(h)?i>1?e(h,i-1,r,o,a):s(a,h):o||(a[a.length]=h)}return a}},63010:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},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))]}},24410:(e,t,i)=>{var s=i(20011);e.exports=function(e){return s(e)?void 0:e}},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+"")}},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])}},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))}},73917:(e,t,i)=>{var s=i(79064);e.exports=function(e){return(null==e?0:e.length)?s(e,1):[]}},81824:(e,t,i)=>{var s=i(63010),n=i(78326);e.exports=function(e,t){return null!=e&&n(e,t,s)}},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)}},88834:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},52708:(e,t,i)=>{var s=i(634),n=i(35647)((function(e,t,i,n){s(e,t,i,n)}));e.exports=n},62091:(e,t,i)=>{var s=i(54380),n=i(35367),r=i(80531),o=i(68097),a=i(62871),l=i(24410),c=i(34408),h=i(35725),d=c((function(e,t){var i={};if(null==e)return i;var c=!1;t=s(t,(function(t){return t=o(t,e),c||(c=t.length>1),t})),a(e,h(e),i),c&&(i=n(i,7,l));for(var d=t.length;d--;)r(i,t[d]);return i}));e.exports=d},1445:e=>{"use strict";e.exports=function(e){for(var t=function(e){var t,i=1+(e.length+8>>6),s=new Array(16*i);for(t=0;t<16*i;t++)s[t]=0;for(t=0;t<e.length;t++)s[t>>2]|=e.charCodeAt(t)<<(8*e.length+t)%4*8;s[t>>2]|=128<<(8*e.length+t)%4*8;var n=8*e.length;return s[16*i-2]=255&n,s[16*i-2]|=(n>>>8&255)<<8,s[16*i-2]|=(n>>>16&255)<<16,s[16*i-2]|=(n>>>24&255)<<24,s}(e),i=1732584193,s=-271733879,n=-1732584194,a=271733878,u=0;u<t.length;u+=16){var g=i,p=s,m=n,f=a;i=l(i,s,n,a,t[u+0],7,-680876936),a=l(a,i,s,n,t[u+1],12,-389564586),n=l(n,a,i,s,t[u+2],17,606105819),s=l(s,n,a,i,t[u+3],22,-1044525330),i=l(i,s,n,a,t[u+4],7,-176418897),a=l(a,i,s,n,t[u+5],12,1200080426),n=l(n,a,i,s,t[u+6],17,-1473231341),s=l(s,n,a,i,t[u+7],22,-45705983),i=l(i,s,n,a,t[u+8],7,1770035416),a=l(a,i,s,n,t[u+9],12,-1958414417),n=l(n,a,i,s,t[u+10],17,-42063),s=l(s,n,a,i,t[u+11],22,-1990404162),i=l(i,s,n,a,t[u+12],7,1804603682),a=l(a,i,s,n,t[u+13],12,-40341101),n=l(n,a,i,s,t[u+14],17,-1502002290),i=c(i,s=l(s,n,a,i,t[u+15],22,1236535329),n,a,t[u+1],5,-165796510),a=c(a,i,s,n,t[u+6],9,-1069501632),n=c(n,a,i,s,t[u+11],14,643717713),s=c(s,n,a,i,t[u+0],20,-373897302),i=c(i,s,n,a,t[u+5],5,-701558691),a=c(a,i,s,n,t[u+10],9,38016083),n=c(n,a,i,s,t[u+15],14,-660478335),s=c(s,n,a,i,t[u+4],20,-405537848),i=c(i,s,n,a,t[u+9],5,568446438),a=c(a,i,s,n,t[u+14],9,-1019803690),n=c(n,a,i,s,t[u+3],14,-187363961),s=c(s,n,a,i,t[u+8],20,1163531501),i=c(i,s,n,a,t[u+13],5,-1444681467),a=c(a,i,s,n,t[u+2],9,-51403784),n=c(n,a,i,s,t[u+7],14,1735328473),i=h(i,s=c(s,n,a,i,t[u+12],20,-1926607734),n,a,t[u+5],4,-378558),a=h(a,i,s,n,t[u+8],11,-2022574463),n=h(n,a,i,s,t[u+11],16,1839030562),s=h(s,n,a,i,t[u+14],23,-35309556),i=h(i,s,n,a,t[u+1],4,-1530992060),a=h(a,i,s,n,t[u+4],11,1272893353),n=h(n,a,i,s,t[u+7],16,-155497632),s=h(s,n,a,i,t[u+10],23,-1094730640),i=h(i,s,n,a,t[u+13],4,681279174),a=h(a,i,s,n,t[u+0],11,-358537222),n=h(n,a,i,s,t[u+3],16,-722521979),s=h(s,n,a,i,t[u+6],23,76029189),i=h(i,s,n,a,t[u+9],4,-640364487),a=h(a,i,s,n,t[u+12],11,-421815835),n=h(n,a,i,s,t[u+15],16,530742520),i=d(i,s=h(s,n,a,i,t[u+2],23,-995338651),n,a,t[u+0],6,-198630844),a=d(a,i,s,n,t[u+7],10,1126891415),n=d(n,a,i,s,t[u+14],15,-1416354905),s=d(s,n,a,i,t[u+5],21,-57434055),i=d(i,s,n,a,t[u+12],6,1700485571),a=d(a,i,s,n,t[u+3],10,-1894986606),n=d(n,a,i,s,t[u+10],15,-1051523),s=d(s,n,a,i,t[u+1],21,-2054922799),i=d(i,s,n,a,t[u+8],6,1873313359),a=d(a,i,s,n,t[u+15],10,-30611744),n=d(n,a,i,s,t[u+6],15,-1560198380),s=d(s,n,a,i,t[u+13],21,1309151649),i=d(i,s,n,a,t[u+4],6,-145523070),a=d(a,i,s,n,t[u+11],10,-1120210379),n=d(n,a,i,s,t[u+2],15,718787259),s=d(s,n,a,i,t[u+9],21,-343485551),i=r(i,g),s=r(s,p),n=r(n,m),a=r(a,f)}return o(i)+o(s)+o(n)+o(a)};var t="0123456789abcdef";function i(e,t){return(e>>>1|t>>>1)<<1|(1&e|1&t)}function s(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t}function n(e,t){return(e>>>1&t>>>1)<<1|1&e&t}function r(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function o(e){var i,s="";for(i=0;i<=3;i++)s+=t.charAt(e>>8*i+4&15)+t.charAt(e>>8*i&15);return s}function a(e,t,i,s,n,o){return r((a=r(r(t,e),r(s,o)))<<(l=n)|a>>>32-l,i);var a,l}function l(e,t,s,r,o,l,c){return a(i(n(t,s),n(~t,r)),e,t,o,l,c)}function c(e,t,s,r,o,l,c){return a(i(n(t,r),n(s,~r)),e,t,o,l,c)}function h(e,t,i,n,r,o,l){return a(s(s(t,i),n),e,t,r,o,l)}function d(e,t,n,r,o,l,c){return a(s(n,i(t,~r)),e,t,o,l,c)}},80781:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Pl,Emitter:()=>Fl,KeyCode:()=>Ul,KeyMod:()=>Hl,MarkerSeverity:()=>Gl,MarkerTag:()=>jl,Position:()=>Bl,Range:()=>Wl,Selection:()=>Vl,SelectionDirection:()=>zl,Token:()=>Yl,Uri:()=>Kl,default:()=>Zl,editor:()=>ql,languages:()=>$l});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>Pl,Emitter:()=>Fl,KeyCode:()=>Ul,KeyMod:()=>Hl,MarkerSeverity:()=>Gl,MarkerTag:()=>jl,Position:()=>Bl,Range:()=>Wl,Selection:()=>Vl,SelectionDirection:()=>zl,Token:()=>Yl,Uri:()=>Kl,editor:()=>ql,languages:()=>$l});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),l=i(5662),c=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),b=i(25890),E=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,b.Yc)([`/*${e}*/`,i?`globalThis.MonacoEnvironment = { baseUrl: '${i}' };`:void 0,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify((0,E.Ec)())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify((0,E.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 l.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,l.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 L{constructor(e,t){this.amdModuleId=e,this.label=t,this.esmModuleLocation=C.zl.asBrowserUri(`${e}.esm.js`)}}class R{static{this.LAST_WORKER_ID=0}constructor(){this._webWorkerFailedBeforeError=!1}create(e,t,i){const s=++R.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 l.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,b.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),l=await this._workerManager.withWorker(),c=await l.textualSuggest(s,r?.word,n);return c?{duration:c.duration,suggestions:c.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:o}})))}:void 0}}let Y=class extends l.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 l.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 L(e,t):e;return new f.SimpleWorkerClient(new R,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 l.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,l.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 le=(0,ae.u1)("layoutService");var 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},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class{get mainContainer(){return(0,b.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,b.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=ce([he(0,g.T)],de);let ue=class extends de{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};ue=ce([he(1,g.T)],ue),(0,se.v)(le,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 be(e){return e.scheme===C.ny.file?e.fsPath:e.path}let Ee=0;class Se{constructor(e,t,i,s,n,r,o){this.id=++Ee,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(E.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(E.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 Le{constructor(e,t,i,s,n,r,o){this.id=++Ee,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 Re{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 Re("","");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=be(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=be(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 Le(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 Re(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=be(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=be(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 l.jG.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?l.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(l.jG.None);const i=e.actual.prepareUndoRedo();return i?(0,l.Xm)(i)?t(i):i.then((e=>t(e))):t(l.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,E.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,E.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,E.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,E.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,E.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:E.kg("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:E.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:E.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=E.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:E.kg("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:E.kg({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:E.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,E.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,E.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,E.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,E.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,E.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=E.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 l.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"),c=Ke("div.hover-contents");if("string"===typeof e.content)c.textContent=e.content,c.style.whiteSpace="pre-wrap";else if(U.sb(e.content))c.appendChild(e.content),c.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:()=>{c.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});c.appendChild(s)}if(a.appendChild(c),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,E.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 l.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=l.jG.None,this.toDisposeOnSetContainer=l.jG.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=U.$(".context-view"),U.jD(this.view),this.setContainer(e,t),this._register((0,l.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 l.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)||l.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,l;const c=U.fz();if(0===o){const e={offset:t.top-c.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(c.innerHeight,s,e)+c.pageYOffset,Je.Q.intersects({start:a,end:a+s},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),l=et(c.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};l=et(c.innerWidth,i,e),Je.Q.intersects({start:l,end:l+i},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),a=et(c.innerHeight,s,o)+c.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=l-(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 l.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,le)],rt);class ot extends rt{getContextViewElement(){return this.contextView.getViewElement()}}var at=i(18447),lt=i(631);class ct{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,lt.Kg)(e)||(0,U.sb)(e))s=e;else if((0,lt.Tn)(e.markdown)){this._hoverWidget||this.show((0,E.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 l.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 l.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,l.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,l)=>new m.pc((async()=>{r&&!r.isDisposed||(r=new ct(e,a||t,n>0),await r.update("function"===typeof i?i():i,o,{...s,trapFocus:l}))}),n);let c=!1;const h=(0,U.ko)(t,U.Bx.MOUSE_DOWN,(()=>{c=!0,o(!0,!0)}),!0),d=(0,U.ko)(t,U.Bx.MOUSE_UP,(()=>{c=!1}),!0),u=(0,U.ko)(t,U.Bx.MOUSE_LEAVE,(e=>{c=!1,o(!1,e.fromElement===t)}),!0),g=(0,U.ko)(t,U.Bx.MOUSE_OVER,(i=>{if(n)return;const s=new l.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(c||n)return;const i={targetElements:[t],dispose:()=>{}},s=new l.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,le),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),bt=i(83069),Et=i(18938),St=i(50091),yt=i(74320),wt=i(1646),Lt=i(46359);function Rt(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 Rt(i.rawConfiguration.getValue(e))},get override(){return t?Rt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Rt(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?Rt(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=>b.aI(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=b.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 b.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&<.Gv(e[i])&<.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=>b.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=>b.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=Lt.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],l=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!==l&&void 0!==s.scopes&&!s.scopes.includes(l)||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,l,c,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=l,this.remoteUserConfiguration=c,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,l,c){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=l,this.logService=c,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,l=o.commandArgs,c=o.bubble,{kind:2,commandId:a,commandArgs:l,isBubble:c}):(this._log(`\\ From ${r.length} keybinding entries, no when clauses matched the context.`),Ot);var a,l,c}_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 l.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(E.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(E.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(),l=this._getResolver().resolve(o,r,n);switch(l.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(E.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 ${l.commandId} ]`),null===l.commandId||""===l.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(E.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(),l.isBubble||(s=!0),this._log(`+ Invoking command ${l.commandId}.`),this._currentlyDispatchingCommandId=l.commandId;try{"undefined"===typeof l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}Ut.test(l.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:l.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),li=i(11799),ci=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 li.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 Ei&&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 Ei(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 bi(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 bi extends ci.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=c.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(c.NB(s(e.substr(0,t.index))," "),(0,U.$)("u",{"aria-hidden":"true"},t[3]),c.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 Ei extends bi{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 l.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:l}=this.calculateSubmenuMenuLayout(new U.fg(o.innerWidth,o.innerHeight),U.fg.lift(r),n,this.expandDirection);this.submenuContainer.style.left=l-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 ci.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 Li{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 l.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,l.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 Ri=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(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 l.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new Li(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=Ri([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 l.jG{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Lt.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,c=r?.picker?.value,h=new l.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&&c===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 l.Cm,o=this.visibleQuickAccess={picker:e,descriptor:i,value:s};return r.add((0,l.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,E.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,l=i.disposables.add(new qi.f(s,U.Bx.KEY_DOWN)).event,c=Q.Jh.chain(l,(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,c)(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",ls=new ie.N1(as,!1,(0,E.kg)("inQuickInput","Whether keyboard focus is inside the quick input control")),cs=ie.M$.has(as),hs="quickInputType",ds=new ie.N1(hs,void 0,(0,E.kg)("quickInputType","The type of the currently visible quick input")),us="cursorAtEndOfQuickInputBox",gs=new ie.N1(us,!1,(0,E.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,E.kg)("quickInput.back","Back"),handle:-1};class fs extends l.jG{static{this.noPromptMessage=(0,E.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 l.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,E.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,E.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,b.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,b.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,b.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 bs=i(62890),Es=i(3828);const Ss="done",ys="active",ws="infinite",Ls="infinite-long-running",Rs="discrete";class Ts extends l.jG{static{this.LONG_RUNNING_INFINITE_THRESHOLD=1e4}constructor(e,t){super(),this.progressSignal=this._register(new l.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,Ls,Rs),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(Rs,Ss,Ls),this.element.classList.add(ys,ws),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Ls)}getContainer(){return this.element}}var xs=i(88443);const ks=U.$;class As extends l.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,E.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 l.Cm,t.toDisposeTemplate=new l.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 li.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 l;!s.saneTooltip&&s.saneDescription&&(l={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const c={matches:r||[],descriptionTitle:l,descriptionMatches:o||[],labelEscapeNewLines:!0};if(c.extraClasses=n.iconClasses,c.italic=n.italic,c.strikethrough=n.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,c),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 l;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(l={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const c={matches:r||[],descriptionTitle:l,descriptionMatches:o||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,c),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 l.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:b.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 l.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 l=new js(n,this._hasCheckboxes,(e=>this._onButtonTriggered.fire(e)),this._elementChecked,s,a);if(this._itemElements.push(l),t)return t.children.push(l),i;r=l}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,c.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 l.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"),cs),metadata:{description:(0,E.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 ln=(0,E.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."),cn=(0,E.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:ln}}),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:cn}}),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:ln}}),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:cn}}),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 l.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=ls.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 li.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 li.E(s,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-right-action-bar");const a=U.BC(t,gn(".quick-input-header")),l=U.BC(a,gn("input.quick-input-check-all"));l.type="checkbox",l.setAttribute("aria-label",(0,E.kg)("quickInput.checkAll","Toggle all checkboxes")),this._register(U.b2(l,U.Bx.CHANGE,(e=>{const t=l.checked;x.setAllVisibleChecked(t)}))),this._register(U.ko(l,U.Bx.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const c=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 Es.x(g,{countFormat:(0,E.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 Es.x(m,{countFormat:(0,E.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 li.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 bs.$(v,this.styles.button));C.label=(0,E.kg)("ok","OK"),this._register(C.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=U.BC(a,gn(".quick-input-action")),S=this._register(new bs.$(b,{...this.styles.button,supportIcons:!0}));S.label=(0,E.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 L=U.BC(t,gn(".quick-input-html-widget"));L.tabIndex=-1;const R=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=>{l.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,L))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:R,description2:c,widget:L,rightActionBar:o,inlineActionBar:_,checkAll:l,inputContainer:h,filterContainer:d,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:v,ok:C,message:y,customButtonContainer:b,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 c=[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,l.AS)(c),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,E.kg)("quickInput.backWithKeybinding","Back ({0})",s):(0,E.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,le),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,le),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},bn=function(e,t){return function(i,s){t(i,s,e)}};let En=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)}};En=Cn([bn(1,ae._Y),bn(2,ie.fN),bn(3,Z.Gy),bn(4,g.T),bn(5,Me.pG)],En);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(En,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([bn(0,ae._Y),bn(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 Ln=i(10424),Rn=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 l.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,le),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 l.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,le),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 l.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 l.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,E.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,l.AS)(this._children),this._children.clear();for(const e of this._servicesToMaybeDispose)(0,l.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,l.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,l]of s._dep)if(a&&l){t=!0,n.push(`${r}CREATES -> ${o}`);const s=e(i+1,l);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 lr{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 cr{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 lr,this._stats=new cr(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,b.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:l,endLineNumber:c,endColumn:h,relatedInformation:d,tags:u}=i;if(r)return a=a>0?a:1,l=l>0?l:1,c=c>=a?c:a,h=h>0?h:l,{resource:t,owner:e,code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:l,endLineNumber:c,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,b.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 l.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=Lt.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 l.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 br{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 Er=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new l.BO(new br(t))):Promise.reject(new Error("Model not found"))}};Er=vr([Cr(0,A.IModelService)],Er);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 l.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 Lr=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 l.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 Rr(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())}},c=e=>{e.getOption(61)||o(e.getContainerDomNode())};this._register(r.onCodeEditorAdd(c)),this._register(r.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),r.listCodeEditors().forEach(c);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,l.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,l.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)}};Lr=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)],Lr);class Rr extends l.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=bt.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:c.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,le),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)(Rn.L,Ln.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)(Et.ITextModelService,Er,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,Lr,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 l.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,l,c,h,d,u,g){return to(a)?to(l)?!to(c)&&c<s.length?io(e,s[c]):!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,lo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},co=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 l of a.tokens)this._tokens.push(new Gr.ou(l.offset+s,l.type,l.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 l=0,c=a.tokens.length;l<c;l+=2)a.tokens[l]+=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 l.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 l=i.embeddedLanguageData,c=i.stack,h=0,d=null,u=!0;for(;u||h<a;){const i=h,m=c.depth,f=d?d.groups.length:0,_=c.state;let v=null,C=null,b=null,E=null,S=null;if(d){v=d.matches;const e=d.groups.shift();C=e.matched,b=e.action,E=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],b=i.action;break}}if(v||(v=[""],C=""),b||(h<a&&(v=[o.charAt(h)],C=v[0]),b=this._lexer.defaultToken),null===C)break;for(h+=C.length;Zr(b)&&eo(b)&&b.test;)b=b.test(C,v,_,h===a);let y=null;if("string"===typeof b||Array.isArray(b))y=b;else if(b.group)y=b.group;else if(null!==b.token&&void 0!==b.token){if(y=b.tokenSubst?ro(this._lexer,b.token,C,v,_):b.token,b.nextEmbedded)if("@pop"===b.nextEmbedded){if(!l)throw no(this._lexer,"cannot pop embedded language if not inside one");l=null}else{if(l)throw no(this._lexer,"cannot enter embedded language from within an embedded language");S=ro(this._lexer,b.nextEmbedded,C,v,_)}if(b.goBack&&(h=Math.max(0,h-b.goBack)),b.switchTo&&"string"===typeof b.switchTo){let e=ro(this._lexer,b.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(E));c=c.switchTo(e)}else{if(b.transform&&"function"===typeof b.transform)throw no(this._lexer,"action.transform not supported");if(b.next)if("@push"===b.next){if(c.depth>=this._lexer.maxStack)throw no(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(_)}else if("@pop"===b.next){if(c.depth<=1)throw no(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(E));c=c.pop()}else if("@popall"===b.next)c=c.popall();else{let e=ro(this._lexer,b.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(E));c=c.push(e)}}b.log&&"string"===typeof b.log&&(g=this._lexer,p=this._lexer.languageId+": "+ro(this._lexer,b.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(E));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(c,o),s+h,n)}return po.create(c,o)};if(Array.isArray(y)){if(d&&d.groups.length>0)throw no(this._lexer,"groups cannot be nested: "+this._safeRuleName(E));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(E));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(E));d={rule:E,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!==c.depth||_!==c.state||(d?d.groups.length:0)!==f)continue;throw no(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(E))}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(c,l)}_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=lo([co(4,Me.pG)],vo);const bo=(0,_.H)("standaloneColorizer",{createHTML:e=>e});class Eo{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=bo?.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),c.LU(t)&&(t=t.substr(1));const o=c.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],l=i.tokenizeEncoded(a,!0,r);$r.f.convertToEndOffset(l.tokens,a.length);const c=new $r.f(l.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,c.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(u.html),n.push("<br/>"),r=l.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),l=Xr.qL.isBasicASCII(o,!0),c=Xr.qL.containsRTL(o,l,!0),h=(0,Qr.Md)(new Qr.zL(!1,!0,o,!1,l,c,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),Lo=i(42904),Ro=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,l,c,h,d,u,g){const p={...t};p.ariaLabel=p.ariaLabel||Zt.vp.editorViewAccessibleLabel,super(e,p,{},i,s,n,r,c,h,d,u,g),this._standaloneKeybindingService=l instanceof Lr?l:null,function(e){if(!e){if(Ao)return;Ao=!0}ze.vr(e||a.G.document.body)}(p.ariaContainerElement),(0,Lo.MW)(((e,t)=>i.createInstance(Ie.fO,e,t,{}))),(0,Ro.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"),l.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,c=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new l.Cm,d=this.getId()+":"+t;if(h.add(St.w.registerCommand(d,c)),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 l of n)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,l,c,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,l.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,l,c,h,d,u,g,p,m){const f={...t};Ir(h,f,!1);const _=l.registerEditorContainer(e);"string"===typeof f.theme&&l.setTheme(f.theme),"undefined"!==typeof f.autoDetectHighContrast&&l.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast));const v=f.model;let C;if(delete f.model,super(e,f,i,s,n,r,o,a,l,c,d,p,m),this._configurationService=h,this._standaloneThemeService=l,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,Rn.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,l,c,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,c),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,Rn.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 l.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 l.Cm),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const r=new bs.$(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 l.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,E.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,l.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,b.VE)((t=>t.maxScroll.read(e).maxScroll),b.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,l.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 l of this._viewItems.read(e)){const c=l.contentHeight.read(e),h=Math.min(c,r),d=Wo.L.ofStartAndLength(s,h),u=Wo.L.ofStartAndLength(n,c);if(u.isBefore(o))i-=c-h,l.hide();else if(u.isAfter(o))l.hide();else{const e=Math.max(0,Math.min(o.start-u.start,c-h));i-=e;const s=Wo.L.ofStartAndLength(t+i,r);l.render(d,e,a,s)}s+=h+this._spaceBetweenPx,n+=c+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 l.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,E.kg)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,Ne.x1A)("multiDiffEditor.background",Ne.YtV,(0,E.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,E.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 l.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 la(){return Hr.get(g.T).listCodeEditors()}function ca(){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 l.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 Lr){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 Lr?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"),l.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 ba(e){return Hr.get(or.DR).read(e)}function Ea(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 La(e){return Hr.get(A.IModelService).onModelRemoved(e)}function Ra(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(Rn.L);return Eo.colorizeElement(s,i,e,t).then((()=>{s.registerEditorContainer(e)}))}function ka(e,t,i){const s=Hr.get(Ui.L);return Hr.get(Rn.L).registerEditorContainer(a.G.document.body),Eo.colorize(s,e,t,i)}function Aa(e,t,i=4){return Hr.get(Rn.L).registerEditorContainer(a.G.document.body),Eo.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,c.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(Rn.L).defineTheme(e,t)}function Oa(e){Hr.get(Rn.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,l="~",c=r;if(r&&0!==r.length?/^\w*$/.test(c)?l="==":(o=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),o&&(l=o[1],c=o[2])):(l="!=",c=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(c))if("@"===l||"!@"===l){const i=e[c];if(!i)throw no(e,"the @ match target '"+c+"' 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 '"+c+"' must be an array of strings, in rule: "+t);const s=Wa(i,e.ignoreCase);a=function(e){return"@"===l?s(e):!s(e)}}else if("~"===l||"!~"===l)if(c.indexOf("$")<0){const t=Va(e,"^"+c+"$",!1);a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,i,s,n){return Va(e,"^"+ro(e,c,i,s,n)+"$",!1).test(t)};else if(c.indexOf("$")<0){const t=io(e,c);a=function(e){return"=="===l?e===t:e!==t}}else{const t=io(e,c);a=function(i,s,n,r,o){const a=ro(e,t,s,n,r);return"=="===l?i===a:i!==a}}else{const t=Wa(c.split("|"),e.ignoreCase);a=function(e){return"~"===l?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 el.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 el{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=el._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 el.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 l=0,c=t.length;l<c;l++){const e=t[l],a=1024|s.match(i,e.scopes);if(r>0&&n[r-1]===a)continue;let c=e.startIndex;0===l?c=0:c<o&&(c=o),n[r++]=c,n[r++]=a,o=c}const a=new Uint32Array(r);for(let l=0;l<r;l++)a[l]=n[l];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 tl(e){return e&&"function"===typeof e.then}function il(e){const t=Hr.get(Rn.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 sl(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new Ja(e,t):new el(e,t,Hr.get(Ui.L),Hr.get(Rn.L))}function nl(e,t){const i=new Gr.v_((async()=>{const i=await Promise.resolve(t.create());return i?"function"===typeof i.getInitialState?sl(e,i):new vo(Hr.get(Ui.L),Hr.get(Rn.L),e,Ka(e,i),Hr.get(Me.pG)):null}));return Gr.dG.registerFactory(e,i)}function rl(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return tl(t)?nl(e,{create:()=>t}):Gr.dG.register(e,sl(e,t))}function ol(e,t){return tl(t)?nl(e,{create:()=>t}):Gr.dG.register(e,(t=>new vo(Hr.get(Ui.L),Hr.get(Rn.L),e,Ka(e,t),Hr.get(Me.pG)))(t))}function al(e,t){return Hr.get(D.ILanguageFeaturesService).referenceProvider.register(e,t)}function ll(e,t){return Hr.get(D.ILanguageFeaturesService).renameProvider.register(e,t)}function cl(e,t){return Hr.get(D.ILanguageFeaturesService).newSymbolNamesProvider.register(e,t)}function hl(e,t){return Hr.get(D.ILanguageFeaturesService).signatureHelpProvider.register(e,t)}function dl(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 ul(e,t){return Hr.get(D.ILanguageFeaturesService).documentSymbolProvider.register(e,t)}function gl(e,t){return Hr.get(D.ILanguageFeaturesService).documentHighlightProvider.register(e,t)}function pl(e,t){return Hr.get(D.ILanguageFeaturesService).linkedEditingRangeProvider.register(e,t)}function ml(e,t){return Hr.get(D.ILanguageFeaturesService).definitionProvider.register(e,t)}function fl(e,t){return Hr.get(D.ILanguageFeaturesService).implementationProvider.register(e,t)}function _l(e,t){return Hr.get(D.ILanguageFeaturesService).typeDefinitionProvider.register(e,t)}function vl(e,t){return Hr.get(D.ILanguageFeaturesService).codeLensProvider.register(e,t)}function Cl(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 bl(e,t){return Hr.get(D.ILanguageFeaturesService).documentFormattingEditProvider.register(e,t)}function El(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeFormattingEditProvider.register(e,t)}function Sl(e,t){return Hr.get(D.ILanguageFeaturesService).onTypeFormattingEditProvider.register(e,t)}function yl(e,t){return Hr.get(D.ILanguageFeaturesService).linkProvider.register(e,t)}function wl(e,t){return Hr.get(D.ILanguageFeaturesService).completionProvider.register(e,t)}function Ll(e,t){return Hr.get(D.ILanguageFeaturesService).colorProvider.register(e,t)}function Rl(e,t){return Hr.get(D.ILanguageFeaturesService).foldingRangeProvider.register(e,t)}function Tl(e,t){return Hr.get(D.ILanguageFeaturesService).declarationProvider.register(e,t)}function xl(e,t){return Hr.get(D.ILanguageFeaturesService).selectionRangeProvider.register(e,t)}function kl(e,t){return Hr.get(D.ILanguageFeaturesService).documentSemanticTokensProvider.register(e,t)}function Al(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeSemanticTokensProvider.register(e,t)}function Nl(e,t){return Hr.get(D.ILanguageFeaturesService).inlineCompletionsProvider.register(e,t)}function Il(e,t){return Hr.get(D.ILanguageFeaturesService).inlineEditProvider.register(e,t)}function Ol(e,t){return Hr.get(D.ILanguageFeaturesService).inlayHintsProvider.register(e,t)}var Dl=i(49079);r.qB.wrappingIndent.defaultValue=0,r.qB.glyphMargin.defaultValue=!1,r.qB.autoIndent.defaultValue=3,r.qB.overviewRulerLanes.defaultValue=2,Dl.Pj.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Ml=(0,o.createMonacoBaseAPI)();Ml.editor={create:ra,getEditors:la,getDiffEditors:ca,onDidCreateEditor:oa,onDidCreateDiffEditor:aa,createDiffEditor:ha,addCommand:ua,addEditorAction:ga,addKeybindingRule:pa,addKeybindingRules:ma,createModel:fa,setModelLanguage:_a,setModelMarkers:va,getModelMarkers:ba,removeAllMarkers:Ca,onDidChangeMarkers:Ea,getModels:ya,getModel:Sa,onDidCreateModel:wa,onWillDisposeModel:La,onDidChangeModelLanguage:Ra,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},Ml.languages={register:Ya,getLanguages:qa,onLanguage:Qa,onLanguageEncountered:Xa,getEncodedLanguageId:$a,setLanguageConfiguration:Za,setColorMap:il,registerTokensProviderFactory:nl,setTokensProvider:rl,setMonarchTokensProvider:ol,registerReferenceProvider:al,registerRenameProvider:ll,registerNewSymbolNameProvider:cl,registerCompletionItemProvider:wl,registerSignatureHelpProvider:hl,registerHoverProvider:dl,registerDocumentSymbolProvider:ul,registerDocumentHighlightProvider:gl,registerLinkedEditingRangeProvider:pl,registerDefinitionProvider:ml,registerImplementationProvider:fl,registerTypeDefinitionProvider:_l,registerCodeLensProvider:vl,registerCodeActionProvider:Cl,registerDocumentFormattingEditProvider:bl,registerDocumentRangeFormattingEditProvider:El,registerOnTypeFormattingEditProvider:Sl,registerLinkProvider:yl,registerColorProvider:Ll,registerFoldingRangeProvider:Rl,registerDeclarationProvider:Tl,registerSelectionRangeProvider:xl,registerDocumentSemanticTokensProvider:kl,registerDocumentRangeSemanticTokensProvider:Al,registerInlineCompletionsProvider:Nl,registerInlineEditProvider:Il,registerInlayHintsProvider:Ol,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 Pl=Ml.CancellationTokenSource,Fl=Ml.Emitter,Ul=Ml.KeyCode,Hl=Ml.KeyMod,Bl=Ml.Position,Wl=Ml.Range,Vl=Ml.Selection,zl=Ml.SelectionDirection,Gl=Ml.MarkerSeverity,jl=Ml.MarkerTag,Kl=Ml.Uri,Yl=Ml.Token,ql=Ml.editor,$l=Ml.languages,Ql=globalThis.MonacoEnvironment;(Ql?.globalAPI||"function"===typeof define&&i.amdO)&&(globalThis.monaco=Ml),"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 Xl;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(17184),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=(Xl={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(/\/$/,"")+"/":"")+Xl[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 Zl=s},67913:(e,t,i)=>{"use strict";i.d(t,{cj:()=>n.MarkerSeverity,EN:()=>n.editor,eo:()=>n.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 s,n=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(17184),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=(s={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 n=i.p,r=(n?n.replace(/\/$/,"")+"/":"")+s[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 l=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return r}})},60413:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>r,H8:()=>h,Qu:()=>m,Tc:()=>c,c8:()=>u,gm:()=>l,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,l=a.indexOf("Firefox")>=0,c=a.indexOf("AppleWebKit")>=0,h=a.indexOf("Chrome")>=0,d=!h&&a.indexOf("Safari")>=0,u=!h&&!d&&c,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}},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)}},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"}},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:()=>R,H4:()=>$,Hs:()=>Oe,Ij:()=>D,Iv:()=>w,L9:()=>H,Ln:()=>De,Mc:()=>et,OK:()=>Q,Oq:()=>M,PG:()=>P,Pl:()=>Ne,Q2:()=>E,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:()=>Re,fz:()=>oe,gI:()=>Ye,h:()=>Je,i0:()=>Ge,jD:()=>We,jG:()=>te,jh:()=>le,ko:()=>k,kx:()=>ye,li:()=>he,mU:()=>K,nR:()=>ne,nY:()=>be,pN:()=>Xe,q3:()=>L,sb:()=>Ce,sd:()=>Le,tG:()=>B,vT:()=>Ve,w5:()=>Ae,w_:()=>T,wk:()=>xe,xZ:()=>Ee,y6:()=>q,yt:()=>Ke,zK:()=>Te,zk:()=>_});var s=i(60413),n=i(55089),r=i(72962),o=i(47358),a=i(90766),l=i(64383),c=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:b,getWindowId:E,getWindowById:S,hasWindow:y,onDidRegisterWindow:w,onWillUnregisterWindow:L,onDidUnregisterWindow:R}=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 c.vl,s=new c.vl,n=new c.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,l.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=E(n),l=new U(r,o);let c=e.get(a);return c||(c=[],e.set(a,c)),c.push(l),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)))),l},M=(e,i,n)=>{const r=E(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(b()<=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 le(){return new ce}class ce{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 c.vl,a=new MutationObserver((e=>o.fire(e)));a.observe(e,i);const l=r={users:1,observer:a,onDidMutate:o.event};t.add((0,d.s)((()=>{l.users-=1,0===l.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 be(e){return e instanceof HTMLAnchorElement||e instanceof _(e).HTMLAnchorElement}function Ee(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 Le(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Re={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 c.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new c.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 c.vl{constructor(){super(),this._subscriptions=new d.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(c.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 c of n.groups.class.split("."))""!==c&&a.push(c);if(void 0!==i.className)for(const c of i.className.split("."))""!==c&&a.push(c);a.length>0&&(o.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=o),s)for(const c of s)Ce(c)?o.appendChild(c):"string"===typeof c?o.append(c):"root"in c&&(Object.assign(l,c),o.appendChild(c.root));for(const[c,h]of Object.entries(i))if("className"!==c)if("style"===c)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===c?o.tabIndex=h:o.setAttribute(tt(c),h.toString());return l.root=o,l}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 c of n.groups.class.split("."))""!==c&&a.push(c);if(void 0!==i.className)for(const c of i.className.split("."))""!==c&&a.push(c);a.length>0&&(o.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=o),s)for(const c of s)Ce(c)?o.appendChild(c):"string"===typeof c?o.append(c):"root"in c&&(Object.assign(l,c),o.appendChild(c.root));for(const[c,h]of Object.entries(i))if("className"!==c)if("style"===c)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===c?o.tabIndex=h:o.setAttribute(tt(c),h.toString());return l.root=o,l}function tt(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},83750:(e,t,i)=>{"use strict";i.d(t,{$w:()=>ae,SV:()=>le,aj:()=>oe});const{entries:s,setPrototypeOf:n,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:h}=Object,{apply:d,construct:u}="undefined"!==typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=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=R(Array.prototype.forEach),p=R(Array.prototype.pop),m=R(Array.prototype.push),f=R(String.prototype.toLowerCase),_=R(String.prototype.toString),v=R(String.prototype.match),C=R(String.prototype.replace),b=R(String.prototype.indexOf),E=R(String.prototype.trim),S=R(Object.prototype.hasOwnProperty),y=R(RegExp.prototype.test),w=(L=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(L,t)});var L;function R(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 R(i.get);if("function"===typeof i.value)return R(i.value)}e=o(e)}return function(){return null}}const N=l(["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=l(["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=l(["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=l(["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=l(["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=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=l(["#text"]),U=l(["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=l(["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=l(["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=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=c(/<%[\w\W]*|[\w\W]*%>/gm),G=c(/\${[\w\W]*}/gm),j=c(/^data-[\-\w.\u00B7-\uFFFF]/),K=c(/^aria-[\-\w]+$/),Y=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=c(/^(?:\w+script|data):/i),$=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=c(/^html$/i),X=c(/^[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:c,Node:d,Element:u,NodeFilter:L,NamedNodeMap:R=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 c){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let re,oe="";const{implementation:ae,createNodeIterator:le,createDocumentFragment:ce,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:be}=Z;let{IS_ALLOWED_URI:Ee}=Z,Se=null;const ye=T({},[...N,...I,...O,...M,...F]);let we=null;const Le=T({},[...U,...H,...B,...W]);let Re=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,lt=null;const ct=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(!lt||lt!==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):Le,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,Ee=e.ALLOWED_URI_REGEXP||Y,tt=e.NAMESPACE||et,Re=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.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===Le&&(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(""));l&&l(e),lt=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},bt=function(e){return le.call(e.ownerDocument||e,e,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT|L.SHOW_PROCESSING_INSTRUCTION|L.SHOW_CDATA_SECTION,null)},Et=function(e){return e instanceof x&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof R)||"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,lt)}))},wt=function(e){let t=null;if(yt("beforeSanitizeElements",e,null),Et(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]&&Rt(s)){if(Re.tagNameCheck instanceof RegExp&&y(Re.tagNameCheck,s))return!1;if(Re.tagNameCheck instanceof Function&&Re.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)},Lt=function(e,t,i){if(We&&("id"===t||"name"===t)&&(i in n||i in ct))return!1;if(Ae&&!xe[t]&&y(fe,t));else if(ke&&y(_e,t));else if(!we[t]||xe[t]){if(!(Rt(e)&&(Re.tagNameCheck instanceof RegExp&&y(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&y(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&y(Re.tagNameCheck,i)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(i))))return!1}else if(Qe[t]);else if(y(Ee,C(i,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(i,"data:")||!qe[e]){if(Ne&&!y(ve,C(i,Ce,"")));else if(i)return!1}else;return!0},Rt=function(e){return"annotation-xml"!==e&&v(e,be)},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:l,value:c}=o,h=at(a);let d="value"===a?c:E(c);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(Lt(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(l);else switch(z.getAttributeType(u,h)){case"TrustedHTML":d=re.createHTML(d);break;case"TrustedScriptURL":d=re.createScriptURL(d)}try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),Et(e)?_t(e):p(i.removed)}catch(r){}}}yt("afterSanitizeAttributes",e,null)},xt=function e(t){let i=null;const s=bt(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,l=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 c=bt(Ge?e:s);for(;o=c.nextNode();)wt(o)||(o.content instanceof a&&xt(o.content),Tt(o));if(Ge)return e;if(Ue){if(He)for(l=ce.call(s.ownerDocument);s.firstChild;)l.appendChild(s.firstChild);else l=s;return(we.shadowroot||we.shadowrootmode)&&(l=de.call(r,l,!0)),l}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(){lt=null,Pe=!1},i.isValidAttribute=function(e,t,i){lt||dt({});const s=at(e),n=at(t);return Lt(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),le=re.removeHook;re.removeHooks,re.removeAllHooks},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()}}},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)}},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'},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 l(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&&c(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 l(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=>{l(r,e,i,n)}))}function c(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}}},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(l){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))))}}},72962:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var s=i(60413),n=i(24939),r=i(42539),o=i(98067);const a=o.zx?256:2048,l=o.zx?2048:256;class c{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|=l),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)}}},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),l=i(47358),c=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={"&":"&","<":"<",">":">",'"':""","'":"'"},l=e=>a[e];function c(e,t){if(t){if(s.test(e))return e.replace(n,l)}else if(r.test(e))return e.replace(o,l);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?c(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:c(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"),l=a.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}\n${a}`:a,s=s?`${s}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,n,!0),this.lexer.state.top=c,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 l=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],h=!l.trim(),d=0;if(this.options.pedantic?(d=2,a=l.trimStart()):h?d=t[1].length+1:(d=t[2].search(/[^ ]/),d=d>4?1:d,a=l.slice(d),d+=t[1].length),h&&/^ *$/.test(c)&&(s+=c+"\n",e=e.substring(c.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(c=o,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),n.test(c))break;if(r.test(c))break;if(t.test(c))break;if(i.test(e))break;if(c.search(/[^ ]/)>=d||!c.trim())a+="\n"+c.slice(d);else{if(h)break;if(l.search(/[^ ]/)>=4)break;if(n.test(l))break;if(r.test(l))break;if(i.test(l))break;a+="\n"+c}h||c.trim()||(h=!0),s+=o+"\n",e=e.substring(o.length+1),l=c.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:c(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 l="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!=(s=l.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,l=e.slice(0,i+s.index+t+r);if(Math.min(i,r)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}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=c(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=c(t[1]),i="mailto:"+e):(e=c(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=c(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=c(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]:c(t[0]),{type:"text",raw:t[0],text:e}}}}const v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,b=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(),E=/^([^\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(),L="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",R=/<!--(?:-?>|[\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",R).replace("tag",L).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x=d(E).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",L).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:b,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",L).getRegex(),N={...k,table:A,paragraph:d(E).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",L).getRegex()},I={...k,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",R).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(E).replace("hr",v).replace("heading"," *#{1,6} *[^\n]").replace("lheading",b).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(R).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,l=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(l));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,r.index)+"++"+l.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,l,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-'+c(s)+'">'+(i?n:c(n,!0))+"</code></pre>\n":"<pre><code>"+(i?n:c(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>"+c(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 le=ae.options,ce=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=le,e.parse=ge,e.parseInline=ue,e.parser=pe,e.setOptions=ce,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),b=(_.getDefaults||exports.getDefaults,_.lexer||exports.lexer),E=(_.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),L=i(10146),R=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,L.PI)(i,(t=>e.uris&&e.uris[t]?x.r.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},R=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 l.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}(b(F,e));P=S(t,e)}else P=E(F,{...i,async:!1});if(e.supportThemeIcons){P=(0,c.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",R(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=R(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,R.o1)(e,t).toString():(0,R.o1)((0,R.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},E(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=b(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 b(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 b(o)}}function ie(e,t){return n.$w(e,t),(0,f.s)((()=>n.SV(e)))}},47358:(e,t,i)=>{"use strict";i.d(t,{P:()=>l,$:()=>c});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 l{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 c{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()}}},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 l(){performance.mark("input/start"),o.input=1,d()}function c(){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=l,e.onInput=function(){0===o.input&&l(),queueMicrotask(c)},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={}))},94106:(e,t,i)=>{"use strict";i.d(t,{c:()=>l});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 l=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)}}},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),l=i(41234),c=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 c.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(l.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 c.jG.None;u.INSTANCE||(u.INSTANCE=(0,c.lC)(new u));const t=u.INSTANCE.targets.push(e);return(0,c.s)(t)}static ignoreTarget(e){if(!u.isTouchDevice())return c.jG.None;u.INSTANCE||(u.INSTANCE=(0,c.lC)(new u));const t=u.INSTANCE.ignoreTargets.push(e);return(0,c.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 l=this.activeTouches[a.identifier],c=Date.now()-l.initialTimeStamp;if(c<u.HOLD_DELAY&&Math.abs(l.initialPageX-o.RT(l.rollingPageX))<30&&Math.abs(l.initialPageY-o.RT(l.rollingPageY))<30){const e=this.newGestureEvent(s.Tap,l.initialTarget);e.pageX=o.RT(l.rollingPageX),e.pageY=o.RT(l.rollingPageY),this.dispatchEvent(e)}else if(c>=u.HOLD_DELAY&&Math.abs(l.initialPageX-o.RT(l.rollingPageX))<30&&Math.abs(l.initialPageY-o.RT(l.rollingPageY))<30){const e=this.newGestureEvent(s.Contextmenu,l.initialTarget);e.pageX=o.RT(l.rollingPageX),e.pageY=o.RT(l.rollingPageY),this.dispatchEvent(e)}else if(1===n){const t=o.RT(l.rollingPageX),s=o.RT(l.rollingPageY),n=o.RT(l.rollingTimestamps)-l.rollingTimestamps[0],r=t-l.rollingPageX[0],a=s-l.rollingPageY[0],c=[...this.targets].filter((e=>l.initialTarget instanceof Node&&e.contains(l.initialTarget)));this.inertia(e,c,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,l.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,l,c,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,l+=u.SCROLL_FRICTION*d,r>0&&(m=!1,g=o*r*d),l>0&&(m=!1,p=c*l*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,l,c,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)},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)}}},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),l=i(56245),c=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.$,b="selectOption.entry.template";class E{get templateId(){return b}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 b}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 c.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,l=this.selectElement.offsetWidth,c=this.setWidthControlElement(this.widthControlElement),h=Math.max(c,Math.round(l)).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 E,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 l.f(this.selectDropDownListContainer,"keydown")),i=p.Jh.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new c.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 L 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 R=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 R.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 R.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===R.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 L(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)}}},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),l=i(41234),c=i(5662),h=i(631);i(62469);class d extends c.jG{constructor(e,t={}){let i,h;switch(super(),this._actionRunnerDisposables=this._register(new c.Cm),this.viewItemDisposables=this._register(new c.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l.vl),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new l.vl),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new l.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,c.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,c.AS)(this.viewItems),this.getContainer().remove(),super.dispose()}}},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,l,c;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};l=i(),c=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&&(l.textContent!==e?(s.w_(c),g(l,e)):(s.w_(l),g(c,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"}},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),l=i(42904),c=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,c.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,l.nZ)("mouse"),this._element,e))}}},97791:()=>{},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}`)}}},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),l=i(41234);class c extends a.LN{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new l.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 c{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 l.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)}}},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),l=(i(10713),i(78209)),c=i(5662),h=i(42904);const d=l.kg("defaultLabel","input");class u extends o.x{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new c.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||"",l=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:l,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 c.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()}}},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"),l=o.kg("wordsDescription","Match Whole Word"),c=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:l+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:c+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},37479:(e,t,i)=>{"use strict";i.d(t,{_:()=>c});var s=i(8597),n=i(48196),r=i(42904),o=i(20370),a=i(5662),l=i(10146);class c 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=c.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&l.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"}))}}},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}},42904:(e,t,i)=>{"use strict";i.d(t,{MW:()=>a,bW:()=>c,nZ:()=>l});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 l(e){return"element"===e?o.value:r.value}function c(){return n("element",!0)}},52776:(e,t,i)=>{"use strict";i.d(t,{vV:()=>u,jQ:()=>h,N4:()=>c,M4:()=>g,vr:()=>d});var s=i(8597),n=i(72962),r=i(31295),o=i(5662),a=i(78209);const l=s.$;class c 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,l("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=s.BC(this.actionContainer,l("a.action")),this.action.setAttribute("role","button"),t.iconClass&&s.BC(this.action,l(`span.icon.${t.iconClass}`));s.BC(this.action,l("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))})))}}},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),l=i(42904),c=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,l.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 l=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(i?.iconPath){let e;l&&s.sb(l)?e=l:(e=s.$(".monaco-icon-label-iconpath"),this.domNode.element.prepend(e)),e.style.backgroundImage=s.Tf(i?.iconPath)}else l&&l.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,c.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],l=r?r[o]:void 0,c=t?.domId&&`${t?.domId}_${o}`,h=s.$("a.label-name",{id:c,"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,l,void 0,t?.labelEscapeNewLines),o<e.length-1&&s.BC(h,s.$("span.label-separator",void 0,i))}}}}},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}},91581:(e,t,i)=>{"use strict";i.d(t,{mJ:()=>b,x8:()=>v});var s=i(8597),n=i(56245),r=i(27661),o=i(11799),a=i(11007),l=i(48196),c=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,l.i)().setupManagedHover((0,c.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 b 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()}}},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),l=i(10146),c=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,c.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,l.aI)(e.firstPart,t.firstPart)&&(0,l.aI)(e.chordPart,t.chordPart)}}},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),l=i(25890),c=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),b=i(1592),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};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 L{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class R{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 c.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},l=g.Q.intersect(a,s),c=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(l,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 b=c.map((e=>f(e,p))),E=[{start:e,end:e+i.length},...b].map((e=>g.Q.intersect(m,e))).reverse();for(const u of E)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(),l=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 l)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 L(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 R}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,l.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,l.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,c.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,c.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,b.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 l=!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,l=l||0!==t}if(!l){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 l=g.Q.relativeComplement(a,s).reverse();for(const e of l)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()}}E([h.B],x.prototype,"onMouseClick",null),E([h.B],x.prototype,"onMouseDblClick",null),E([h.B],x.prototype,"onMouseMiddleClick",null),E([h.B],x.prototype,"onMouseDown",null),E([h.B],x.prototype,"onMouseOver",null),E([h.B],x.prototype,"onMouseOut",null),E([h.B],x.prototype,"onContextMenu",null),E([h.B],x.prototype,"onTouchStart",null),E([h.B],x.prototype,"onTap",null)},93090:(e,t,i)=>{"use strict";i.d(t,{hb:()=>K,B8:()=>ee,MH:()=>j,_C:()=>b,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 l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((s=>s.splice(e,t,i)))}}var c=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 b,E,S=i(66700),y=i(47358),w=i(31308),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};class R{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 R(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,c.El)(this.sortedIndexes,e,Q)>=0}dispose(){(0,m.AS)(this._onChange)}}L([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,c.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()}}L([u.B],U.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(b||(b={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(E||(E={}));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=E.Idle,this.mode=b.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??b.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===b.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=E.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,s=this.state===E.Idle?1:0;this.state=E.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,c.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 l=$(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(l,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 c={...r,dnd:r.dnd&&new J(this,r.dnd)};if(this.view=this.createListView(t,i,n,c),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 l([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,c.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()}}L([u.B],ee.prototype,"onDidChangeFocus",null),L([u.B],ee.prototype,"onDidChangeSelection",null),L([u.B],ee.prototype,"onContextMenu",null),L([u.B],ee.prototype,"onKeyDown",null),L([u.B],ee.prototype,"onDidFocus",null),L([u.B],ee.prototype,"onDidBlur",null)},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}}},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),l=i(41234),c=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 l.vl;const p=new l.vl;class m{constructor(e){this.el=e,this.disposables=new c.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 c.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 c.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,c.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,c.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 l.vl),this._onDidStart=this._register(new l.vl),this._onDidChange=this._register(new l.vl),this._onDidReset=this._register(new l.vl),this._onDidEnd=this._register(new l.vl),this.orthogonalStartSashDisposables=this._register(new c.Cm),this.orthogonalStartDragHandleDisposables=this._register(new c.Cm),this.orthogonalEndSashDisposables=this._register(new c.Cm),this.orthogonalEndDragHandleDisposables=this._register(new c.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 b=this._register(new n.f(this.el,r.B.Tap)).event;let E;this._register(b((e=>{if(E)return clearTimeout(E),E=void 0,void this.onPointerDoublePress(e);clearTimeout(E),E=setTimeout((()=>E=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,l={startX:r,currentX:r,startY:o,currentY:o,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);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 c.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()}}},31295:(e,t,i)=>{"use strict";i.d(t,{MU:()=>x,QC:()=>w,Se:()=>R,oO:()=>T});var s=i(60413),n=i(8597),r=i(55275),o=i(47358),a=i(34072),l=i(17390),c=i(90766),h=i(25689);const d=11;class u extends l.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 c.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 c.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 l.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 b 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 E=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),l=Math.max(Math.min(n,o),1),c=Math.max(s,r),h=Math.max(n,o);c%a===0&&h%l===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}class L extends l.x{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new E.vl),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new E.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 b(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 c.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 R extends L{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 L{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 L{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})}}},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 l=Math.round(Math.max(20,Math.floor(i*o/s))),c=(o-l)/(s-i),h=n*c;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,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)}}},35151:(e,t,i)=>{"use strict";i.d(t,{X:()=>C,U:()=>b});var s=i(8597),n=i(56245),r=i(92403),o=i(31295),a=i(25890),l=i(47661),c=i(41234),h=i(5662),d=i(1592),u=i(49353),g=i(631);const p={separatorBorder:l.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 b 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 c.vl),this._onDidSashReset=this._register(new c.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,l=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(n===this.sashItems.length-1){const e=this.viewItems[n];l=(e.minimumSize-e.size)/2,c=(e.maximumSize-e.size)/2}else{const e=this.viewItems[n+1];l=(e.size-e.maximumSize)/2,c=(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),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),c=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(c,l),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:l,maxDelta:c,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:l}=this.sashDragState;this.sashDragState.current=e;const c=e-i,h=this.resize(t,c,s,void 0,void 0,r,o,a,l);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 l=e.onDidChange((e=>this.onViewChange(p,e))),d=(0,h.s)((()=>o.remove())),u=(0,h.qE)(l,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=c.Jh.map(t.onDidStart,s)(this.onSashStart,this),o=c.Jh.map(t.onDidChange,s)(this.onSashChange,this),l=c.Jh.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),d=l(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,l,c){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),b=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),E=Math.max(_,b,r),S=Math.min(C,v,o);let y=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;y=i!==e.visible,e.setVisible(i,l.size)}if(!y&&c){const e=this.viewItems[c.index],i=t<c.limitDelta;y=i!==e.visible,e.setVisible(i,c.size)}if(y)return this.resize(e,t,i,s,n,r,o);for(let a=0,w=t=(0,d.qE)(t,E,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 l=0;l<this.sashItems.length;l++){const{sash:e}=this.sashItems[l];o+=this.viewItems[l].size;const s=!(t[l]&&r[l+1]),c=!(i[l]&&n[l+1]);if(s&&c){const i=(0,a.y1)(l,-1),s=(0,a.y1)(l+1,this.viewItems.length),r=this.findFirstSnapIndex(i),c=this.findFirstSnapIndex(s),h="number"===typeof r&&!this.viewItems[r].visible,d="number"===typeof c&&!this.viewItems[c].visible;h&&n[l]&&(o>0||this.startSnappingEnabled)?e.state=1:d&&t[l]&&(o<this._contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=s&&!c?1:!s&&c?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:()=>c,F:()=>l});var s=i(17390),n=i(25689),r=i(41234),o=i(42904),a=i(48196);const l={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class c 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))}}},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),l=i(93090),c=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),b=i(1592),E=i(631),S=i(78209),y=(i(42904),i(31308)),w=i(11007);class L extends a.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function R(e){return e instanceof a.ur?new L(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?.(R(e),t)}onDragOver(e,t,i,s,n,r=!0){const o=this.dnd.onDragOver(R(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),l=o&&i.getListIndex(o);return this.onDragOver(e,a,l,s,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),h=l.getListIndex(c),d=l.getListRenderCount(c);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(R(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,b.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),l=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&l.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),this.renderedIndentGuides.add(a,l),i.add((0,C.s)((()=>this.renderedIndentGuides.delete(a,l)))),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)}}c.l;c.l;o.x8,c.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 l=e.node;l===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(l=new Proxy(e.node,{}));const c=a.renderTemplate(n);a.renderElement(l,e.startIndex,c,e.height);const h=(0,C.s)((()=>{r.dispose(),a.disposeElement(l,e.startIndex,c,e.height),a.disposeTemplate(c),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,l.Es)(t)&&!(0,l.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,l.Es)(t)||(0,l.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,b.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,l.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 l.MH{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,l.Bm)(e.browserEvent.target)||(0,l.B6)(e.browserEvent.target)||(0,l.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,l.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,l.b$)(e.browserEvent.target)||(0,l.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,l.Es)(t)||(0,l.xu)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,l.Es)(t)||(0,l.xu)(t)||super.onContextMenu(e)}}class Y extends l.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 c=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),c.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),c.input=this.model.onDidChangeCollapseState;const b=_.Jh.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);b((()=>null),null,this.disposables);const E=this.disposables.add(new _.vl),S=this.disposables.add(new g.ve(0));if(this.disposables.add(_.Jh.any(b,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);E.fire([...e.values()])}))}))),h.input=E.event,!1!==a.keyboardSupport){const e=_.Jh.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,l.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,E.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()}}},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),l=i(41234),c=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 l.at,this._onDidChangeCollapseState=new l.vl,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new l.vl,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new l.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=c.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=c.f.empty(),n,r=n.diffDepth??0){const{parentNode:o}=this.getParentNodeWithListIndex(t);if(!o.lastDiffIds)return this.spliceSimple(t,i,s,n);const l=[...s],h=t[t.length-1],d=new a.uP({getElements:()=>o.lastDiffIds},{getElements:()=>[...o.children.slice(0,h),...l,...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,l,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,l[i].children,n,r-1)};let p=Math.min(o.children.length,h+i),m=l.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,c.f.slice(l,m,m+a.modifiedLength),n);g(p,m,p)}spliceSimple(e,t,i=c.f.empty(),{onDidCreateNode:s,onDidDeleteNode:r,diffIdentityProvider:o}){const{parentNode:a,listIndex:l,revealed:h,visible:d}=this.getParentNodeWithListIndex(e),u=[],g=c.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 b=0;for(const n of C)n.visible&&b++;if(0!==b)for(let n=p+f.length;n<a.children.length;n++){const e=a.children[n];e.visible&&(e.visibleChildIndex-=b)}if(a.visibleChildrenCount+=_-b,h&&d){const e=C.reduce(((e,t)=>e+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(l,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 E=a;for(;E;){if(2===E.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}E=E.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 l=e.children||c.f.empty(),h=s&&0!==a&&!o.collapsed;let d=0,u=1;for(const c of l){const e=this.createTreeNode(c,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}}},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}}},17390:(e,t,i)=>{"use strict";i.d(t,{x:()=>l});var s=i(8597),n=i(72962),r=i(47358),o=i(25154),a=i(5662);class l 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)}}},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},36921:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>h,LN:()=>a,YH:()=>c,ih:()=>d,rc:()=>o,wv:()=>l});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 l{constructor(){this.id=l.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 l,...i]:i);return t}static{this.ID="vs.actions.separator"}async run(){}}class c{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)}}},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 l(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?l(e,n,i):e<n.length+o.length?o[0]:l(e-(n.length+o.length),r,i)}function c(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 b(e,t,i){const s=e.slice(0,t),n=e.slice(t);return s.concat(i,n)}function E(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 L(e,t,i,s){const n=R(e,t);let r=e.splice(n,i);return void 0===r&&(r=[]),function(e,t,i){const s=R(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 R(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:()=>c,Ct:()=>m,E4:()=>y,EI:()=>f,El:()=>a,Fy:()=>v,Hw:()=>I,RT:()=>s,SK:()=>p,SO:()=>l,TS:()=>N,U9:()=>A,UH:()=>o,V4:()=>L,VE:()=>x,Yc:()=>g,_A:()=>E,_j:()=>w,aI:()=>r,bS:()=>n,c1:()=>D,dM:()=>_,j3:()=>O,kj:()=>u,n:()=>h,nH:()=>k,nK:()=>b,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)}}},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:()=>c,TM:()=>u,Uk:()=>s,XP:()=>o,hw:()=>a,iM:()=>r,kh:()=>d,lx:()=>n,oH:()=>g,ot:()=>h,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.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 c(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 c(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}}},66782:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>a,V7:()=>o,Xo:()=>l,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 l(e,t){let i=0;for(;i<e.length-1;){if(!t(e[i],e[i+1]))return!1;i++}return!0}},90766:(e,t,i)=>{"use strict";i.d(t,{$1:()=>_,$6:()=>E,A0:()=>y,AE:()=>T,EQ:()=>f,F6:()=>w,HC:()=>R,PK:()=>d,Qg:()=>c,SS:()=>h,Th:()=>p,Zv:()=>L,b7:()=>S,bI:()=>k,pc:()=>v,uC:()=>b,vb:()=>C,ve:()=>g,wR:()=>m});var s=i(18447),n=i(64383),r=i(41234),o=i(5662),a=i(98067),l=i(44759);function c(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===l.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 b{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 E,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))}}},E=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 L{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 R;!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)}}))}}(R||(R={}));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)}}))}},81674:(e,t,i)=>{"use strict";i.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>h,bb:()=>c,gN:()=>l,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 l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function c(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}},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}}},18447:(e,t,i)=>{"use strict";i.d(t,{Qi:()=>a,XO:()=>r,bs:()=>l});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 l(e){const t=new a;return e.add({dispose(){t.cancel()}}),t.token}},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)}}},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}},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})},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 l=0,c=0;const h=(a+o)/2,d=o-a;if(d>0){switch(c=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case t:l=(i-s)/d+(i<s?6:0);break;case i:l=(s-t)/d+2;break;case s:l=(t-i)/d+4}l*=60,l=Math.round(l)}return new r(l,c,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,l,c;if(0===i)a=l=c=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),l=r._hue2rgb(n,e,t),c=r._hue2rgb(n,e,t-1/3)}return new n(Math.round(255*a),Math.round(255*l),Math.round(255*c),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 l;return l=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*l),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)),l=s-o;let[c,h,d]=[0,0,0];return t<60?(c=o,h=a):t<120?(c=a,h=o):t<180?(h=o,d=a):t<240?(h=a,d=o):t<300?(c=a,d=o):t<=360&&(c=o,d=a),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),d=Math.round(255*(d+l)),new n(c,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={}))},17799:(e,t,i)=>{"use strict";i.d(t,{VX:()=>a,Vq:()=>l,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 l{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(c(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 c(e)}}function c(e){return e.toLowerCase()}function h(e,t){return d(c(e),t.map(c))}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("#")))})},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})},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 l{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 c{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,l]=h._getElements(t);this._hasStrings=r&&l,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],l=[0],c=this.ComputeRecursionPoint(e,t,i,n,o,l,r),h=o[0],d=l[0];if(null!==c)return c;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,l,h,d,u,g,p,m,f,_,v,C){let b=null,E=null,S=new c,y=t,w=i,L=p[0]-_[0]-n,R=-1073741824,T=this.m_forwardHistory.length-1;do{const t=L+e;t===y||t<w&&h[t-1]<h[t+1]?(m=(u=h[t+1])-L-n,u<R&&S.MarkNextChange(),R=u,S.AddModifiedElement(u+1,m),L=t+1-e):(m=(u=h[t-1]+1)-L-n,u<R&&S.MarkNextChange(),R=u-1,S.AddOriginalElement(u,m+1),L=t-1-e),T>=0&&(e=(h=this.m_forwardHistory[T])[0],y=1,w=h.length-1)}while(--T>=-1);if(b=S.getReverseChanges(),C[0]){let e=p[0]+1,t=_[0]+1;if(null!==b&&b.length>0){const i=b[b.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}E=[new s(e,g-e+1,t,f-t+1)]}else{S=new c,y=o,w=a,L=p[0]-_[0]-l,R=1073741824,T=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=L+r;e===y||e<w&&d[e-1]>=d[e+1]?(m=(u=d[e+1]-1)-L-l,u>R&&S.MarkNextChange(),R=u+1,S.AddOriginalElement(u+1,m+1),L=e+1-r):(m=(u=d[e-1])-L-l,u>R&&S.MarkNextChange(),R=u,S.AddModifiedElement(u+1,m+1),L=e-1-r),T>=0&&(r=(d=this.m_reverseHistory[T])[0],y=1,w=d.length-1)}while(--T>=-1);E=S.getChanges()}return this.ConcatenateChanges(b,E)}ComputeRecursionPoint(e,t,i,n,r,o,a){let c=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,b=t-e,E=e-i,S=t-n,y=(b-C)%2===0;_[C]=e,v[b]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,L=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){c=e===d||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=c-(e-C)-E;const i=c;for(;c<t&&h<n&&this.ElementsAreEqual(c+1,h+1);)c++,h++;if(_[e]=c,c+h>m+L&&(m=c,L=h),!y&&Math.abs(e-b)<=w-1&&c>=v[e])return r[0]=c,o[0]=h,i<=v[e]&&w<=1448?this.WALKTRACE(C,d,u,E,b,g,p,S,_,v,c,t,r,h,n,o,y,a):null}const R=(m-e+(L-i)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,R))return a[0]=!0,r[0]=m,o[0]=L,R>0&&w<=1448?this.WALKTRACE(C,d,u,E,b,g,p,S,_,v,c,t,r,h,n,o,y,a):(e++,i++,[new s(e,t-e+1,i,n-i+1)]);g=this.ClipDiagonalBound(b-w,w,b,f),p=this.ClipDiagonalBound(b+w,w,b,f);for(let s=g;s<=p;s+=2){c=s===g||s<p&&v[s-1]>=v[s+1]?v[s+1]-1:v[s-1],h=c-(s-b)-S;const l=c;for(;c>e&&h>i&&this.ElementsAreEqual(c,h);)c--,h--;if(v[s]=c,y&&Math.abs(s-C)<=w&&c<=_[s])return r[0]=c,o[0]=h,l>=_[s]&&w<=1448?this.WALKTRACE(C,d,u,E,b,g,p,S,_,v,c,t,r,h,n,o,y,a):null}if(w<=1447){let e=new Int32Array(u-d+2);e[0]=C-d+1,l.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=b-g+1,l.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(C,d,u,E,b,g,p,S,_,v,c,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,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,c=i.modifiedStart-e;if(t<s||c<n)break;if(r&&!this.OriginalElementsAreEqual(t,t+i.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(c,c+i.modifiedLength))break;const h=(t===s&&c===n?5:0)+this._boundaryScore(t,i.originalLength,c,i.modifiedLength);h>l&&(l=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[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,l=i.modifiedStart,c=s.modifiedStart+s.modifiedLength,h=c-l;if(n<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(r,a,l,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=c-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,l=0,c=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,l=h,c=e)}return a>0?[l,c]: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 l.Copy(e,0,s,0,e.length-1),s[e.length-1]=i[0],l.Copy(t,1,s,e.length,t.length-1),s}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.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}}},51241:(e,t,i)=>{"use strict";i.d(t,{KC:()=>a,S3:()=>r,dB:()=>l,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 l(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(!l(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(!l(i[e],s[e]))return!1}return!0}return!1}new WeakMap},70125:(e,t,i)=>{"use strict";i.d(t,{r:()=>c});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}",l(e),a(e.stack)||a(e.stacktrace)):l(e)}function a(e){return Array.isArray(e)?e.join("\n"):e}function l(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 c(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=c(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.")}},64383:(e,t,i)=>{"use strict";i.d(t,{AL:()=>c,D7:()=>m,EM:()=>g,MB:()=>l,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){l(e)||s.onUnexpectedError(e)}function r(e){l(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 l(e){return e instanceof c||e instanceof Error&&e.name===a&&e.message===a}class c 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)}}},41234:(e,t,i)=>{"use strict";i.d(t,{Jh:()=>l,QT:()=>E,Qy:()=>_,Wj:()=>w,_B:()=>S,at:()=>y,fV:()=>C,uI:()=>b,vl:()=>f});var s=i(64383),n=i(6921),r=i(5662),o=i(58925),a=i(78381);var l;!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 l,c,h,d,u=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{u++,c=i(c,e),n&&!h&&(p.fire(c),c=void 0),d=()=>{const e=c;c=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,l.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 c);return e((function(e){const t=r.evaluate(e);t!==l&&i.call(s,t)}),void 0,n)}};const l=Symbol("HaltChainable");class c{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:l)),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:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)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 l={dispose(){e.removeObserver(a)}};return s instanceof r.Cm?s.add(l):Array.isArray(s)&&s.push(l),l}}}(l||(l={}));class c{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}_${c._idPool++}`,c.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 c(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 b 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 E 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=l.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()}}},79326:(e,t,i)=>{"use strict";i.d(t,{No:()=>u,TH:()=>a,Zn:()=>c,_1:()=>h,kb:()=>l});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 l(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function c(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))}},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,l,4352),r>0)return o.subarray(0,r);if(a(e,c,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<l.length?a(s,l,0):4352+s-12593<d.length&&a(4352+s,d,12593),n<c.length?a(n,c,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 l=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),c=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 b(e){return 65<=e&&e<=90}function E(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 L(e,t){return e===t||w(e)&&w(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>y.add(e.charCodeAt(0))));const R=new Map;function T(e){if(R.has(e))return R.get(e);let t;const i=n(e);return i&&(t=i),R.set(e,t),t}function x(e){return C(e)||b(e)||E(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(b(t)||E(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),b(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),b(r)&&t++,C(r)&&i++,x(r)&&s++,E(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(!L(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(!L(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,l=s.length>z?z:s.length;if(i>=a||r>=l||a-i>l-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,l,!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,l,i,r,t,n);let c=1,h=1,d=i,u=r;const g=[!1];for(c=1,d=i;d<a;c++,d++){const o=K[d],p=Y[d],m=d+1<a?Y[d+1]:l;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,l,r,0===q[c-1][h-1],g));let f=0;a!==Number.MAX_SAFE_INTEGER&&(m=!0,f=a+$[c-1][h-1]);const _=u>o,v=_?$[c][h-1]+(q[c][h-1]>0?-5:0):0,C=u>o+1&&q[c][h-1]>0,b=C?$[c][h-2]+(q[c][h-2]>0?-5:0):0;if(C&&(!_||b>=v)&&(!m||b>=f))$[c][h]=b,Q[c][h]=3,q[c][h]=0;else if(_&&(!m||v>=f))$[c][h]=v,Q[c][h]=2,q[c][h]=0;else{if(!m)throw new Error("not possible");$[c][h]=f,Q[c][h]=1,q[c][h]=q[c-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;c--,h--;const p=[$[c][h],r];let m=0,f=0;for(;c>=1;){let e=h;do{const t=Q[c][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+c-1]===n[r+h-1]&&!te(e+r-1,s,n)&&m+1>q[c][e]&&(e=h),e===h?m++:m=1,f||(f=e),c--,h=e-1,p.push(h)}l-r===a&&o.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function re(e,t,i,s,n,r,o,a,l,c,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>l&&(d-=u?3:5):d+=c?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 l=ne(e,t,i,s,n,r,a);if(l&&!o)return l;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,(!l||e[0]>l[0])&&(l=e))}}}return l}(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}},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})},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),l=i(91508);const c="**",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===c)))t=".*";else{let e=!1;i.forEach(((s,n)=>{if(s===c){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,l.bm)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===h?"":(0,l.bm)(i):"^",a+=e}n<i.length-1&&(i[n+1]!==c||n+2<i.length)&&(t+=d)}e=s===c}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,C=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,b=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,E=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new r.qK(1e4),w=function(){return!1},L=function(){return null};function R(e,t){if(!e)return L;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?b:C).test(i)?function(e,t){const i=I(e.slice(1,-1).split(",").map((e=>R(e,t))).filter((e=>e!==L)),e),s=i.length;if(!s)return L;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=E.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 L}}(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,l.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 l;return l=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},l.allPaths=[(i?"*/":"./")+e],l}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=R(e,t);if(i===L)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 L;const n=R(e,i);if(n===L)return L;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 l=a(i.replace("$(basename)",(()=>o)));return(0,s.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return n}(i,e[i],t))).filter((e=>e!==L))),n=i.length;if(!n)return L;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 l=0,c=i.length;l<c;l++){const c=i[l];c.requiresSiblings&&n&&(t||(t=(0,o.P8)(e)),r||(r=t.substr(0,t.length-(0,o.LC)(e).length)));const h=c(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 l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(r.allPaths=l);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}},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 l(e,t,i=32){const s=i-t;return(e<<t|(~((1<<s)-1)&e)>>>s)>>>0}function c(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 l=n;if(s.pc(n)){if(!(r+1<t)){a=n;break}{const t=e.charCodeAt(r+1);s.LJ(t)?(r++,l=s.z_(n,t)):l=65533}}else s.LJ(n)&&(l=65533);if(o=this._push(i,o,l),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,c(this._buff,this._buffLen),this._buffLen>56&&(this._step(),c(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 l=0;l<64;l+=4)e.setUint32(l,t.getUint32(l,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,l(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,c=this._h3,h=this._h4;for(let d=0;d<80;d++)d<20?(i=o&a|~o&c,s=1518500249):d<40?(i=o^a^c,s=1859775393):d<60?(i=o&a|o&c|a&c,s=2400959708):(i=o^a^c,s=3395469782),n=l(r,5)+i+h+s+e.getUint32(4*d,!1)&4294967295,h=c,c=a,a=l(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+c&4294967295,this._h4=this._h4+h&4294967295}}},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))}}},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}}))},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}},16980:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>l,VS:()=>h,_W:()=>g,it:()=>c,nI:()=>p,nK:()=>d,oO:()=>u});var s=i(64383),n=i(37882),r=i(89403),o=i(91508),a=i(79400);class l{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 c(e){return h(e)?!e.value:!Array.isArray(e)||e.every(c)}function h(e){return e instanceof l||!(!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}}},37882:(e,t,i)=>{"use strict";i.d(t,{R$:()=>p,_k:()=>f,m2:()=>c,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"),l=new RegExp(`(\\\\)?${a.source}`,"g");function c(e){return e.replace(l,((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," "),l=r.length-a.length,c=(0,s.yr)(e,a,i);if(c)for(const s of c){const e=o[s.start+l]+l;s.start+=e,s.end+=e}return c}},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#")},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()}}},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={}))},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),l={},c=[],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,b,E]=p;if(s[t]||(s[t]=!0,c[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,b||_),o.define(f,E||b||_)}v&&(a[v]=f),C&&(l[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={}))},83619:(e,t,i)=>{"use strict";i.d(t,{G$:()=>l,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]=c(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:"+"}),l=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 c(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)}},42539:(e,t,i)=>{"use strict";i.d(t,{FW:()=>l,Zv:()=>n,dG:()=>o,z5:()=>c});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 l{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 c{}},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}}},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:()=>c,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 l(e,t){r?.setParent(e,t)}function c(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 l(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),l(e,null))}}class m{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,o(this),l(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&&l(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]()}}},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}}},74320:(e,t,i)=>{"use strict";var s,n;i.d(t,{cO:()=>h,db:()=>d,fT:()=>o,qK:()=>c});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 l 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 c extends l{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}}},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=l(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function l(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]=l(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=l(e[i],t+1))}return e}},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"})},36456:(e,t,i)=>{"use strict";i.d(t,{Ez:()=>d,SJ:()=>p,fV:()=>h,ny:()=>s,v$:()=>c,zl:()=>g});var s,n=i(64383),r=i(98067),o=i(91508),a=i(79400),l=i(74027);function c(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=>c(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 l.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],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:r.HZ?this._preferredWebSchema:s.vscodeRemoteResource,authority:`${i}:${o}`,path:this._remoteResourcesPath,query:c})}};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=l.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={}))},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}}},10146:(e,t,i)=>{"use strict";i.d(t,{Go:()=>n,PI:()=>a,V0:()=>d,aI:()=>h,co:()=>c,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 l(e,t,new Set)}function l(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(l(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]=l(e[n],t,i));return i.delete(e),s}return e}function c(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])?c(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}},31308:(e,t,i)=>{"use strict";i.d(t,{BK:()=>_,fm:()=>c,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),l=i(94958);function c(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,l.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,l.tZ)()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||(0,l.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}(c||(c={}));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 l=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),h=c((e=>{const{isFinished:t,error:i,state:s}=l.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 b=i(51241);class E 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 E(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??b.nx):new s.Lj(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??b.nx)}},49154:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>h,FB:()=>d,FY:()=>b,Lj:()=>E,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,l,c;function h(e){o=e}function d(e){a=e}function u(e){l=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 l({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 l({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(c)e(c);else{const t=new C(e,void 0);c=t;try{e(t)}finally{t.finish(),c=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 b(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 E(i,t,s.nx)}class E 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 E{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}}},22311:(e,t,i)=>{"use strict";i.d(t,{nA:()=>s,qQ:()=>l});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 c=t.debugNameSource;if(void 0!==c){if("function"!==typeof c)return s+c;if(n=c(),void 0!==n)return s+n}const h=t.referenceFn;if(void 0!==h&&(n=l(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 l(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),s=i?i[1]:void 0;return s?.trim()}},87958:(e,t,i)=>{"use strict";i.d(t,{C:()=>d,a0:()=>p,dQ:()=>h,nb:()=>u,rm:()=>g,un:()=>c});var s=i(66782),n=i(51241),r=i(5662),o=i(49154),a=i(22311),l=i(94958);function c(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,l.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,l.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}}},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(" "),c(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),c(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),c(h(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([l("observable value changed"),c(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return c(" (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([l("derived recomputed"),c(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([l("observable from event triggered"),c(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([l("autorun"),c(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([l("transaction"),c(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return c(e,{color:"black"})}function l(e){return c(function(e,t){for(;e.length<t;)e+=" ";return e}(`${e}: `,10),{color:"black",bold:!0})}function c(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}},13850:(e,t,i)=>{"use strict";i.d(t,{OI:()=>v,Rl:()=>E,Yd:()=>f,ZX:()=>b,eP:()=>u,lk:()=>c,t:()=>y,y0:()=>d,yQ:()=>p});i(41234);var s=i(5662),n=i(49154),r=i(22311),o=i(87958),a=i(94958),l=i(51241);function c(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),l.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??l.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 b(e,t){let i;return(0,o.C)({owner:e,debugReferenceFn:t},(e=>(i=t(e,i),i)))}function E(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 b(e,((e,i)=>i??t(e)))}},74027:(e,t,i)=>{"use strict";i.d(t,{IN:()=>f,LC:()=>L,P8:()=>w,S8:()=>C,SA:()=>v,V8:()=>S,Vn:()=>R,fj:()=>b,hd:()=>E,pD:()=>y});var s=i(59911);const n=46,r=47,o=92,a=58;class l 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 c(e,t){if("string"!==typeof e)throw new l(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,l=-1,c=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(l===d-1||1===c);else if(2===c){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)),l=d,c=0;continue}if(0!==o.length){o="",a=0,l=d,c=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",a=2)}else o.length>0?o+=`${i}${e.slice(l+1,d)}`:o=e.slice(l+1,d),a=d-l-1;l=d,c=0}else h===n&&-1!==c?++c:c=-1}return o}function m(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new l(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 l;if(r>=0){if(l=e[r],c(l,`paths[${r}]`),0===l.length)continue}else 0===t.length?l=s.bJ():(l={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===l||l.slice(0,2).toLowerCase()!==t.toLowerCase()&&l.charCodeAt(2)===o)&&(l=`${t}\\`));const h=l.length;let u=0,p="",m=!1;const f=l.charCodeAt(0);if(1===h)d(f)&&(u=1,m=!0);else if(d(f))if(m=!0,d(l.charCodeAt(1))){let e=2,t=e;for(;e<h&&!d(l.charCodeAt(e));)e++;if(e<h&&e!==t){const i=l.slice(t,e);for(t=e;e<h&&d(l.charCodeAt(e));)e++;if(e<h&&e!==t){for(t=e;e<h&&!d(l.charCodeAt(e));)e++;e!==h&&e===t||(p=`\\\\${i}\\${l.slice(t,e)}`,u=e)}}}else u=1;else g(f)&&l.charCodeAt(1)===a&&(p=l.slice(0,2),u=2,h>2&&d(l.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=`${l.slice(u)}\\${i}`,n=m,m&&t.length>0)break}return i=p(i,!n,"\\",d),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){c(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){c(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];c(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(c(e,"from"),c(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 l=0;for(;l<t.length&&t.charCodeAt(l)===o;)l++;let h=t.length;for(;h-1>l&&t.charCodeAt(h-1)===o;)h--;const d=h-l,u=a<d?a:d;let g=-1,p=0;for(;p<u;p++){const i=e.charCodeAt(n+p);if(i!==t.charCodeAt(l+p))break;i===o&&(g=p)}if(p!==u){if(-1===g)return s}else{if(d>u){if(t.charCodeAt(l+p)===o)return s.slice(l+p+1);if(2===p)return s.slice(l+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 l+=g,m.length>0?`${m}${s.slice(l,h)}`:(s.charCodeAt(l)===o&&++l,s.slice(l,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){c(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&&c(t,"suffix"),c(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 l=e.charCodeAt(i);if(d(l)){if(!r){s=i+1;break}}else-1===a&&(r=!1,a=i+1),o>=0&&(l===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){c(e,"path");let t=0,i=-1,s=0,r=-1,o=!0,l=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!==l&&(l=1):-1!==i&&(l=-1)}return-1===i||-1===r||0===l||1===l&&i===r-1&&i===s+1?"":e.slice(i,r)},format:m.bind(null,"\\"),parse(e){c(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,l=s,h=-1,u=!0,p=e.length-1,m=0;for(;p>=s;--p)if(r=e.charCodeAt(p),d(r)){if(!u){l=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===l+1?t.base=t.name=e.slice(l,h):(t.name=e.slice(l,o),t.base=e.slice(l,h),t.ext=e.slice(o,h))),t.dir=l>0&&l!==s?e.slice(0,l-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]:_();c(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(c(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=>(c(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];c(s,"path"),s.length>0&&(void 0===t?t=s:t+=`/${s}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(c(e,"from"),c(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,l=0;for(;l<o;l++){const i=e.charCodeAt(1+l);if(i!==t.charCodeAt(1+l))break;i===r&&(a=l)}if(l===o)if(n>o){if(t.charCodeAt(1+l)===r)return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else s>o&&(e.charCodeAt(1+l)===r?a=l:0===l&&(a=0));let h="";for(l=1+a+1;l<=i;++l)l!==i&&e.charCodeAt(l)!==r||(h+=0===h.length?"..":"/..");return`${h}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(c(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&&c(t,"ext"),c(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,l=-1;for(i=e.length-1;i>=0;--i){const c=e.charCodeAt(i);if(c===r){if(!o){s=i+1;break}}else-1===l&&(o=!1,l=i+1),a>=0&&(c===t.charCodeAt(a)?-1===--a&&(n=i):(a=-1,n=l))}return s===n?n=l:-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){c(e,"path");let t=-1,i=0,s=-1,o=!0,a=0;for(let l=e.length-1;l>=0;--l){const c=e.charCodeAt(l);if(c!==r)-1===s&&(o=!1,s=l+1),c===n?-1===t?t=l:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){i=l+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){c(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,l=-1,h=!0,d=e.length-1,u=0;for(;d>=s;--d){const t=e.charCodeAt(d);if(t!==r)-1===l&&(h=!1,l=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!==l){const s=0===a&&i?1:a;-1===o||0===u||1===u&&o===l-1&&o===a+1?t.base=t.name=e.slice(s,l):(t.name=e.slice(s,o),t.base=e.slice(s,l),t.ext=e.slice(o,l))}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,b=h?f.join:v.join,E=h?f.resolve:v.resolve,S=h?f.relative:v.relative,y=h?f.dirname:v.dirname,w=h?f.basename:v.basename,L=h?f.extname:v.extname,R=h?f.sep:v.sep},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:()=>L,un:()=>N,zx:()=>R});var s=i(78209);const n="en";let r,o,a=!1,l=!1,c=!1,h=!1,d=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=n,v=null,C=null;const b=globalThis;let E;"undefined"!==typeof b.vscode&&"undefined"!==typeof b.vscode.process?E=b.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(E=process);const S="string"===typeof E?.versions?.electron,y=S&&"renderer"===E?.type;if("object"===typeof E){a="win32"===E.platform,l="darwin"===E.platform,c="linux"===E.platform,h=c&&!!E.env.SNAP&&!!E.env.SNAP_REVISION,g=S,m=!!E.env.CI||!!E.env.BUILD_ARTIFACTSTAGINGDIRECTORY,r=n,_=n;const e=E.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,l=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=o.indexOf("Linux")>=0,f=o?.indexOf("Mobi")>=0,u=!0,_=s.i8()||n,r=navigator.language.toLowerCase(),v=r);let w=0;l?w=1:a?w=3:c&&(w=2);const L=a,R=l,T=c,x=d,k=u,A=u&&"function"===typeof b.importScripts?b.origin:void 0,N=p,I=f,O=o,D=_,M="function"===typeof b.postMessage&&!b.importScripts,P=(()=>{if(M){const e=[];b.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}),b.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})(),F=l||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)},59911:(e,t,i)=>{"use strict";i.d(t,{_K:()=>a,bJ:()=>o,iD:()=>l});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,l=n.platform},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={}))},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:()=>b,pD:()=>f,su:()=>c,uJ:()=>_});var s=i(79326),n=i(36456),r=i(74027),o=i(98067),a=i(91508),l=i(79400);function c(e){return(0,l.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(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(E(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 l.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=l.r.file(r.pD(c(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?l.r.file(r.S8(c(e))).path:r.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!E(e.authority,t.authority))return;if(e.scheme===n.ny.file){const i=r.V8(c(e),c(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=l.r.file(r.hd(c(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=c(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=c(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),b=d.resolvePath.bind(d),E=(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={}))},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 c(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=c.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 l(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class c{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=l(e,o),n=l(a,t),r=.33,function(e){return e<r?s(e/r):n((e-r)/(1-r))}}var s,n,r;return l(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 c.start(e,t,i)}static start(e,t,i){i+=10;const s=Date.now()-10;return new c(e,t,s,i)}}},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},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}}},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:()=>b,LJ:()=>M,LU:()=>Z,Lv:()=>x,MV:()=>W,NB:()=>u,OS:()=>f,Q_:()=>A,Qp:()=>I,S8:()=>re,Ss:()=>Q,UD:()=>y,UU:()=>E,Vi:()=>O,W1:()=>L,Wd:()=>se,Wv:()=>k,Z5:()=>F,_J:()=>Y,aC:()=>K,bm:()=>h,eY:()=>_,en:()=>C,ih:()=>c,iy:()=>B,jy:()=>l,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:()=>R});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 l(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function c(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 b(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 E(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 L(e,t){return R(e,t,0,e.length,0,t.length)}function R(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 l=o-a;if(0!==l)return l}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===R(e,t)}function N(e,t){const i=t.length;return!(t.length>e.length)&&0===R(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()}}},44759:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=Symbol("MicrotaskDelay")},4853:(e,t,i)=>{"use strict";i.d(t,{cB:()=>c});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 l{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 c{static forUris(e=()=>!1,t=()=>!1){return new c(new a(e,t))}static forStrings(){return new c(new n)}static forConfigKeys(){return new c(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 l,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 l,s.left.segment=i.value()),n.push([-1,s]),s=s.left;else if(e<0)s.right||(s.right=new l,s.right.segment=i.value()),n.push([1,s]),s=s.right;else{if(!i.hasNext())break;i.next(),s.mid||(s.mid=new l,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))}}},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={}))},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 l(e){return!0===e||!1===e}function c(e){return"undefined"===typeof e}function h(e){return!d(e)}function d(e){return c(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:()=>l,O9:()=>h,Tn:()=>p,b0:()=>c,eU:()=>g,iu:()=>r,j:()=>u,jx:()=>m,xZ:()=>a,z:()=>d})},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})},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 l="",c="/",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||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,i||l),this.query=s||l,this.fragment=n||l,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=l),void 0===i?i=this.authority:null===i&&(i=l),void 0===s?s=this.path:null===s&&(s=l),void 0===n?n=this.query:null===n&&(n=l),void 0===r?r=this.fragment:null===r&&(r=l),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]||l,E(i[4]||l),E(i[5]||l),E(i[7]||l),E(i[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(n.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const i=e.indexOf(c,2);-1===i?(t=e.substring(2),e=c):(t=e.substring(2,i),e=e.substring(i)||c)}return new g("file",t,e,l,l)}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:l}=e;if(n&&(s+=n,s+=":"),(r||"file"===n)&&(s+=c,s+=c),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)),l&&(s+="#",s+=t?l:m(l,!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 b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(b)?e.replace(b,(e=>C(e))):e}},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}}()},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),l=i(91508);const c="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]||(E(s)?i[s]=t=>this.listen(e,s,t):b(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(c,h,[this._worker.getId(),JSON.parse(JSON.stringify(i)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(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(E(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(b(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 b(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function E(e){return/^onDynamic/.test(e)&&l.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===c&&t===h)return this.initialize(i[0],i[1],i[2]);const s=e===c?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===c?this._requestHandler:this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on worker thread`);if(E(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(b(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)}},34918:(e,t,i)=>{"use strict";i.d(t,{K:()=>m});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.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)}))}},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},17184:(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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},42776:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pla",extensions:[".pla"],loader:()=>i.e(4542).then(i.bind(i,14542))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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))})},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")}},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())}}},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 l{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class c{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");c._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 l(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),l=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),b=this._createRequest("9",0,i,s),E=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),L="|/-_ilm%";for(let n=0,c=8;n<c;n++)this._createRequest(L.charAt(n),0,i,s),this._createRequest(L.charAt(n),1,i,s),this._createRequest(L.charAt(n),2,i,s);!function(e,t,i){new c(t,i).read(e)}(e,t,i);const R=Math.max(l.width,u.width,g.width,p.width,m.width,f.width,_.width,v.width,C.width,b.width);let T=t.fontFeatureSettings===h.Bc.OFF;const x=s[0].width;for(let n=1,c=s.length;T&&n<c;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>E.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:R},!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},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)}}},68792:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,Eq:()=>b,M0:()=>L,Mz:()=>w,No:()=>y,bs:()=>E});var s,n=i(60413),r=i(8597),o=i(56245),a=i(72962),l=i(5239),c=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 b={forceCopyWithSyntaxHighlighting:!1};class E{static{this.INSTANCE=new E}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 c.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 c.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||E.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 c.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(l.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 c=this._textAreaState.deduceEditorPosition(o),h=this._host.deduceModelPosition(c[0],c[1],c[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};E.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 L 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((()=>l.p.onKeyDown()))),this._register(this.onBeforeInput((()=>l.p.onBeforeInput()))),this._register(this.onInput((()=>l.p.onInput()))),this._register(this.onKeyUp((()=>l.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 l=r.zk(o),c=o===s,h=s.selectionStart,d=s.selectionEnd;if(c&&h===t&&d===i)n.gm&&l.parent!==l&&s.focus();else{if(c)return this.setIgnoreSelectionChangeTime("setSelectionRange"),s.setSelectionRange(t,i),void(n.gm&&l.parent!==l&&s.focus());try{const e=r.zK(s);this.setIgnoreSelectionChangeTime("setSelectionRange"),s.focus(),s.setSelectionRange(t,i),r.wk(s,e)}catch(u){}}}}},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),l=t.value.substring(n,t.value.length-o),c=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: ${c}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${l}>, selectionStart: ${d}, selectionEnd: ${u}`)),d===u){const t=e.selectionStart-n;return r&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:l,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:l,replacePrevCharCnt:h-c,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),l=e.selectionStart-i,c=e.selectionEnd-i,h=t.selectionStart-i,d=t.selectionEnd-i;return r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${o}>, selectionStart: ${l}, selectionEnd: ${c}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${d}`)),{text:a,replacePrevCharCnt:c,replaceNextCharCnt:o.length-c,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,l=a._getPageOfLine(t.startLineNumber,i),c=a._getRangeForPage(l,i),h=a._getPageOfLine(t.endLineNumber,i),d=a._getRangeForPage(h,i);let u=c.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(l===h||l+1===h)v=e.getValueInRange(t,1);else{const i=c.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)}}},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),l=i(80301),c=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,l=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(l){if(_>s)continue;if(f<r)continue}g.push(new c.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 c.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(50672),m=i(49265),f=i(60002),_=i(32848),v=i(59261),C=i(8597),b=i(26685);class E 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 L{constructor(e){e.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(l.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(l.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 E{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 E{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=>c.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 l 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 l({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 l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends E{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 E{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 E{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 E{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 E{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 E{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]=c.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 E{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 b extends E{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]=c.MF.fromModelState(n.modelState.move(this._inSelectionMode,r,o,0))}return i}}e.CursorLineEnd=(0,a.E_)(new b({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 b({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1315}}}));class w extends E{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 R extends E{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 R({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 R({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3085,mac:{primary:3090}}}));class T extends E{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 E{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 E{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 E{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 E{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 E{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 E{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 E{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 E{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 E{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 E{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 E{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 E{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 E{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 E{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 E{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 l=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends L{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 E{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[c.MF.fromModelSelection(t.selection)]))}})}(w||(w={}));const R=_.M$.and(f.R.textInputFocus,f.R.columnSelection);function T(e,t){v.f.registerKeybindingRule({id:e,primary:t,when:R,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,b.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 L{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 L{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(l.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")},85411:(e,t,i)=>{"use strict";i.d(t,{l:()=>d,q:()=>l});var s=i(42731),n=i(17799),r=i(44320),o=i(79400),a=i(61292);function l(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,c(s))}}return t}function c(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=l(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}},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}},37734:(e,t,i)=>{"use strict";i.d(t,{$z:()=>f,BA:()=>v,DW:()=>_,Hh:()=>h,Qn:()=>C,dO:()=>m,i_:()=>p,nz:()=>c,wt:()=>g});var s=i(8597),n=i(34072),r=i(47358),o=i(90766),a=i(5662),l=i(66261);class c{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 c(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 c(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 b(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 b{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,l.GuP)(e.id):e;i+=`\n\t${E(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 E(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},31450:(e,t,i)=>{"use strict";i.d(t,{DX:()=>y,E_:()=>x,Fl:()=>k,HW:()=>I,PF:()=>L,aU:()=>M,dS:()=>s,fE:()=>E,gW:()=>A,ih:()=>P,ke:()=>T,ks:()=>w,qO:()=>R,tc:()=>F,uB:()=>b,xX:()=>N});var s,n=i(78209),r=i(79400),o=i(80301),a=i(83069),l=i(23750),c=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 b{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 E extends b{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 b{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class y extends b{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 L 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 R 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(l.IModelService).getModel(n);if(h){const e=a.y.lift(o);return s.invokeFunction(t,h,e,...i.slice(2))}return e.get(c.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(l){r(l)}})).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 E({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 E({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 E({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}]}))},38844:(e,t,i)=>{"use strict";i.d(t,{Qg:()=>u,Ud:()=>c,jD:()=>d});var s=i(51241),n=i(5662),r=i(31308),o=i(49154),a=i(87958),l=i(75326);function c(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)(l.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)(l.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()}}}},80537:(e,t,i)=>{"use strict";i.d(t,{cw:()=>l,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(l.is(e))return l.lift(e);if(c.is(e))return c.lift(e);throw new Error("Unsupported edit")}))}}class l extends a{static is(e){return e instanceof l||(0,r.Gv)(e)&&n.r.isUri(e.resource)&&(0,r.Gv)(e.textEdit)}static lift(e){return e instanceof l?e:new l(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 c extends a{static is(e){return e instanceof c||(0,r.Gv)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof c?e:new c(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},s){super(s),this.oldResource=e,this.newResource=t,this.options=i}}},80301:(e,t,i)=>{"use strict";i.d(t,{T:()=>s});const s=(0,i(63591).u1)("codeEditorService")},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)}}},80624:(e,t,i)=>{"use strict";i.d(t,{BG:()=>r,IO:()=>a,Y:()=>o,eh:()=>n,pj:()=>c,qN:()=>l});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 l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class c{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},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,l=e.children[s].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!l&&0===n&&s>0&&(l=e.children[s-1].firstChild,n=1073741824)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),n=Math.min(l.textContent.length,Math.max(0,n));const c=this._readClientRects(a,i,l,n,r.endNode);return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(c,r.clientRectDeltaLeft,r.clientRectScale)}}var l=i(25521),c=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=l.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 l.d(t,s,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(p||(p=[]),p.push(new c.MT(t-1,s-1))))}}const _=new c.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,c.UW)(_,n);n.appendString("</div>");let b=null;return g&&u&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===v.containsForeignElements&&(b=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping)),b||(b=C(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=b,!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?b:E;function b(e,t,i,s,n){return new v(e,t,i,s,n)}function E(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 c.wZ(n,i),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 l=i(8597),c=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 b{static{this.items=[]}constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=b._read(e,this.key);this.migrate(t,(t=>b._read(e,t)),((t,i)=>b._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 E(e,t){b.items.push(new b(e,t))}function S(e,t){E(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"]]),E("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&i("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&i("autoSurround","never"))})),E("renderIndentGuides",((e,t,i)=>{"undefined"!==typeof e&&(i("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&i("guides.indentation",!!e))})),E("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"};E("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)}})),E("quickSuggestions",((e,t,i)=>{if("boolean"===typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),E("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"===typeof e&&(i("experimental.stickyScroll.enabled",void 0),"undefined"===typeof t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),E("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"===typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),"undefined"===typeof t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),E("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)}})),E("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"===typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),"undefined"===typeof t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),E("lightbulb.enabled",((e,t,i)=>{"boolean"===typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var w=i(77163),L=i(87908),R=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 L.n0,this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new v.u(s,i.dimension)),this._targetWindowId=(0,l.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(R.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,l.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,l.ZF)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return C.T.readFontInfo((0,l.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 L.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 L.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 L.BE){const r=!P._deepEquals(e._read(n.id),t._read(n.id));i[n.id]=r,r&&(s=!0)}return s?new L.lw(i):null}static applyUpdate(e,t){let i=!1;for(const s of L.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){b.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,le._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((()=>le.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 le{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=le._createMouseTarget(r,o);if(6===e.type&&r.stickyTabStops&&null!==e.position){const t=le._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||le._hitTestContentWidget(e,i),s=s||le._hitTestOverlayWidget(e,i),s=s||le._hitTestMinimap(e,i),s=s||le._hitTestScrollbarSlider(e,i),s=s||le._hitTestViewZone(e,i),s=s||le._hitTestMargin(e,i),s=s||le._hitTestViewCursor(e,i),s=s||le._hitTestTextArea(e,i),s=s||le._hitTestViewLines(e,i),s=s||le._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?le.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 le._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 c=e.visibleRangeForPosition(r,o);if(!c)return t.fulfillUnknown(s);const h=c.left;if(Math.abs(t.mouseContentHorizontalOffset-h)<1)return t.fulfillContentText(s,null,{mightBeForeignElement:!!n,injectedText:n});const d=[];if(d.push({offset:c.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(l.zk(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let l=1;l<d.length;l++){const e=d[l-1],i=d[l];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(l.zk(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(l.zk(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=l.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=l.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,c=e.left,h=0;if(t>e.left+e.width)h=o.length;else{const e=ce.getInstance();for(let i=0;i<o.length+1;i++){if(a=e.getCharWidth(o.charAt(i),r)/2,c+=a,t<c){h=i;break}c+=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(l.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 ce{static{this._INSTANCE=null}static getInstance(){return ce._INSTANCE||(ce._INSTANCE=new ce),ce._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 le(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=l.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(l.ko(this.viewHelper.viewDomNode,l.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=R.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(l.ko(this.viewHelper.viewDomNode,l.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=R.D.getZoomLevel(),t=a.deltaY>0?1:-1;R.D.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=R.D.getZoomLevel(),s=r(o),n=0),t=Date.now(),n+=a.deltaY,s&&(R.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(l.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=l.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,l=9===i.type;let c=e.leftButton||e.middleButton;_.zx&&e.leftButton&&e.ctrlKey&&(c=!1);const h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(s||r&&o))h(),this._mouseDownOperation.start(i.type,e,t);else if(n)e.preventDefault();else if(a){const s=i.detail;c&&this.viewHelper.shouldSuppressMouseDownOnViewZone(s.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else l&&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 be,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);l.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 l=s.getLineNumberAtVerticalOffset(o);return te.createOutsideEditor(n,new Y.y(l,i.getLineMaxColumn(l)),"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=l.PG(l.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=l.PG(l.zk(r.element),(()=>this._execute()))}}class be{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>be.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 Ee=i(68792);class Se extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(l.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(l.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(l.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(Ee.$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 Le=i(78209),Re=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 l=i;l<=s;l++){const e=l-i;let s=this._getLineRenderLineNumber(l),c="";for(;r<n.length&&n[r].range.endLineNumber<l;)r++;for(let t=r;t<n.length;t++){const{range:e,options:i}=n[t];e.startLineNumber<=l&&(c+=" "+i.lineNumberClassName)}s||c?(l===o&&0===this._context.viewModel.getLineLength(l)&&("off"===this._renderFinalNewline&&(s=""),"dimmed"===this._renderFinalNewline&&(c+=" dimmed-line-number")),l===this._activeLineNumber&&(c+=" active-line-number"),a[e]=`<div class="${Ne.CLASS_NAME}${t}${c}" 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",Le.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 l={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)},c={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(Ee.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()&&l.getValueLengthInRange(e,0)<t){const t=l.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(l,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},h=this._register(new Ee.M0(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(Ee.No,c,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(),l=Math.min(a.column-1,o),c=a.column-1-l,h=n.substring(0,n.length-l),{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:c,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(),l=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,o);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-l}})();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(!Re.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=Le.kg("accessibilityModeOff","The editor is not accessible at this time.");return e?Le.kg("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",s,e):t?Le.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?Le.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===L.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,l=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,o+=e,l-=e}l>this._contentWidth&&(l=this._contentWidth);const c=this._context.viewModel.getViewLineData(i.lineNumber),h=c.tokens.findTokenIndexAtOffset(i.column-1),d=h===c.tokens.findTokenIndexAtOffset(s.column-1),u=this._visibleTextArea.definePresentation(d?c.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:l,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 c.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),l=this._lines.slice(o,this._lines.length-i),c=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=a.concat(r).concat(l),c}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 l=!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,l=!0)}l&&this._finishRenderingNewLines(e,t,s.build(),a)}{s.reset();let t=!1;const l=[];for(let e=0;e<n;e++){const n=r[e];if(l[e]=!1,a[e])continue;n.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(l[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,s.build(),l)}}}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,l,c]=s.options.blockPadding??[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-c),r.setWidth(this.contentWidth+c+a),r.setTop(i-e.scrollTop-o),r.setHeight(n-i+o+l),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,l=r>=i,c=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:l,aboveTop:a,fitsBelow:h,belowTop:c,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=l.BK(this._viewDomNode.domNode),a=this._viewDomNode.domNode.ownerDocument,c=a.defaultView,h=o.top+n-(c?.scrollY??0),d=o.top+r-(c?.scrollY??0),u=l.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 lt(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 ct(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 ct(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 lt(n.aboveTop,n.left),position:1}}else{if(2!==e)return this.allowEditorOverflow?{kind:"inViewport",coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new lt(s.top,s.left)),position:0}:{kind:"inViewport",coordinate:new lt(s.top,s.left),position:0};if(!n)return null;if(2===r||n.fitsBelow)return{kind:"inViewport",coordinate:new lt(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 lt{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class ct{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,l=r.convertModelPositionToViewPosition(new Y.y(o,this._context.viewModel.model.getLineMaxColumn(o))).lineNumber,c=Math.max(a,t),h=Math.min(l,i);for(let e=c;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,l=t.length;a<l;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),l=Math.min(e.range.endLineNumber,n);for(let t=a;t<=l;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 l=0,c=t.length;l<c;l++){const c=t[l];if(c.options.isWholeLine)continue;const h=c.options.className,d=Boolean(c.options.showIfCollapsed);let u=c.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=c.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 l=0,c=a.length;l<c;l++){const e=a[l];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,l=e.ranges[n],c='<div class="cdr '+i+'" style="left:'+String(l.left)+"px;width:"+(a?"100%;":String(l.width)+"px;")+'"></div>';o[t]+=c}}}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),c=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:c,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(l.ko(i.domNode,"scroll",(e=>d(i.domNode,!0,!0)))),this._register(l.ko(t.domNode,"scroll",(e=>d(t.domNode,!0,!1)))),this._register(l.ko(s.domNode,"scroll",(e=>d(s.domNode,!0,!1)))),this._register(l.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 bt{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class Et extends xe{_render(e,t,i){const s=[];for(let o=e;o<=t;o++){s[o-e]=new bt}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],l=a.className,c=a.zIndex;let h=Math.max(a.startLineNumber,e)-e;const d=Math.min(a.endLineNumber,t)-e;n===l?(h=Math.max(r+1,h),r=Math.max(r,d)):(n=l,r=d);for(let e=h;e<=r;e++)s[e].add(new Ct(l,c,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,l=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,l,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),l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(a,0)),c=this._context.viewModel.glyphLanes.getLanesAtLine(l.lineNumber).indexOf(n.preference.lane);t.push(new wt(a,c,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 Lt(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 Lt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var Rt=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 l="";const c=e.visibleRangeForPosition(new Y.y(a,1))?.left??0;for(const t of n){const i=-1===t.column?c+(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;l+=`<div class="core-guide ${t.className} ${n}" style="left:${i}px;width:${r}px"></div>`}o[i]=l}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:l}=this._context.viewModel.model.getOptions(),c=[];for(let h=e;h<=t;h++){const t=new Array;c.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)*l+1,n=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&r<=h&&h<=o&&e===a;t.push(...d.takeWhile((e=>e.visibleColumn<s))||[]);const c=d.peek();c&&c.visibleColumn===s&&!c.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 c}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(Rt.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(Rt.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,l=t.length;a<l;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 l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let h=s.startLineNumber;h<=s.endLineNumber;h++){if(h<l||h>c)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,l=o+a;let c,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)}c=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(e),d=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!s)return-1;c=!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(!c)return-1;u=h}else if(5===r||6===r)if(6===r&&o<=h&&d<=l)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<=l)u=o;else{const e=(h+d)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(o,l,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 Et{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 Et{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,l,c,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=c?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(s,l),f=4*e.width,_=o.r,v=o.g,C=o.b,b=n.r-_,E=n.g-v,S=n.b-C,y=Math.max(r,a),w=e.data;let L=m*d*u,R=i*f+4*t;for(let T=0;T<g;T++){let e=R;for(let t=0;t<d;t++){const t=p[L++]/255*(r/255);w[e++]=_+b*t,w[e++]=v+E*t,w[e++]=C+S*t,w[e++]=y}R+=f}}blockRenderChar(e,t,i,s,n,r,o,a){const l=1*this.scale,c=2*this.scale,h=a?1:c;if(t+l>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),b=e.data;let E=i*d+4*t;for(let S=0;S<h;S++){let e=E;for(let t=0;t<l;t++)b[e++]=f,b[e++]=_,b[e++]=v,b[e++]=C;E+=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,l=0;for(let c=0;c<o;c++){const s=c/o*16,n=(c+1)/o*16;for(let o=0;o<r;o++){const c=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=c;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;l=Math.max(l,g),i[a++]=(0,jt.W)(g)}}return l}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 l=0;l<96;l++)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),l=s.get(73);this.renderMinimap=o.renderMinimap,this.size=l.size,this.minimapHeightIsEditorHeight=o.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=s.get(106),this.paddingTop=s.get(84).top,this.paddingBottom=s.get(84).bottom,this.showSlider=l.showSlider,this.autohide=l.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=l.sectionHeaderFontSize*n,this.sectionHeaderLetterSpacing=l.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,l){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=l}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,l,c,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/(c-n),h=l*r,d=s>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(l,c,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=_/(c-n),b=l*C;if(g>=f+o+v){return new ti(l,c,_>0,C,b,m,f,1,o)}{let i,n;i=t>1?t+f:Math.max(1,l/p);let r=Math.max(1,Math.floor(i-b*d/u));r<f?(n=f-r+1,r=1):(n=0,r=Math.max(1,r-f)),h&&h.scrollHeight===c&&(h.scrollTop>l&&(r=Math.min(r,h.startLineNumber),n=Math.max(n,h.topPaddingLineCount)),h.scrollTop<l&&(r=Math.max(r,h.startLineNumber),n=Math.min(n,h.topPaddingLineCount)));const a=Math.min(o,r-n+g-1),_=(l-s)/p;let v;return v=l>=e.paddingTop?(t-r+n+_)*u/d:l/e.paddingTop*(n+_)*u/d,new ti(l,c,!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 l=0;for(let c=0;c<t;c++)for(let t=0;t<e;t++)a[l]=s,a[l+1]=n,a[l+2]=r,a[l+3]=o,l+=4;return a}}class ri{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const{minimapLineCount:s}=L.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,l=[];let c=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(;c<a&&o[c]<e;){if(u.length<10){const e=c+1+h;g&&"deleted"===g.type&&g._oldIndex===c-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:c,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--}c++}let m;if(c<a&&o[c]<=i)m=o[c],c++;else if(m=0===p?1:p+1===s?t:Math.round(p*n+r),u.length<10){const e=c+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++}l[p]=m,d=m}if(u.length<10)for(;c<a;){const e=c+1+h;g&&"deleted"===g.type&&g._oldIndex===c-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:c,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--,c++}else u=[{type:"flush"}];return[new ri(n,l),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=l.b2(this._domNode.domNode,l.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=l.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=l.b2(this._slider.domNode,l.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=l.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=l.ko(this._domNode.domNode,de.B.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=l.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=l.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,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,s,n);const c=new li(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,c,e,r),this._renderDecorationsLineHighlights(l,i,c,e,r);const h=new li(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,h,e,r,a,o,s),this._renderDecorationsHighlights(l,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[l,c]=t;for(let e=l;e<=c;e++)i.set(e,!0);const h=s.getYForLineNumber(l,n),d=s.getYForLineNumber(c,n);o>=h||(o>r&&e.fillRect(L.xq,r,e.canvas.width,o-r),r=h),o=d}o>r&&e.fillRect(L.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],l=a.options.minimap;if(!l||1!==l.position)continue;const c=s.intersectWithViewport(a.range);if(!c)continue;const[h,d]=c,u=l.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(L.xq,r,e.canvas.width,n)}}}_renderSelectionsHighlights(e,t,i,s,n,r,o,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=s.intersectWithViewport(l);if(!t)continue;const[c,h]=t;for(let d=c;d<=h;d++)this.renderDecorationOnLine(e,i,l,this._selectionColor,s,d,n,n,r,o,a)}}_renderDecorationsHighlights(e,t,i,s,n,r,o,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const c=s.intersectWithViewport(l.range);if(!c)continue;const[h,d]=c,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,l.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,l,c,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,l,c,h),_=this.getXOffsetForPosition(t,r,m,l,c,h);this.renderDecoration(e,s,f,d,_-f,o)}getXOffsetForPosition(e,t,i,s,n,r){if(1===i)return L.xq;if((i-1)*n>=r)return r;let o=e.get(t);if(!o){const i=this._model.getLineContent(t);o=[L.xq];let a=L.xq;for(let e=1;e<i.length+1;e++){const t=i.charCodeAt(e-1),l=a+(9===t?s*n:Re.ne(t)?2*n:n);if(l>=r){o[e]=r;break}o[e]=l,a=l}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)`,l=this._model.options.sectionHeaderFontColor,c=`rgb(${l.r} ${l.g} ${l.b})`,h=c,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-L.xq);for(const p of u){const s=e.getYForLineNumber(p.range.startLineNumber,t)+i,o=s-i,l=o+2,h=this._model.getSectionHeaderText(p,g);ai._renderSectionLabel(d,h,2===p.options.minimap?.sectionHeaderStyle,a,c,r,o,n,s,l)}}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 l=Math.ceil(a/2);for(;l>0&&/\s/.test(i[l-1]);)--l;return i.substring(0,l)+"\u2026"+i.substring(r-(a-l))}static _renderSectionLabel(e,t,i,s,n,r,o,a,l,c){t&&(e.fillStyle=s,e.fillRect(0,o,r,a),e.fillStyle=n,e.fillText(t,L.xq,l)),i&&(e.beginPath(),e.moveTo(0,c),e.lineTo(r,c),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),l=this._model.getMinimapLinesRenderingData(t,i,a),c=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)*_,b=s>C?Math.floor((s-C)/2):0,E=d.a/255,S=new Bt(Math.round((d.r-h.r)*E+h.r),Math.round((d.g-h.g)*E+h.g),Math.round((d.b-h.b)*E+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,b,c,l[T],_,s),w[T]=new ii(y),y+=s;const L=-1===r?0:r,R=(-1===o?n.height:o)-L;return this._canvas.domNode.getContext("2d").putImageData(n,0,0,0,L,n.width,R),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(),l=a.imageData.data,c=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,b=-1,E=t*n;for(let S=i;S<=s;S++){const e=S-i,t=S-c,s=t>=0&&t<d?h[t].dy:-1;if(-1===s){o[e]=!0,E+=n;continue}const r=s*u*4,a=(s+n)*u*4,y=E*u*4,w=(E+n)*u*4;v===r&&b===y?(v=a,b=w):(-1!==_&&(g.set(l.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_)),_=r,v=a,C=y,b=w),o[e]=!1,E+=n}-1!==_&&(g.set(l.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,l,c,h,d,u,g,p){const m=u.content,f=u.tokens,_=e.width-r,v=1===p;let C=L.xq,b=0,E=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(;b<u;b++){if(C>_)return;const o=m.charCodeAt(b);if(9===o){const e=d-(b+E)%d;E+=e-1,C+=e*r}else if(32===o)C+=r;else{const d=Re.ne(o)?2:1;for(let u=0;u<d;u++)if(2===n?l.blockRenderChar(e,C,c+h,y,a,t,i,v):l.renderChar(e,C,c+h,o,y,a,t,i,g,s,v),C+=r,C>_)return}}}}}class li{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 ci 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=l.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),l=a.enabled,c=a.side,h=t.getColor(Ae.Xr),d=Me.dG.getDefaultBackground();this.backgroundColor=h||(l&&"right"===c?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,l=a/2|0,c=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(c.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),c.fillRect(0,0,i,s)):(c.clearRect(0,0,i,s),c.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),c.fillRect(0,0,i,s)):c.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;c.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<l?e=l:e+l>s&&(e=s-l),_=e-l,v=e+l}_>p+1||e!==i?(0!==u&&c.fillRect(h[i],g,d[i],p-g),i=e,g=_,p=v):v>p&&(p=v)}c.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,l=-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>l+1||u!==h?(0!==d&&h&&c.fillRect(i,a,n,l-a),a=m,l=f):f>l&&(l=f),h=u,c.fillStyle=u}h&&c.fillRect(i,a,n,l-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(c.beginPath(),c.lineWidth=1,c.strokeStyle=this._settings.borderColor,c.moveTo(0,0),c.lineTo(0,s),c.moveTo(1,0),c.lineTo(i,0),c.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,l=a.from,c=a.to;t!==n?(e.fillRect(0,r,s,o-r),n=t,e.fillStyle=i[n],r=l,o=c):o>=l?o=Math.max(o,c):(e.fillRect(0,r,s,o-r),r=l,o=c)}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 bi(e){return new vi(e.lineNumber,e.ranges.map(Ci))}class Ei 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,l=e.left+e.width,c={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?c.top=2:i>e&&(c.top=1),Si(l-n)<s?h.top=2:e<l&&l<n&&(h.top=1)}else n&&(c.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?c.bottom=2:e<i&&i<n&&(c.bottom=1),Si(l-n)<s?h.bottom=2:l<n&&(h.bottom=1)}else r&&(c.bottom=r.startStyle.bottom,h.bottom=r.endStyle.bottom);e.startStyle=c,e.endStyle=h}}_getVisibleRangesWithStyle(e,t,i){const s=(t.linesVisibleRangesForRange(e,!0)||[]).map(bi);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,l=s.length;a<l;a++){const l=s[a],c=l.lineNumber,h=c-t,d=i&&c===r?1:0,u=i&&c!==r&&c===o?1:0;let g="",p="";for(let e=0,t=l.ranges.length;e<t;e++){const t=l.ranges[e];if(n){const e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(d,u,Ei.SELECTION_CLASS_NAME,t.left-Ei.ROUNDED_PIECE_WIDTH,Ei.ROUNDED_PIECE_WIDTH);let i=Ei.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+Ei.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+Ei.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(d,u,i,t.left-Ei.ROUNDED_PIECE_WIDTH,Ei.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){g+=this._createSelectionPiece(d,u,Ei.SELECTION_CLASS_NAME,t.left+t.width,Ei.ROUNDED_PIECE_WIDTH);let e=Ei.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+Ei.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+Ei.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(d,u,e,t.left+t.width,Ei.ROUNDED_PIECE_WIDTH)}}let i=Ei.SELECTION_CLASS_NAME;if(n){const e=t.startStyle,s=t.endStyle;0===e.top&&(i+=" "+Ei.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+Ei.SELECTION_BOTTOM_LEFT),0===s.top&&(i+=" "+Ei.SELECTION_TOP_RIGHT),0===s.bottom&&(i+=" "+Ei.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]=Re.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===L.m9.Line||this._cursorStyle===L.m9.LineThin){const r=e.visibleRangeForPosition(s);if(!r||r.outsideRenderedLine)return null;const o=l.zk(this._domNode.domNode);let a;this._cursorStyle===L.m9.Line?(a=l.vT(o,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=n,i=this._getTokenClassName(s))):a=l.vT(o,1);let c=r.left,h=0;a>=2&&c>=1&&(h=1,c-=h);const d=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta;return new yi(d,c,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],c="\t"===n||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===L.m9.Block&&(t=n,i=this._getTokenClassName(s));let h=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return this._cursorStyle!==L.m9.Underline&&this._cursorStyle!==L.m9.UnderlineThin||(h+=this._lineHeight-2,d=2),new yi(h,a.left,0,c,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 Li 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 l.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()}),Li.BLINK_INTERVAL,(0,l.zk)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),Li.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case L.m9.Line:e+=" cursor-line-style";break;case L.m9.Block:e+=" cursor-block-style";break;case L.m9.Underline:e+=" cursor-underline-style";break;case L.m9.LineThin:e+=" cursor-line-thin-style";break;case L.m9.BlockOutline:e+=" cursor-block-outline-style";break;case L.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 Ri=()=>{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 l=t.get(r);!l||l.afterLineNumber===a.afterViewLineNumber&&l.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,c.dz)(i)}}(e,s),s.addZone=Ri,s.removeZone=Ri,s.layoutZone=Ri})),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,c.dz)(i)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(i){(0,c.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,l="none";i.hasOwnProperty(t)?(o=i[t].verticalOffset-e.bigNumbersDelta,a=i[t].height,l="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(l),s.marginDomNode&&(s.marginDomNode.setTop(o),s.marginDomNode.setHeight(a),s.marginDomNode.setDisplay(l))}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),l=s.continuesWithWrappedLine,c=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="",b=!1,E=Re.HG(o);-1===E?(b=!0,E=a,v=a):v=Re.lT(o);let S=0,y=i&&i[S],w=0;for(let L=c;L<a;L++){const s=o.charCodeAt(L);if(y&&L>=y.endOffset&&(S++,y=i&&i[S]),9!==s&&32!==s)continue;if(d&&!b&&L<=v)continue;if(h&&L>=E&&L<=v&&32===s){const e=L-1>=0?o.charCodeAt(L-1):0,t=L+1<a?o.charCodeAt(L+1):0;if(32!==e&&32!==t)continue}if(h&&l&&L===a-1){const e=L-1>=0?o.charCodeAt(L-1):0;if(32===s&&32!==e&&9!==e)continue}if(i&&(!y||y.startOffset>L||y.endOffset<=L))continue;const n=e.visibleRangeForPosition(new Y.y(t,L+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},l={x:a.x+.1*o.x,y:a.y+.1*o.x},c={x:l.x+.35*o.x,y:l.y-.35*o.x};return`<path d="M ${[r,o,a,l,c,{x:c.x,y:-c.y},{x:l.x,y:-l.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 l=new di(this._context);this._viewParts.push(l);const c=new fi(this._context);this._viewParts.push(c);const h=new tt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new gt(this._context)),h.addDynamicOverlay(new Ei(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 Li(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new ci(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),l){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(l.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(c.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 c.D7;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=Ui.INSTANCE.scheduleCoordinatedRendering({window:l.zk(this.domNode?.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new c.D7;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new c.D7;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new c.D7;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new c.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,c.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,l.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 l(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]=l(i);return e}const c=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=[],b=[];for(let g=0;g<t.length;g++){const e=Gi.uK.applyInjectedText(t[g],a[g]);let n=0,o=0,l=c;if(0!==r)if(n=Re.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>c?(n=0,o=0):l=c-t}const h=e.substr(n),d=Yi(h,o,s,l,m,u);f[g]=n,_[g]=o,v[g]=h,C[g]=d[0],b[g]=d[1]}const E=m.build(),S=ji?.createHTML(E)??E;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),L=[];for(let g=0;g<t.length;g++){const e=qi(y,w[g],v[g],C[g]);if(null===e){L[g]=l(g);continue}const t=f[g],i=_[g]+d,s=b[g],n=[];for(let a=0,l=e.length;a<l;a++)n[a]=s[e[a]];if(0!==t)for(let a=0,l=e.length;a<l;a++)e[a]+=t;let r,o;const c=a[g];c?(r=c.map((e=>e.options)),o=c.map((e=>e.column-1))):(r=null,o=null),L[g]=new Bi(o,r,e,n,i)}return p.remove(),L}((0,Rt.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,l=0;const c=[],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>"),c[u]=l,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:Re.ne(t)&&r++,t<32?n.appendCharCode(9216+t):n.appendCharCode(t)}l+=s,a+=r}return n.appendString("</span>"),c[e.length]=l,h[e.length]=a,n.appendString("</div>"),[c,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 l=s+(r-s)/2|0,c=Qi(e,t,i[l],i[l+1]);$i(e,t,i,s,n,l,c,a),$i(e,t,i,l,c,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,c.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,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,l.U3)((0,l.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,l.U3)((0,l.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,c.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 l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let e=0,h=r.length;e<h;e++){const h=o[e],d=a[e];!d||d.injectionOptions||h?c[e]=ds(this.classifier,r[e],h,t,i,l,s,n):c[e]=hs(this.classifier,d,r[e],t,i,l,s,n)}return ls.length=0,cs.length=0,c}}}}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 ls=[],cs=[];function hs(e,t,i,s,n,r,o,a){if(-1===n)return null;const l=i.length;if(l<=1)return null;const c="keepAll"===a,h=t.breakOffsets,d=t.breakOffsetsVisibleColumn,u=ms(i,s,n,r,o),g=n-u,p=ls,m=cs;let f=0,_=0,v=0,C=n;const b=h.length;let E=0;if(E>=0){let e=Math.abs(d[E]-C);for(;E+1<b;){const t=Math.abs(d[E+1]-C);if(t>=e)break;e=t,E++}}for(;E<b;){let t=E<0?0:h[E],n=E<0?0:d[E];_>t&&(t=_,n=v);let o=0,a=0,u=0,S=0;if(n<=C){let v=n,b=0===t?0:i.charCodeAt(t-1),E=0===t?0:e.get(b),y=!0;for(let n=t;n<l;n++){const t=n,l=i.charCodeAt(n);let h,d;if(Re.pc(l)?(n++,h=0,d=2):(h=e.get(l),d=us(l,v,s,r)),t>_&&ps(b,E,l,h,c)&&(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}b=l,E=h}if(y){f>0&&(p[f]=h[h.length-1],m[f]=d[h.length-1],f++);break}}if(0===o){let l=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(Re.LJ(n)?(s--,m=0,f=2):(m=e.get(n),f=Re.ne(n)?r:1),l<=C){if(0===u&&(u=t,S=l),l<=C-g)break;if(ps(n,m,h,d,c)){o=t,a=l;break}}l-=f,h=n,d=m}if(0!==o){const e=g-(S-a);if(e<=s){const t=i.charCodeAt(u);let n;n=Re.pc(t)?2:us(t,S,s,r),e-n<0&&(o=0)}}if(p){E--;continue}}if(0===o&&(o=u,a=S),o<=_){const e=i.charCodeAt(_);Re.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;E<0||E<b&&d[E]<a;)E++;let y=Math.abs(d[E]-C);for(;E+1<b;){const e=Math.abs(d[E+1]-C);if(e>=y)break;y=e,E++}}return 0===f?null:(p.length=f,m.length=f,ls=t.breakOffsets,cs=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function ds(e,t,i,s,n,r,o,a){const l=Gi.uK.applyInjectedText(t,i);let c,h;if(i&&i.length>0?(c=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(c=null,h=null),-1===n)return c?new Bi(h,c,[l.length],[],0):null;const d=l.length;if(d<=1)return c?new Bi(h,c,[l.length],[],0):null;const u="keepAll"===a,g=ms(l,s,n,r,o),p=n-g,m=[],f=[];let _=0,v=0,C=0,b=n,E=l.charCodeAt(0),S=e.get(E),y=us(E,0,s,r),w=1;Re.pc(E)&&(y+=1,E=l.charCodeAt(1),S=e.get(E),w++);for(let L=w;L<d;L++){const t=L,i=l.charCodeAt(L);let n,o;Re.pc(i)?(L++,n=0,o=2):(n=e.get(i),o=us(i,y,s,r)),ps(E,S,i,n,u)&&(v=t,C=y),y+=o,y>b&&((0===v||y-C>p)&&(v=t,C=y-o),m[_]=v,f[_]=C,_++,b=C+p,v=0),E=i,S=n}return 0!==_||i&&0!==i.length?(m[_]=d,f[_]=y,new Bi(h,c,m,f,g)):null}function us(e,t,i,s){return 9===e?i-t%i:Re.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=Re.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,l=t[r].index,c=t[o].selection,h=t[r].selection;if(!c.equalsSelection(h)){const i=c.plusRange(h),s=c.selectionStartLineNumber===c.startLineNumber&&c.selectionStartColumn===c.startColumn,n=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn;let o,d;a===this.lastAddedCursorIndex?(o=s,this.lastAddedCursorIndex=l):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[l].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 bs{constructor(e,t,i,s){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=s}}var Es=i(1226),Ss=i(49265),ys=i(26685);class ws{constructor(){this.type=0}}class Ls{constructor(){this.type=1}}class Rs{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 bs(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 bs(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,l=null;o.length>1?l=this._cursors.getViewSelections():a=q.Q.fromPositions(o[0],o[0]),e.emitViewEvent(new Ps(t,i,a,l,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,l=s?s.modelVersionId:0;e.emitOutgoingEvent(new $s(a,o,l,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,l=s.text.length-n[2].length-1,c=s.text.lastIndexOf(a,l-1);if(-1===c)return null;t.push([c,l])}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],l=a.range.startLineNumber,c=a.range.startColumn-1+t,h=a.range.startColumn-1+s;r.push(new q.Q(l,h+1,l,h+2)),o.push(new q.Q(l,c+1,l,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,c.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 cn(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=Re.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(Es.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 l=0,c=s.length;l<c;l++)n.hasOwnProperty(s[l].identifier.major.toString())||r.push(s[l]);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 l in n)n.hasOwnProperty(l)&&a.push(parseInt(l,10));a.sort(((e,t)=>t-e));for(const l of a)o.splice(l,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(l){return(0,c.dz)(l),{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 ln{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class cn{static _capture(e,t){const i=[];for(const s of t){if(s.startLineNumber!==s.endLineNumber)return null;i.push(new ln(e.getLineContent(s.startLineNumber),s.startColumn-1,s.endColumn-1))}return i}constructor(e,t){this._original=cn._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=cn._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(cn._deduceOutcome(this._original[n],i[n]));return s}static _deduceOutcome(e,t){const i=Math.min(e.startSelection,t.startSelection,Re.Qp(e.text,t.text)),s=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,Re.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=Re.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 l,c;-1===o?(o=a,c=r+1,l=0):(c=0|this.getAfterLineNumberForWhitespaceIndex(o),l=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 b=s;b<=r;b++){if(-1===f){(h<=m&&m<h+i||h>m)&&(f=b)}for(h+=i,p[b-s]=d,d+=i;c===b;)d+=l,h+=l,o++,o>=a?c=r+1:(c=0|this.getAfterLineNumberForWhitespaceIndex(o),l=0|this.getHeightForWhitespaceIndex(o));if(h>=t){r=b;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),bn=i(87469);function En(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=Rn(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,l=a.injectionOffsets,c=a.injectionOptions;let h,d=null;if(l){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<l.length;){const o=c[t].content.length,h=l[t]+e,d=h+o;if(h>r)break;if(n<d){const e=c[t];if(e.inlineClassName){const t=i>0?a.wrappedTextIndentLength:0,o=t+Math.max(h-n,0),l=t+Math.min(d-n,r-n);o!==l&&s.push(new Vt.or(o,l,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(d<=r))break;e+=o,t++}}}h=l?e.tokenization.getLineTokens(t).withInserted(l.map(((e,t)=>({offset:e,text:c[t].content,tokenMetadata:bn.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 l=a.getLineContent();i>0&&(l=Rn(s.wrappedTextIndentLength)+l);const c=this._projectionData.getMinOutputOffset(i)+1,h=l.length+1,d=i+1<this.getViewLineCount(),u=0===i?0:s.breakOffsetsVisibleColumn[i-1];return new Vt.GP(l,d,c,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 Ln=[""];function Rn(e){if(e>=Ln.length)for(let t=1;t<=e;t++)Ln[t]=Tn(t);return Ln[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,l,c){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=l,this.wordBreak=c,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(),l=[],c=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);let h=1,d=0,u=-1,g=u+1<c.length?d+1:n+2;for(let p=0;p<n;p++){const e=p+1;e===g&&(u++,h=c[u].startLineNumber,d=c[u].endLineNumber,g=u+1<c.length?d+1:n+2);const t=e>=h&&e<=d,i=En(a[p],!t);l[p]=i.getViewLineCount(),this.modelLineProjections[p]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new xn.c2(l)}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,l=a+1<n.length?o+1:this.modelLineProjections.length+2,c=!1;for(let h=0;h<this.modelLineProjections.length;h++){const e=h+1;e===l&&(a++,r=n[a].startLineNumber,o=n[a].endLineNumber,l=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):(c=!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 c||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,l=this.wrappingIndent===s,c=this.wordBreak===n;if(r&&o&&a&&l&&c)return!1;const h=r&&o&&!a&&l&&c;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=[],l=[];for(let c=0,h=s.length;c<h;c++){const e=En(s[c],!n);a.push(e);const t=e.getViewLineCount();o+=t,l[c]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,l),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=En(i,this.modelLineProjections[s].isVisible());this.modelLineProjections[s]=r;const o=this.modelLineProjections[s].getViewLineCount();let a=!1,l=0,c=-1,h=0,d=-1,u=0,g=-1;n>o?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,c=l+o-1,u=c+1,g=u+(n-o)-1,a=!0):n<o?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,c=l+n-1,h=c+1,d=h+(o-n)-1,a=!0):(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,c=l+o-1),this.projectedModelLineLineCounts.setValue(s,o);return[a,l<=c?new Os(l,c-l+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),l=this.convertModelPositionToViewPosition(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.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,l=s.lineNumber-1;let c=null;for(let g=a;g<=l;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 l=0;n>1&&1===e.getViewLineMinColumn(this.model,g+1,s)&&(l=0===t?1:2),r.push(n),o.push(l),null===c&&(c=new Y.y(g+1,0))}else null!==c&&(n=n.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,g)),c=null)}null!==c&&(n=n.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,s.lineNumber)),c=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 l=r,c=this.model.getLineCount();l<c;l++){const s=this.modelLineProjections[l];if(!s.isVisible())continue;const c=l===r?o:0;let h=s.getViewLineCount()-c,d=!1;if(n+h>t&&(d=!0,h=t-n+1),s.getViewLinesData(this.model,l+1,c,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),l=o.getViewLineMaxColumn(this.model,n+1,r);t<a&&(t=a),t>l&&(t=l);const c=o.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Y.y(n+1,c)).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 l=o-1,c=!1;if(n)for(;l<this.modelLineProjections.length&&!this.modelLineProjections[l].isVisible();)l++,c=!0;else for(;l>0&&!this.modelLineProjections[l].isVisible();)l--,c=!0;if(0===l&&!this.modelLineProjections[l].isVisible())return new Y.y(s?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(l);let d;return d=c?n?this.modelLineProjections[l].getViewPositionOfModelPosition(h,1,i):this.modelLineProjections[l].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(l+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 l=r.lineNumber-1,c=o.lineNumber-1;let h=null;for(let p=l;p<=c;p++){if(this.modelLineProjections[p].isVisible())null===h&&(h=new Y.y(p+1,p===l?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,l,c){if(super(),this.languageConfigurationService=o,this._themeService=a,this._attachedView=l,this._transactionalTarget=c,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 Ls)}_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),l=s.get(130);this._lines.setWrappingSettings(n,r,o.wrappingColumn,a,l)&&(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 Rs(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(),l=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=l.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=l.dequeue(),[n,o,a,c]=this._lines.onModelLineChanged(r,e.lineNumber,i);s=n,o&&t.emitViewEvent(o),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),c&&(t.emitViewEvent(c),this.viewLayout.onLinesDeleted(c.fromLineNumber,c.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,l=t.endColumn;for(let c=0,h=i.length;c<h;c++){const e=i[c].startLineNumber,t=i[c].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<l)&&(s[n++]=new q.Q(r,o,a,l)),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=Re.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Re.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,L.$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),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.endLineNumber,s.range.endColumn);i.accept(o,t.zIndex,a,l,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===L.jU.fontFamily)o=L.jU.fontFamily;else{o=n.fontFamily,o=o.replace(/"/g,"'");if(!/[,']/.test(o)){/[+ ]/.test(o)&&(o=`'${o}'`)}o=`${o}, ${L.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 l=i;l<=n;l++){const e=this.model.tokenization.getLineTokens(l),c=e.getLineContent(),h=l===i?s-1:0,d=l===n?r-1:c.length;a+=""===c?"<br>":(0,dn.s0)(c,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 l of n.dS.getEditorActions()){if(this._actions.has(l.id)){(0,c.dz)(new Error(`Cannot have two actions with the same id ${l.id}`));continue}const e=new Ji.f(l.id,l.label,l.alias,l.metadata,l.precondition??void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(l.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 l.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,c.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 l=o.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:r,range:new q.Q(a.lineNumber,a.column,l.lineNumber,l.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,c.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,L.$C)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,L.$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(l.zk(this._domElement)),os.create(this._configuration.options),(e=>l.PG(l.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=Le.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:Le.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(l.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(l.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 lr(e){return or+encodeURIComponent(e.toString())+ar}const cr=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,${lr(i)}") repeat-x bottom left; }`);const s=e.getColor(zt.Hng);s&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${lr(s)}") repeat-x bottom left; }`);const n=e.getColor(zt.pOz);n&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${lr(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 cr+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}; }`)}))},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),l=i(253),c=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,l,c,h,d,u){super(e,{...s.getRawOptions(),overflowWidgetsDomNode:s.getOverflowWidgetsDomNode()},i,n,r,o,a,l,c,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,c.d),m(7,h.fN),m(8,g.Gy),m(9,u.Ot),m(10,l.j),m(11,o.JZ),m(12,a.ILanguageFeaturesService)],f)},20961:(e,t,i)=>{"use strict";var s=i(10350),n=i(8597),r=i(31450),o=i(80301),a=i(4360),l=i(60002),c=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,c.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,c.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,c.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,c.aS)("diffEditor","Diff Editor");class _ extends r.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,c.aS)("switchSide","Switch Side"),icon:s.W.arrowSwap,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const s=L(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,c.aS)("exitCompareMove","Exit Compare Move"),icon:s.W.close,precondition:l.R.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=L(e);s instanceof a.T&&s.exitCompareMove()}}class C extends r.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,c.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=L(e);s instanceof a.T&&s.collapseAllUnchangedRegions()}}class b extends r.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,c.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=L(e);s instanceof a.T&&s.showAllUnchangedRegions()}}class E extends h.L{constructor(){super({id:"diffEditor.revert",title:(0,c.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,c.aS)("accessibleDiffViewer","Accessible Diff Viewer");class y extends h.L{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:y.id,title:(0,c.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=L(e);t?.accessibleDiffViewerNext()}}class w extends h.L{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:w.id,title:(0,c.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=L(e);t?.accessibleDiffViewerPrev()}}function L(e){const t=e.get(o.T).listDiffEditors(),i=(0,n.bq)();if(i)for(const s of t){if(R(s.getContainerDomNode(),i))return s}return null}function R(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,c.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(l.R.diffEditorRenderSideBySideInlineBreakpointReached,u.M$.has("isInDiffEditor"))}),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new p).desc.id,title:(0,c.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)(E);for(const x of[{icon:s.W.arrowRight,key:l.R.diffEditorInlineMode.toNegated()},{icon:s.W.discard,key:l.R.diffEditorInlineMode}])h.ZG.appendMenuItem(h.D8.DiffEditorHunkToolbar,{command:{id:(new E).desc.id,title:(0,c.kg)("revertHunk","Revert Block"),icon:x.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"}),h.ZG.appendMenuItem(h.D8.DiffEditorSelectionToolbar,{command:{id:(new E).desc.id,title:(0,c.kg)("revertSelection","Revert Selection"),icon:x.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"});(0,h.ug)(_),(0,h.ug)(v),(0,h.ug)(C),(0,h.ug)(b),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:y.id,title:(0,c.kg)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:u.M$.and(l.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)},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),l=i(31308),c=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),b=i(25689),E=i(73157),S=i(92368),y=i(87908),w=i(86571),L=i(74444),R=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,c){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=c,this._state=(0,l.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,l.Rn)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,l.Rn)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,l.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,l.FY)(this,[]),this._currentGroupIdx=(0,l.FY)(this,0),this._currentElementIdx=(0,l.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,l.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),l=n[0].original.join(n[n.length-1].original);s.push(new K(new x.WL(a,l),e))}return s}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,l.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,l.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,l.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 R.y(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,l.PO)(t,(t=>{this._currentGroupIdx.set(L.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,l.Rn)((i=>{this._currentElementIdx.set(L.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,l.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 R.y(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==j.Header?T.Q.fromPositions(new R.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 c=document.createElement("div");c.className="diff-review-actions",this._actionBar=this._register(new m.E(c)),this._register((0,l.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 "+b.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(),c),this._register((0,l.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,l.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,E.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(),c=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,c);n.appendChild(g);const p=(0,l.un)((e=>this._model.currentElement.read(e)===u));e.add((0,l.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,l){const c=s.get(146),h=c.glyphMarginWidth+c.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 E=document.createElement("span");if(E.className="diff-review-spacer",m){const e=document.createElement("span");e.className=b.L.asClassName(m),e.innerText="\xa0\xa0",E.appendChild(e)}else E.innerText="\xa0\xa0";let S;if(_.appendChild(E),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,o,l.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),l=I.qL.isBasicASCII(r,e.mightContainNonBasicASCII()),c=I.qL.containsRTL(r,l,e.mightContainRTL());return(0,N.Md)(new N.zL(o.isMonospace&&!t.get(33),o.canUseHalfwidthRightwardsArrow,r,!1,l,c,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),le=i(82518),ce=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,l.FY)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,l.FY)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,l.FY)(this,void 0),this.unchangedRegions=(0,l.un)(this,(e=>this._options.hideUnchangedRegions.read(e)?this._unchangedRegions.read(e)?.regions??[]:((0,l.Rn)((e=>{for(const t of this._unchangedRegions.get()?.regions||[])t.collapseAll(e)})),[]))),this.movedTextToCompare=(0,l.FY)(this,void 0),this._activeMovedText=(0,l.FY)(this,void 0),this._hoveredMovedText=(0,l.FY)(this,void 0),this.activeMovedText=(0,l.un)(this,(e=>this.movedTextToCompare.read(e)??this._hoveredMovedText.read(e)??this._activeMovedText.read(e))),this._cancellationTokenSource=new ie.Qi,this._diffProvider=(0,l.un)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,l.yQ)("onDidChange",t.onDidChange)}})),this._register((0,a.s)((()=>this._cancellationTokenSource.cancel())));const s=(0,l.Yd)("contentChangedSignal"),n=this._register(new J.uC((()=>s.trigger(void 0)),200));this._register((0,l.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,l.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 l=e.original.deltaDecorations(o?.originalDecorationIds||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),c=e.modified.deltaDecorations(o?.modifiedDecorationIds||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:l,modifiedDecorationIds:c},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,l.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,l.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,l.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)(le.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 c=[];i.add(e.modified.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);c=(0,ae.M)(c,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,c,e.original,e.modified)??h,(0,l.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,l.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,l.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,l=a.original.length;const c=1===e&&1===r,h=e+l===t+1&&r+l===i+1;(c||h)&&l>=n+s?(c&&!h&&(l-=n),h&&!c&&(e+=n,r+=n,l-=n),o.push(new me(e,r,l,0,0))):l>=2*n+s&&(e+=n,r+=n,l-=2*n,o.push(new me(e,r,l,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,l.FY)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,l.FY)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,l.un)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,l.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,ce.V7)(s===r),(0,ce.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 l=e===s.ranges.length-1;e++;const c=(l?o:a.endLineNumberExclusive)-r,h=new me(n,r,c,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,l,c){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=i,this._diff=n,this._editor=r,this._viewLineCounts=o,this._originalTextModel=a,this._contextMenuService=l,this._clipboardService=c,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=b.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 be=i(99020),Ee=i(25521);const Se=(0,p.H)("diffEditorWidget",{createHTML:e=>e});function ye(e,t,i,s){(0,E.M)(s,t.fontInfo);const n=i.length>0,r=new be.fe(1e4);let o=0,a=0;const l=[];for(let d=0;d<e.lineTokens.length;d++){const s=d+1,c=e.lineTokens[d],h=e.lineBreakData[d],u=Ee.d.filter(i,s,1,Number.MAX_SAFE_INTEGER);if(h){let i=0;for(const s of h.breakOffsets){const l=c.sliceAndInflate(i,s,0);o=Math.max(o,Re(a,l,Ee.d.extractWrapped(u,i,s),n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++,i=s}l.push(h.breakOffsets.length)}else l.push(1),o=Math.max(o,Re(a,c,u,n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++}o+=t.scrollBeyondLastColumn;const c=r.build(),h=Se?Se.createHTML(c):c;s.innerHTML=h;return{heightInLines:a,minWidthInPx:o*t.typicalHalfwidthCharacterWidth,viewLineCounts:l}}class we{constructor(e,t,i,s){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=s}}class Le{static fromEditor(e){const t=e.getOptions(),i=t.get(50),s=t.get(146);return new Le(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,l,c,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=l,this.renderControlCharacters=c,this.fontLigatures=h}}function Re(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 l=t.getLineContent(),c=I.qL.isBasicASCII(l,n),h=I.qL.containsRTL(l,c,r),d=(0,N.UW)(new N.zL(o.fontInfo.isMonospace&&!o.disableMonospaceOptimizations,o.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,c,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,c,h,d,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=n,this._diffEditorWidget=r,this._canIgnoreViewZoneUpdateEvent=o,this._origViewZonesToIgnore=c,this._modViewZonesToIgnore=h,this._clipboardService=d,this._contextMenuService=u,this._originalTopPadding=(0,l.FY)(this,0),this._originalScrollOffset=(0,l.FY)(this,0),this._originalScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,l.FY)(this,0),this._modifiedScrollOffset=(0,l.FY)(this,0),this._modifiedScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,l.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,l.y0)(this,e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>e?.read(t))),f=(0,l.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,l.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,l.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 l=this._originalTopPadding.read(e);l>0&&n.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:l,showInHiddenAreas:!0,suppressMouseDown:!0});const c=this._options.renderSideBySide.read(e),h=c?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(h){const R=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>R.getLineCount())return{orig:n,mod:o};h?.addRequest(R.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,L=Le.fromEditor(this._editors.modified);for(const k of i)if(!k.diff||c||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 "+b.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,L,U,M),B=document.createElement("div");if(B.className="inline-deleted-margin-view-zone",(0,E.M)(B,L.fontInfo),this._options.renderIndicators.read(e))for(let z=0;z<H.heightInLines;z++){const G=document.createElement("div");G.className=`delete-sign ${b.L.asClassName(te.dv)}`,G.setAttribute("style",`position:absolute;top:${z*g}px;width:${L.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,l.y0)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.y0)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,l.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,l.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,l.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)),l=e.getOption(67),c=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:l+i.heightInPx,modifiedHeightInPx:c+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 b(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*l+r,modifiedHeightInPx:n.length*c+d,diff:p.lineRangeMapping}),C=e,_=t}if(r)for(const E of m.innerChanges||[]){E.originalRange.startColumn>1&&E.modifiedRange.startColumn>1&&b(E.originalRange.startLineNumber,E.modifiedRange.startLineNumber);const S=e.getModel(),y=E.originalRange.endLineNumber<=S.getLineCount()?S.getLineMaxColumn(E.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;E.originalRange.endColumn<y&&b(E.originalRange.endLineNumber,E.modifiedRange.endLineNumber)}b(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 R.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,l.y0)(this,this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.y0)(this,this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,l.yQ)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,l.FY)(this,0),this._modifiedViewZonesChangedSignal=(0,l.yQ)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,l.yQ)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,l.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),l=Math.min(s,r),c=Math.max(s,r);return{range:new L.L(l,c),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))),c=n.verticalScrollbarWidth,h=10*(a.getTrackCount()-1)+20,d=c+h+(r.contentLeft-Pe.movedCodeBlockPadding);let u=0;for(const g of o){const e=c+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,l.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,l.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,l.OI)(this._state));const r=(0,l.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,l.lk)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new S.D1((0,l.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,l.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,l.yQ)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),c=(0,l.yQ)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let h="modified";this._register((0,l.Y)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(o)&&(h="original"),e.didChange(c)&&(h="modified"),!0)},(e=>{o.read(e),c.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 L.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,l.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let c;this._register((0,S.AV)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),c=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("",c,"",!1);h.push(d,{icon:!1,label:!0});const u=new _.rc("","Compare",b.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,l.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,l.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 c of i.mappings)if(c.lineRangeMapping.original.isEmpty||o.push({range:c.lineRangeMapping.original.toInclusiveRange(),options:n?te.Ob:te.XT}),c.lineRangeMapping.modified.isEmpty||a.push({range:c.lineRangeMapping.modified.toInclusiveRange(),options:n?te.Kl:te.Zw}),c.lineRangeMapping.modified.isEmpty||c.lineRangeMapping.original.isEmpty)c.lineRangeMapping.original.isEmpty||o.push({range:c.lineRangeMapping.original.toInclusiveRange(),options:te.KL}),c.lineRangeMapping.modified.isEmpty||a.push({range:c.lineRangeMapping.modified.toInclusiveRange(),options:te.Ou});else{const i=this._options.useTrueInlineDiffRendering.read(e)&&De(c.lineRangeMapping);for(const e of c.lineRangeMapping.innerChanges||[])if(c.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&o.push({range:e.originalRange,options:e.originalRange.isEmpty()&&r?te.wp:te.Zb}),c.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 c of s.changes){const e=c.original.toInclusiveRange();e&&o.push({range:e,options:n?te.Ob:te.XT});const t=c.modified.toInclusiveRange();t&&a.push({range:t,options:n?te.Kl:te.Zw});for(const i of c.innerChanges||[])o.push({range:i.originalRange,options:te.Zb}),a.push({range:i.modifiedRange,options:te.bk})}const l=this._diffModel.read(e).activeMovedText.read(e);for(const c of i.movedTexts)o.push({range:c.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(c===l?" currentMove":""),blockPadding:[Pe.movedCodeBlockPadding,0,Pe.movedCodeBlockPadding,Pe.movedCodeBlockPadding]}}),a.push({range:c.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(c===l?" 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,c.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,l.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,l.fm)((e=>{const t=this._boundarySashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,l.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,l.y0)(this,this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,l.y0)(this,this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,l.yQ)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,l.yQ)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,l.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,l.Rn)((e=>{this.domNodeSizeChanged.trigger(e)}))}));r.observe(this._domNode),this._register((0,a.s)((()=>r.disconnect()))),this._register((0,l.fm)((e=>{n.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,l.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=L.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,l.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,l.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,c=(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=`${c}px`,o.gutterItemView.layout(L.L.ofStartAndLength(a,c),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,l.y0)(this,this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this._showSash=(0,l.un)(this,(e=>this._options.renderSideBySide.read(e)&&this._hasActions.read(e))),this.width=(0,l.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,l.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,l.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,c.a0)(this,(t=>this._showSash.read(t)?new Ve(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,(0,c.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,l.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,l.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,l.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=L.L.tryCreate(n,t.endExclusive-n-i),a=L.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),lt=i(74850),ct=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 c=(0,l.y0)(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),h=(0,l.un)((e=>{const t=c.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,l.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,l.yQ)("viewZoneChanged",this._editors.original.onDidChangeViewZones),o=(0,l.yQ)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,l.yQ)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),c=(0,l.yQ)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,l.fm)((e=>{r.read(e),o.read(e),a.read(e),c.read(e);const t=h.read(e),l=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 R.y(e.startLineNumber,1)),n=s.coordinatesConverter.convertModelPositionToViewPosition(new R.y(e.endLineNumberExclusive,1)),r=n.lineNumber-i.lineNumber;return new ct.iE(i.lineNumber,n.lineNumber,r,t.toString())})):[]}const u=d((l||[]).map((e=>e.lineRangeMapping.original)),t.removeColor,this._editors.original),g=d((l||[]).map((e=>e.lineRangeMapping.modified)),t.insertColor,this._editors.modified);s?.setZones(u),n?.setZones(g)}))),t.add((0,l.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),l=this._editors.modified.getOption(104),c=new lt.m(l.verticalHasArrows?l.arrowSize:0,l.verticalScrollbarSize,0,r.height,a,o);d.setTop(c.getSliderPosition()),d.setHeight(c.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,l.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,l.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 bt=i(71319),Et=i(23452),St=i(60002),yt=i(58345),wt=i(73823),Lt=i(38844),Rt=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,l.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,l.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedObs=(0,Lt.Ud)(this.modified),this.originalObs=(0,Lt.Ud)(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=(0,l.y0)(this,this.modified.onDidChangeCursorSelection,(()=>this.modified.getSelections()??[])),this.modifiedCursor=(0,l.C)({owner:this,equalsFn:R.y.equals},(e=>this.modifiedSelections.read(e)[0]?.getPosition()??new R.y(1,1))),this.originalCursor=(0,l.y0)(this,this.original.onDidChangeCursorPosition,(()=>this.original.getPosition()??new R.y(1,1))),this._argCodeEditorWidgetOptions=null,this._register((0,l.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,Rt.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,l.FY)(this,0),this._screenReaderMode=(0,l.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,l.un)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,l.un)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,l.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,l.un)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,l.un)(this,(e=>!!this._options.read(e).renderMarginRevertIcon&&(!!this.renderSideBySide.read(e)&&(!this.readOnly.read(e)&&!this.shouldRenderGutterMenu.read(e))))),this.shouldRenderGutterMenu=(0,l.un)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,l.un)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,l.un)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,l.un)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,l.un)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,l.un)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,l.un)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,l.un)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,l.un)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,l.un)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,l.un)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,l.un)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,l.un)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,l.un)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,l.un)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.compactMode=(0,l.un)(this,(e=>this._options.read(e).compactMode)),this.trueInlineDiffRenderingEnabled=(0,l.un)(this,(e=>this._options.read(e).experimental.useTrueInlineView)),this.useTrueInlineDiffRendering=(0,l.un)(this,(e=>!this.renderSideBySide.read(e)&&this.trueInlineDiffRenderingEnabled.read(e))),this.hideUnchangedRegions=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount)),this._model=(0,l.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,l.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,l.X2)(this,void 0)),this._diffModel=(0,l.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,l.FY)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,l.FY)(this,!1),this._accessibleDiffViewerVisible=(0,l.un)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,l.FY)(this,void 0),this._layoutInfo=(0,l.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,l,c,h,d;if(!!s){const i=s.sashLeft.read(e);a=0,l=i-r-(this._movedBlocksLinesPart.read(e)?.width.read(e)??0),d=i-r,c=i,h=t-c-o}else{d=0;a=r,l=this._options.inlineViewHideOriginalLineNumbers.read(e)?0:Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(e)),c=r+l,h=t-c-o}return this.elements.original.style.left=a+"px",this.elements.original.style.width=l+"px",this._editors.original.layout({width:l,height:i},!0),n?.layout(d),this.elements.modified.style.left=c+"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,l.fm)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(St.R.isEmbeddedDiffEditor.key,!1),this._register((0,bt.w)(St.R.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,bt.w)(St.R.comparingMovedCode,this._contextKeyService,(e=>!!this._diffModel.read(e)?.movedTextToCompare.read(e)))),this._register((0,bt.w)(St.R.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,bt.w)(St.R.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,bt.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,bt.w)(St.R.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,bt.w)(St.R.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,bt.w)(St.R.diffEditorOriginalUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.original.uri.toString()??""))),this._register((0,bt.w)(St.R.diffEditorModifiedUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.modified.uri.toString()??""))),this._overviewRulerPart=(0,c.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,c.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,c.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(ot.N,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,c.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 b=(0,c.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),E=(0,l.un)(this,(e=>{const t=b.read(e).viewZones.read(e).orig,i=f.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),y=(0,l.un)(this,(e=>{const t=b.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,E,(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,c.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 L=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,S.AV)(this.elements.modified,{visibility:L})),this._register((0,S.AV)(this.elements.original,{visibility:L})),this._createDiffEditorContributions(),d.addDiffEditor(this),this._gutter=(0,c.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,l.OI)(this._layoutInfo)),(0,c.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 R=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,l.yC)(((e,t)=>{if(!0===R.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.s)((()=>e.done())))}}))),this._register((0,l.yC)(((e,t)=>{t.add(new((0,ne.b)(vt,e))(this._editors,this._diffModel,this._options,this))}))),this._register((0,l.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,l.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 Et._.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,l.PO)(t,(t=>{const i=e?.object;l.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 R.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,l.Rn)((t=>{for(const i of e)i.collapseAll(t)}))}showAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,l.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)},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),l=i(86571),c=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 c.wm(new l.M(1,2),new l.M(1,t.getLineCount()+1),[new c.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)},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),l=i(5662),c=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),b=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},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class extends l.jG{static{s=this}static{this._breadcrumbsSourceFactory=(0,c.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,c.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,c.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,c.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),l=r.read(e);for(let r=0;r<l.length;r++){const h=l[r];if(!h.shouldHideControls(e)&&(!a||0!==r&&r!==l.length-1))if(a){{const e=(0,c.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,c.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,c.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),n=new p.D1(e,24);s.push(n),t.add(new L(this._editors.original,n,h,h.originalUnchangedRange,!o,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,c.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),s=new p.D1(e,24);n.push(s),t.add(new L(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 l={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,c.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:l})));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,c.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:l})));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,c.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=E([S(3,b._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,c.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 L extends p.uN{constructor(e,t,i,s,a,l,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=l,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,c.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 l=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(l-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,c.fm)((e=>{const t=[];if(!this._hide){const s=i.getHiddenModifiedRange(e).length,a=(0,C.kg)("hiddenLines","{0} hidden lines",s),l=(0,n.$)("span",{title:(0,C.kg)("diff.hiddenLines.expandAll","Double click to unfold")},a);l.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(l);const c=this._unchangedRegion.getHiddenModifiedRange(e),h=this._modifiedOutlineSource.getBreadcrumbItems(c,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)})))}}},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:()=>b});var s=i(10350),n=i(25689),r=i(87289),o=i(78209),a=i(66261),l=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 c=(0,l.pU)("diff-insert",s.W.add,(0,o.kg)("diffInsertIcon","Line decoration for inserts in the diff editor.")),h=(0,l.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(c),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}),b=r.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},92368:(e,t,i)=>{"use strict";i.d(t,{$y:()=>p,AV:()=>b,Am:()=>d,D1:()=>v,EK:()=>w,MZ:()=>S,Mu:()=>y,Nu:()=>f,O8:()=>L,Vs:()=>E,pN:()=>m,pY:()=>u,rX:()=>g,uN:()=>_});var s=i(46041),n=i(18447),r=i(5662),o=i(31308),a=i(4983),l=i(83069),c=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],l=t[o],c=i(a),h=i(l);c<h?(n.push(a),r++):c>h?(n.push(l),o++):(n.push(s(a,l)),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 l=-1;let c;function h(){const t=Date.now()-l;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?c=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!==c&&(e.cancelAnimationFrame(c),c=void 0),n=r,s=t.read(i),l=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(b(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 b(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 E(e,t,i,s){const n=new r.Cm,a=[];return n.add((0,o.yC)(((n,r)=>{const l=t.read(n),c=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 l){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),a.push(i),s?.add(i),c.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 l)e.onChange&&(h.set(e.onChange,c.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 c.Q.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return c.Q.fromPositions(new l.y(t,e.column))}if(!i.innerChanges)return c.Q.fromPositions(new l.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 c.Q.fromPositions(new l.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 c.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 L{static create(e,t=void 0){return new R(e,e,t)}static createWithDisposable(e,t,i=void 0){const s=new r.Cm;return s.add(t),s.add(e),new R(e,s,i)}}class R extends L{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 L{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))}}},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),l=i(5662),c=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 l.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,c.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)},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)}}},15092:(e,t,i)=>{"use strict";i.d(t,{iP:()=>a,iu:()=>n,q2:()=>o,tA:()=>r,ui:()=>l});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 l{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)}}},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),l=i(63346),c=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:c,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,c)%h!==0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,l.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,c,h,d):s.shiftIndent(a,_+1,c,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 l=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==l)&&((u||this._opts.isUnshift||0!==a.length)&&(-1===l&&(l=a.length),!this._opts.isUnshift||0!==l)))if(this._opts.isUnshift){l=Math.min(l,h);for(let e=0;e<l;e++){if(9===a.charCodeAt(e)){l=e+1;break}}this._addEditOperation(t,new o.Q(r,1,r,l+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,c.JZ)],p)},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)}}},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}},94371:(e,t,i)=>{"use strict";i.d(t,{Gn:()=>m,JJ:()=>c,vf:()=>p});var s=i(61059),n=i(87908),r=i(24329),o=i(78209),a=i(1646),l=i(46359);const c=Object.freeze({id:"editor",order:5,type:"object",title:o.kg("editorConfigurationTitle","Editor"),scope:5}),h={...c,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}l.O.as(a.Fd.Configuration).registerConfiguration(h)},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:()=>E,lw:()=>h,m9:()=>T,n0:()=>d,qB:()=>W,r_:()=>A,wA:()=>C,xZ:()=>I,xq:()=>c,zM:()=>_});var s=i(25890),n=i(10146),r=i(98067),o=i(24329),a=i(26486),l=i(78209);const c=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 b 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 b.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function E(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 L 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 R 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:l.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:l.kg("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:l.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:l.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:l.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:l.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:l.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:l.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(b.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,l=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,b=d?2:3;let E=Math.floor(n*s);const S=E/n;let y=!1,w=!1,L=b*u,R=u/n,T=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:l,desiredRatio:c,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,L=1,R=u/n;else{let s=!1,h=u+1;if("fit"===p){const e=Math.ceil((r+_+l)*L);C&&o&&v<=t.stableFitRemainingWidth?(s=!0,h=t.stableFitMaxMinimapScale):s=e>E}if("fill"===p||s){y=!0;const s=u;L=Math.min(a*n,Math.max(1,Math.floor(1/c))),C&&o&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(L/b))),u>s&&(T=Math.min(2,u/s)),R=u/n/T,E=Math.ceil(Math.max(i,r+_+l)*L),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const x=Math.floor(g*R),k=Math.min(x,Math.max(0,Math.floor((v-f-2)*R/(l+R)))+c);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:L,minimapCanvasInnerWidth:A,minimapCanvasInnerHeight:E,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,l=t.pixelRatio,c=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),b=e.get(84),E=e.get(73),S=e.get(104),y=S.verticalScrollbarSize,w=S.verticalHasArrows,L=S.arrowSize,R=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:l,scrollBeyondLastLine:C,paddingTop:b.top,paddingBottom:b.bottom,minimap:E,verticalScrollbarWidth:y,viewLineCount:c,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?L: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:R,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:l.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 L(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",l.kg("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:l.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:[l.kg("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),l.kg("accessibilitySupport.on","Optimize for usage with a Screen Reader."),l.kg("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:l.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 b(3,"accessibilityPageSize",10,1,1073741824,{description:l.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",l.kg("editorViewAccessibleLabel","Editor content"))),ariaRequired:B(new v(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:B(new v(8,"screenReaderAnnounceInlineSuggestion",!0,{description:l.kg("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:B(new L(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.kg("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),l.kg("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:l.kg("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:B(new L(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.kg("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),l.kg("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:l.kg("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:B(new L(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",l.kg("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:l.kg("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:B(new L(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",l.kg("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:l.kg("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:B(new L(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.kg("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),l.kg("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:l.kg("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:B(new R(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:[l.kg("editor.autoIndent.none","The editor will not insert indentation automatically."),l.kg("editor.autoIndent.keep","The editor will keep the current line's indentation."),l.kg("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),l.kg("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),l.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:l.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 L(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[l.kg("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),l.kg("editor.autoSurround.quotes","Surround with quotes but not brackets."),l.kg("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:l.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:l.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:l.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:[l.kg("editor.guides.bracketPairs.true","Enables bracket pair guides."),l.kg("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),l.kg("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:l.kg("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.kg("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),l.kg("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),l.kg("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:l.kg("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:l.kg("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:l.kg("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[l.kg("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),l.kg("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),l.kg("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:l.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:l.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:l.kg("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:B(new y(18,"codeLensFontFamily","",{description:l.kg("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:B(new b(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:l.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:l.kg("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:B(new L(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[l.kg("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),l.kg("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),l.kg("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:l.kg("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:B(new b(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:l.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:l.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:l.kg("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:l.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:l.kg("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:B(new R(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:l.kg("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:B(new L(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[l.kg("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),l.kg("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),l.kg("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:l.kg("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:B(new R(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:l.kg("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:B(new b(29,"cursorSurroundingLines",0,0,1073741824,{description:l.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 L(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[l.kg("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),l.kg("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:l.kg("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:B(new b(31,"cursorWidth",0,0,1073741824,{markdownDescription:l.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:l.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:l.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:l.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:l.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:[l.kg("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),l.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:l.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:l.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:l.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:l.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:b.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 L(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[l.kg("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),l.kg("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),l.kg("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:l.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:l.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:l.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:[l.kg("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),l.kg("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),l.kg("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:l.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:[l.kg("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),l.kg("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),l.kg("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:l.kg("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:l.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:l.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:l.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:l.kg("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:B(new L(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[l.kg("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),l.kg("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:l.kg("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:B(new v(45,"foldingHighlight",!0,{description:l.kg("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:B(new v(46,"foldingImportsByDefault",!1,{description:l.kg("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:B(new b(47,"foldingMaximumRegions",5e3,10,65e3,{description:l.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:l.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:l.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:l.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:l.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:l.kg("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:B(new v(57,"glyphMargin",!0,{description:l.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:[l.kg("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),l.kg("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),l.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:l.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:l.kg("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:l.kg("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:l.kg("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:l.kg("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:l.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:l.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:l.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:l.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:l.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:l.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:l.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:l.kg("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:l.kg("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:l.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:l.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:l.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:b.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),hidingDelay:b.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:l.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:[l.kg("editor.lightbulb.enabled.off","Disable the code action menu."),l.kg("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),l.kg("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:l.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 b.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?b.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:l.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:[l.kg("lineNumbers.off","Line numbers are not rendered."),l.kg("lineNumbers.on","Line numbers are rendered as absolute number."),l.kg("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),l.kg("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:l.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 b(69,"lineNumbersMinChars",5,1,300)),linkedEditing:B(new v(70,"linkedEditing",!1,{description:l.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:l.kg("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:B(new L(72,"matchBrackets","always",["always","near","never"],{description:l.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:l.kg("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:l.kg("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[l.kg("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),l.kg("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),l.kg("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:l.kg("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:l.kg("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:l.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:l.kg("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:l.kg("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:l.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:l.kg("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:l.kg("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:l.kg("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:l.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:b.clampedInt(t.scale,1,1,3),maxColumn:b.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 L(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:B(new S(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:l.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?l.kg("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):l.kg("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:B(new v(77,"multiCursorMergeOverlapping",!0,{description:l.kg("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:B(new R(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.zx?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[l.kg("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),l.kg("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:l.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 L(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[l.kg("multiCursorPaste.spread","Each cursor pastes a single line of the text."),l.kg("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:l.kg("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:B(new b(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:l.kg("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:B(new L(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[l.kg("occurrencesHighlight.off","Does not highlight occurrences."),l.kg("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),l.kg("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:l.kg("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:B(new v(82,"overviewRulerBorder",!0,{description:l.kg("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:B(new b(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:l.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:l.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:b.clampedInt(t.top,0,0,1e3),bottom:b.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:l.kg("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:l.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:[l.kg("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),l.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:l.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:l.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 L(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[l.kg("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),l.kg("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:l.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:l.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:[l.kg("on","Quick suggestions show inside the suggest widget"),l.kg("inline","Quick suggestions show as ghost text"),l.kg("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:l.kg("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:l.kg("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:l.kg("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:l.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 b(91,"quickSuggestionsDelay",10,0,1073741824,{description:l.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:l.kg("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:l.kg("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:B(new v(95,"renderControlCharacters",!0,{description:l.kg("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:B(new L(96,"renderFinalNewline",r.j9?"dimmed":"on",["off","on","dimmed"],{description:l.kg("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:B(new L(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",l.kg("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:l.kg("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:B(new v(98,"renderLineHighlightOnlyWhenFocus",!1,{description:l.kg("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:B(new L(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:B(new L(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",l.kg("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),l.kg("renderWhitespace.selection","Render whitespace characters only on selected text."),l.kg("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:l.kg("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:B(new b(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:B(new v(102,"roundedSelection",!0,{description:l.kg("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:B(new class extends u{constructor(){const e=[],t={type:"number",description:l.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:l.kg("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:l.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:b.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"===typeof i){const e=i;t.push({column:b.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:[l.kg("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),l.kg("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),l.kg("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:l.kg("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.kg("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),l.kg("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),l.kg("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:l.kg("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:l.kg("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:l.kg("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:l.kg("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:l.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=b.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=b.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:b.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:b.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:s,verticalSliderSize:b.clampedInt(t.verticalSliderSize,s,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:_(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:B(new b(105,"scrollBeyondLastColumn",4,0,1073741824,{description:l.kg("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:B(new v(106,"scrollBeyondLastLine",!0,{description:l.kg("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:B(new v(107,"scrollPredominantAxis",!0,{description:l.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:l.kg("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.j9})),selectionHighlight:B(new v(109,"selectionHighlight",!0,{description:l.kg("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:B(new v(110,"selectOnLineNumbers",!0)),showFoldingControls:B(new L(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[l.kg("showFoldingControls.always","Always show the folding controls."),l.kg("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),l.kg("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:l.kg("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:B(new v(112,"showUnused",!0,{description:l.kg("showUnused","Controls fading out of unused code.")})),showDeprecated:B(new v(141,"showDeprecated",!0,{description:l.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:l.kg("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[l.kg("editor.inlayHints.on","Inlay hints are enabled"),l.kg("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),l.kg("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),l.kg("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:l.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:l.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:l.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:b.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 L(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[l.kg("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),l.kg("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),l.kg("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),l.kg("snippetSuggestions.none","Do not show snippet suggestions.")],description:l.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:l.kg("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:l.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:l.kg("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:B(new b(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:[l.kg("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),l.kg("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:l.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:l.kg("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:l.kg("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:l.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:[l.kg("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),l.kg("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),l.kg("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),l.kg("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:l.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:l.kg("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:l.kg("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:l.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:l.kg("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:l.kg("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:l.kg("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:l.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:l.kg("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:l.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:l.kg("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:l.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:l.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:[l.kg("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),l.kg("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),l.kg("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:l.kg("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:l.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:l.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:l.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:[l.kg("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),l.kg("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),l.kg("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:l.kg("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:l.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:l.kg("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:B(new b(120,"suggestFontSize",0,0,1e3,{markdownDescription:l.kg("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:B(new b(121,"suggestLineHeight",0,0,1e3,{markdownDescription:l.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:l.kg("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:B(new L(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[l.kg("suggestSelection.first","Always select the first suggestion."),l.kg("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),l.kg("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:l.kg("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:B(new L(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[l.kg("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),l.kg("tabCompletion.off","Disable tab completions."),l.kg("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:l.kg("tabCompletion","Enables tab completions.")})),tabIndex:B(new b(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:l.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:l.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:l.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:l.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:l.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:l.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:l.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 L(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[l.kg("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),l.kg("unusualLineTerminators.off","Unusual line terminators are ignored."),l.kg("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:l.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:l.kg("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:B(new L(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[l.kg("wordBreak.normal","Use the default line break rule."),l.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:l.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:l.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:l.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:l.kg("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:B(new L(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[l.kg("wordWrap.off","Lines will never wrap."),l.kg("wordWrap.on","Lines will wrap at the viewport width."),l.kg({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),l.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:l.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 b(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:l.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 L(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:B(new L(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:l.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:l.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:[l.kg("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),l.kg("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),l.kg("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),l.kg("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:l.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:[l.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."),l.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:l.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}})}},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))}}},74196:(e,t,i)=>{"use strict";i.d(t,{YJ:()=>l,_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),l=e.get(54),c=e.get(67),h=e.get(64);return a._create(s,n,r,o,l,c,h,t,i)}static _create(e,t,i,s,l,c,h,d,u){0===c?c=o*i:c<8&&(c*=i),(c=Math.round(c))<8&&(c=8);const g=1+(u?0:.1*r.D.getZoomLevel());if(i*=g,c*=g,l===n.r_.TRANSLATE)if("normal"===t||"bold"===t)l=n.r_.OFF;else{l=`'wght' ${parseInt(t,10)}`,t="normal"}return new a({pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:s,fontVariationSettings:l,lineHeight:c,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 l 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}}},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()}}},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 l=s.Z5(e,n,r.offset);r.nextGraphemeLength();const c=this._nextVisibleColumn(l,o,i),h=r.offset+1;if(c>=t){return c-t<t-o?h:a}o=c,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)}}},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}}}},87119:(e,t,i)=>{"use strict";i.d(t,{A3:()=>x,AQ:()=>W,Am:()=>R,As:()=>A,BD:()=>J,Bo:()=>X,CM:()=>w,D0:()=>c,Ek:()=>P,H0:()=>L,I2:()=>Q,IW:()=>ee,If:()=>Z,JB:()=>I,L0:()=>p,Mf:()=>l,P1:()=>re,Pe:()=>se,Qt:()=>f,WD:()=>ne,WS:()=>ie,WY:()=>oe,Xr:()=>D,aZ:()=>B,bB:()=>te,hz:()=>E,je:()=>u,kG:()=>a,kM:()=>h,l5:()=>j,lQ:()=>z,n4:()=>$,ob:()=>b,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.")),l=(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.")),c=((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",c,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",c,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).")),b=(0,r.x1A)("editorIndentGuide.background2","#00000000",s.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),E=(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).")),L=(0,r.x1A)("editorIndentGuide.activeBackground1",v,s.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),R=(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}; }`)}))},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})},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)}},86571:(e,t,i)=>{"use strict";i.d(t,{M:()=>a,S:()=>l});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 l(e[0].slice());for(let i=1;i<e.length;i++)t=t.getUnion(new l(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 l{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 l(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 l([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 l(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 l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},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)}}},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}}}},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,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return i<a?(i=a,s=l):i===a&&(s=Math.max(s,l)),r>c?(r=c,o=h):r===c&&(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}}},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)}}},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,l;function c(){return o||(o=new TextDecoder("UTF-16LE")),o}function h(){return l||(l=n.cm()?c():(a||(a=new TextDecoder("UTF-16BE")),a)),l}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):c().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)}}},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 l=o._readString(e,t);return t+=o._writeStringSize(l),i.push(new o(n,a,r,l)),t}}function a(e,t){if(null===e||0===e.length)return t;return new l(e,t).compress()}class l{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]=l._splitCurr(s,i.newPosition-s.oldPosition);this._acceptCurr(e),s=t;continue}if(i.newPosition<s.oldPosition){const[e,t]=l._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]=l._splitPrev(i,s.oldLength);n=e,r=s,i=o,s=this._getCurr(++t)}else{const[t,o]=l._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=l._merge(this._result);return l._removeNoOps(n)}_acceptCurr(e){this._result[this._resultLen++]=l._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++]=l._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}}},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 l{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 c=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),l=r.y.lift({lineNumber:n.range.startLineNumber+i,column:n.range.startColumn+(n.range.startLineNumber===t?s:0)}),c=o.createRange(l);e.push(c),i=c.endLineNumber-n.range.endLineNumber,s=c.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 c.Q.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new n.D7("start must be before end");return new c.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 l(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},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}`}}},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}}},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}},26486:(e,t,i)=>{"use strict";i.d(t,{Io:()=>a,J3:()=>r,Ld:()=>o,Th:()=>c});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 l=new n.w;function c(e,t,i,n,r){if(t=a(t),r||(r=s.f.first(l)),i.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:n+=s,c(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}l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},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 l=0;l<n;l++){if(l===t)return[o,a,r];r%i===0&&(o=l,a=r);switch(e.charCodeAt(l)){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,l,c]=n.whitespaceVisibleColumn(e,t,i);if(-1===c)return-1;let h;switch(r){case 0:h=!0;break;case 1:h=!1;break;case 2:if(c%i===0)return t;h=c%i<=i/2}if(h){if(-1===a)return-1;let t=l;for(let n=a;n<o;++n){if(t===l+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===l+i?a:-1}const d=s.A.nextRenderTabStop(c,i);let u=c;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}}},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),l=i(36677),c=i(83069);class h{static deleteRight(e,t,i,s){const r=[];let o=3!==e;for(let c=0,h=s.length;c<h;c++){const e=s[c];let h=e;if(h.isEmpty()){const s=e.getPosition(),n=a.I.right(t,i,s);h=new l.Q(n.lineNumber,n.column,s.lineNumber,s.column)}h.isEmpty()?r[c]=null:(h.startLineNumber!==h.endLineNumber&&(o=!0),r[c]=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 l=0,c=o.length;l<c;l++){const c=o[l],h=c.getPosition();if(!c.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 l.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 l=0,c=s.length;l<c;l++){const e=h.getDeleteRange(s[l],i,t);e.isEmpty()?o[l]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),o[l]=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 l.Q(n.lineNumber,r,n.lineNumber,n.column)}}return l.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 c.y(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const s=[];let o=null;i.sort(((e,t)=>c.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,c,h,d;e.lineNumber<t.getLineCount()?(i=e.lineNumber,c=1,h=e.lineNumber+1,d=1):e.lineNumber>1&&o?.endLineNumber!==e.lineNumber?(i=e.lineNumber-1,c=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,c=1,h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber));const u=new l.Q(i,c,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})}}},50672:(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),l=i(83069),c=i(36677);class h{static addCursorDown(e,t,i){const s=[];let n=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];s[n++]=new r.MF(l.modelState,l.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateDown(e.cursorConfig,e.model,l.modelState)):r.MF.fromViewState(o.I.translateDown(e.cursorConfig,e,l.viewState))}return s}static addCursorUp(e,t,i){const s=[];let n=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];s[n++]=new r.MF(l.modelState,l.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateUp(e.cursorConfig,e.model,l.modelState)):r.MF.fromViewState(o.I.translateUp(e.cursorConfig,e,l.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,l=e.model.getLineMaxColumn(a.lineNumber),c=r-n.column===l-a.column;return o||c?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 c.Q(o,1,o,1),0,0,new l.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 c.Q(1,1,1,1),0,0,new l.y(i,s),0))}static line(e,t,i,s,n){const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new l.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 c.Q(o.lineNumber,1,i,s),2,0,new l.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 c.Q(i,s,i,s),0,0,new l.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 l.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 l=o.I.vertical(e.cursorConfig,e,n,t.viewState.position.column,t.viewState.leftoverVisibleColumns,a,!1);return r.MF.fromViewState(t.viewState.move(s,l.lineNumber,l.column,l.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],l=a.viewState.position.lineNumber,c=Math.round(e.getLineLength(l)/2);s[n]=r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,a.viewState,i,c))}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],l=a.viewState.position.lineNumber,c=Math.round(e.getLineLength(l)/2);s[n]=r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,a.viewState,i,c))}return s}static _moveDownByViewLines(e,t,i,s){const n=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];n[a]=r.MF.fromViewState(o.I.moveDown(e.cursorConfig,e,l.viewState,i,s))}return n}static _moveDownByModelLines(e,t,i,s){const n=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];n[a]=r.MF.fromModelState(o.I.moveDown(e.cursorConfig,e.model,l.modelState,i,s))}return n}static _moveUpByViewLines(e,t,i,s){const n=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];n[a]=r.MF.fromViewState(o.I.moveUp(e.cursorConfig,e,l.viewState,i,s))}return n}static _moveUpByModelLines(e,t,i,s){const n=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];n[a]=r.MF.fromModelState(o.I.moveUp(e.cursorConfig,e.model,l.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={}))},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),l=i(32799);class c{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 c(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),l=h.left(e,t,a);r=l.lineNumber,o=l.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 c(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),l=h.right(e,t,a);r=l.lineNumber,o=l.column}return i.move(s,r,o,0)}static vertical(e,t,i,s,o,a,l,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=l?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),s)):i>u?(i=u,s=l?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 c(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 l,c=0;do{l=h.down(e,t,o+c,a,i.leftoverVisibleColumns,n,!0);if(t.normalizePosition(new r.y(l.lineNumber,l.column),2).lineNumber>o)break}while(c++<10&&o+c<t.getLineCount());return i.move(s,l.lineNumber,l.column,l.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 l.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 l.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)}}},26685:(e,t,i)=>{"use strict";i.d(t,{AO:()=>w,Dr:()=>L,Hs:()=>k,K4:()=>C,Ls:()=>y,UN:()=>T,YA:()=>R,dU:()=>_,ey:()=>B,h0:()=>x,is:()=>E,kr:()=>S,oi:()=>b,sx:()=>v});var s=i(64383),n=i(91508),r=i(15092),o=i(7936),a=i(71964),l=i(32799),c=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=b.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 l.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 l=e.normalizeIndentation(i);if(0!==a){l+=t.getLineContent(o).substring(a-1,s.startColumn-1)}l+=r?n:"";return{range:new h.Q(o,1,s.endLineNumber,s.endColumn),text:l}}}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 l.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 l.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}}class b{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 l.vY(4,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static getAutoClosingPairClose(e,t,i,s,n){for(const l of i)if(!l.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,l.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 l of r){const{lineNumber:i,beforeColumn:n,afterColumn:r}=l,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,c.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 E{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 l.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,l.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,l.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 c=o.getPosition();i.tokenization.forceTokenization(c.lineNumber);const d=i.tokenization.getLineTokens(c.lineNumber);let u;try{u=t.onElectricCharacter(a,d,c.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:c.lineNumber,column:s},500);if(o){if(o.startLineNumber===c.lineNumber)return null;const s=i.getLineContent(o.startLineNumber),d=n.UU(s),u=t.normalizeIndentation(d),g=i.getLineContent(c.lineNumber),p=i.getLineFirstNonWhitespaceColumn(c.lineNumber)||c.column,m=u+g.substring(p-1,c.column-1)+a,f=new h.Q(c.lineNumber,1,c.lineNumber,c.column),_=new r.iu(f,m);return new l.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 l.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 l.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),l=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 l=s.endColumn,c=t.getLineContent(s.endLineNumber),h=n.HG(c);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 l<=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(l),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 L{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 l.vY(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,s,n){const o=[];for(let a=0,l=i.length;a<l;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 l.vY(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class R{static getEdits(e,t,i,s,n,r,o,a){const c=s.map((e=>this._compositionType(i,e,n,r,o,a)));return new l.vY(4,c,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,s,n,o){if(!t.isEmpty())return null;const a=t.getPosition(),l=Math.max(1,a.column-s),c=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+n),d=new h.Q(a.lineNumber,l,a.lineNumber,c);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 l.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 l=e.normalizeIndentation(o);if(!i.startsWith(l)){s[n]=new r.iu(new h.Q(a.startLineNumber,1,a.startLineNumber,i.length+1),l,!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(),c=t.getLineContent(a.lineNumber);if(c.charAt(a.column-1)!==n)return!1;const h=(0,l.vG)(n);if(92===(a.column>2?c.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,l.vG)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}},49265:(e,t,i)=>{"use strict";i.d(t,{T:()=>a,v:()=>l});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,l){return o.YA.getEdits(e,t,i,s,n,r,a,l)}static compositionEndWithInterceptors(e,t,i,s,a,l){if(!s)return null;let c=null;for(const n of s)if(null===c)c=n.insertedText;else if(c!==n.insertedText)return null;if(!c||1!==c.length)return null;const h=c;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 l=[];for(let r=0,o=i.length;r<o;r++)l.push(new n.y(i[r],s[r].deletedText,t.surroundingPairs[h]));return new r.vY(4,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const u=o.K4.getEdits(t,i,a,l,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 l=o.AO.getEdits(i,s,n,a,e);if(void 0!==l)return l;const c=o.dU.getEdits(i,s,n,a,e);if(void 0!==c)return c;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 l{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}}},97681:(e,t,i)=>{"use strict";i.d(t,{c:()=>h,z:()=>c});var s=i(91508),n=i(32799),r=i(1226),o=i(81782),a=i(83069),l=i(36677);class c{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 l=c._findPreviousWordOnLine(e,t,new a.y(r,o));if(0===s)return new a.y(r,l?l.start+1:1);if(1===s)return!n&&l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=c._findPreviousWordOnLine(e,t,new a.y(r,l.start+1))),new a.y(r,l?l.start+1:1);if(3===s){for(;l&&2===l.wordType;)l=c._findPreviousWordOnLine(e,t,new a.y(r,l.start+1));return new a.y(r,l?l.start+1:1)}return l&&o<=l.end+1&&(l=c._findPreviousWordOnLine(e,t,new a.y(r,l.start+1))),new a.y(r,l?l.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 l=c._findNextWordOnLine(e,t,new a.y(n,r));if(2===s)l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=c._findNextWordOnLine(e,t,new a.y(n,l.end+1))),r=l?l.end+1:t.getLineMaxColumn(n);else if(3===s){for(o&&(r=0);l&&(2===l.wordType||l.start+1<=r);)l=c._findNextWordOnLine(e,t,new a.y(n,l.end+1));r=l?l.start+1:t.getLineMaxColumn(n)}else l&&!o&&r>=l.start+1&&(l=c._findNextWordOnLine(e,t,new a.y(n,l.end+1))),r=l?l.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 l.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 l.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=c._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=c._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 l.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 l.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 l.Q(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.Q(i.lineNumber,1,i.lineNumber+1,1):new l.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 l.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=c._findPreviousWordOnLine(e,t,i);if(h&&r(h))return a(h);const d=c._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=c._moveWordPartLeft(e,i);return new l.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 l.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=c._findNextWordOnLine(i,s,o);return 2===t?p?d=p.end+1:d<g||h===u?d=g:(h++,p=c._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h)):(p&&d>=p.start+1&&(p=c._findNextWordOnLine(i,s,new a.y(h,p.end+1))),p?d=p.start+1:d<g||h===u?d=g:(h++,p=c._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h))),new l.Q(h,d,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=c._moveWordPartRight(e,i);return new l.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _createWordAtPosition(e,t,i){const s=new l.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=c._findPreviousWordOnLine(n,e,s);if(r&&1===r.wordType&&r.start<=s.column-1&&s.column-1<=r.end)return c._createWordAtPosition(e,s.lineNumber,r);const a=c._findNextWordOnLine(n,e,s);return a&&1===a.wordType&&a.start<=s.column-1&&s.column-1<=a.end?c._createWordAtPosition(e,s.lineNumber,a):null}static word(e,t,i,s,r){const h=(0,o.i)(e.wordSeparators,e.wordSegmenterLocales),d=c._findPreviousWordOnLine(h,t,r),u=c._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 l.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 c{static deleteWordPartLeft(e){const t=d([c.deleteWordLeft(e,0),c.deleteWordLeft(e,2),c._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.Q.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=d([c.deleteWordRight(e,0),c.deleteWordRight(e,2),c._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.Q.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i,s){const n=d([c.moveWordLeft(e,t,i,0,s),c.moveWordLeft(e,t,i,2,s),c._moveWordPartLeft(t,i)]);return n.sort(a.y.compare),n[2]}static moveWordPartRight(e,t,i){const s=d([c.moveWordRight(e,t,i,0),c.moveWordRight(e,t,i,2),c._moveWordPartRight(t,i)]);return s.sort(a.y.compare),s[0]}}function d(e){return e.filter((e=>Boolean(e)))}},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),l=i(93895);const c=()=>!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 c of a)this.surroundingPairs[c.open]=c.close;const l=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=l?.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,l.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 c;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}},68938:(e,t,i)=>{"use strict";i.d(t,{$8:()=>a,SL:()=>o,_3:()=>l,aY:()=>h,uY:()=>c});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():l.zero,s?s.getStarts():new l(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 l(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new l(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class l{static{this.zero=new l(0,0)}static{this.max=new l(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 l(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class c{static{this.instance=new c}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}}},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),l=i(68938);class c{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=l.uY.instance,s){if(0===e.length||0===t.length)return l.SL.trivial(e,t);const n=new c(e.length,t.length),r=new c(e.length,t.length),a=new c(e.length,t.length);for(let o=0;o<e.length;o++)for(let c=0;c<t.length;c++){if(!i.isValid())return l.SL.trivialTimedOut(e,t);const h=0===o?0:n.get(o-1,c),d=0===c?0:n.get(o,c-1);let u;e.getElement(o)===t.getElement(c)?(u=0===o||0===c?0:n.get(o-1,c-1),o>0&&c>0&&3===r.get(o-1,c-1)&&(u+=a.get(o-1,c-1)),u+=s?s(o,c):1):u=-1;const g=Math.max(h,d,u);if(g===u){const e=o>0&&c>0?a.get(o-1,c-1):0;a.set(o,c,e+1),r.set(o,c,3)}else g===h?(a.set(o,c,0),r.set(o,c,1)):g===d&&(a.set(o,c,0),r.set(o,c,2));n.set(o,c,g)}const h=[];let d=e.length,u=t.length;function g(e,t){e+1===d&&t+1===u||h.push(new l.$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 l.SL(h,!1)}}class g{compute(e,t,i=l.uY.instance){if(0===e.length||0===t.length)return l.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 c=new m;c.set(0,r(0,0));const h=new f;h.set(0,0===c.get(0)?null:new p(null,0,0,c.get(0)));let d=0;e:for(;;){if(a++,!i.isValid())return l.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:c.get(d+1),a=d===e?-1:c.get(d-1)+1;i++;const l=Math.min(Math.max(o,a),s.length),u=l-d;if(i++,l>s.length||u>n.length)continue;const g=r(l,u);c.set(d,g);const m=l===o?h.get(d+1):h.get(d-1);if(h.set(d,g!==l?new p(m,l,u,g-l):m),c.get(d)===s.length&&c.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 l.$8(new o.L(e,_),new o.L(t,v))),!u)break;_=u.x,v=u.y,u=u.prev}return g.reverse(),new l.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),b=i(83069);class E{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=L(e>0?this.elements[e-1]:-1),i=L(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 b.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 L(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 R(e,t,i,n,o,a){let{moves:l,excludedChanges:c}=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 l of r){let e,t=-1;for(const i of o){const s=l.computeSimilarity(i);s>t&&(t=s,e=i)}if(t>.9&&e&&(o.delete(e),n.push(new _.WL(l.range,e.range)),a.add(l.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 l=[],c=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]}`;c.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=[];c.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);l.push(new _.WL(i,t)),d.addRange(t),u.addRange(i)}}l.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const g=new v.vJ(e);for(let s=0;s<l.length;s++){const t=l[s],i=g.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),c=(0,v.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),h=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-c.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,b;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))),b=0;b<f;b++){const e=t.original.endLineNumberExclusive+b,i=t.modified.endLineNumberExclusive+b;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}b>0&&(u.addRange(new r.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),d.addRange(new r.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(C>0||b>0)&&(l[s]=new _.WL(new r.M(t.original.startLineNumber-C,t.original.endLineNumberExclusive+b),new r.M(t.modified.startLineNumber-C,t.modified.endLineNumberExclusive+b)))}return l}(e.filter((e=>!c.has(e))),n,o,t,i,a);return(0,s.E4)(l,h),l=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}(l),l=l.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})),l=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,l),l}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 E([e],new a.Q(1,1,1,e.length),!1),new E([t],new a.Q(1,1,1,t.length),!1),i);let n=0;const r=l.$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 c=0===i.maxComputationTimeMs?l.uY.instance:new l.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,c,((i,s)=>e[i]===t[s]?0===t[s].length?.1:1+Math.log(1+t[s].length):.99)):this.myersDiffingAlgorithm.compute(m,f,c))();let C=v.diffs,b=v.hitTimeout;C=(0,x.NC)(m,f,C),C=(0,x.X5)(m,f,C);const E=[],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 l.$8(new o.L(i,i+1),new o.L(n,n+1)),c,h);for(const e of s.mappings)E.push(e);s.hitTimeout&&(b=!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,c,h);i.hitTimeout&&(b=!0);for(const e of i.mappings)E.push(e)}S(e.length-y);const L=O(E,e,t);let R=[];return i.computeMoves&&(R=this.computeMoves(L,e,t,g,p,c,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 L){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(L,R,b)}computeMoves(e,t,i,s,n,r,o){return R(e,t,i,s,n,r).map((e=>{const s=O(this.refineDiff(t,i,new l.$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),l=new E(e,a.originalRange,n),c=new E(t,a.modifiedRange,n),h=l.length+c.length<500?this.dynamicProgrammingDiffing.compute(l,c,s):this.myersDiffingAlgorithm.compute(l,c,s),d=!1;let u=h.diffs;u=(0,x.NC)(l,c,u),u=(0,x.Lk)(l,c,u),u=(0,x.sq)(l,c,u),u=(0,x.Rl)(l,c,u);const g=u.map((e=>new _.q6(l.translateRange(e.seq1Range),c.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}},82518:(e,t,i)=>{"use strict";i.d(t,{Lk:()=>h,NC:()=>o,Rl:()=>u,X5:()=>d,sq:()=>c});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,c=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]=l(o,e,t,c,h):o.seq2Range.isEmpty&&(i[s]=l(o.swap(),t,e,h,c).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 l=i[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const i=l.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=1;a<=i&&(e.getElement(l.seq1Range.start-a)===e.getElement(l.seq1Range.endExclusive-a)&&t.getElement(l.seq2Range.start-a)===t.getElement(l.seq2Range.endExclusive-a));a++);if(a--,a===i){s[s.length-1]=new r.$8(new n.L(o.seq1Range.start,l.seq1Range.endExclusive-i),new n.L(o.seq2Range.start,l.seq2Range.endExclusive-i));continue}l=l.delta(-a)}s.push(l)}const o=[];for(let a=0;a<s.length-1;a++){const i=s[a+1];let l=s[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=i.seq1Range.start-l.seq1Range.endExclusive;let c;for(c=0;c<o&&(e.isStronglyEqual(l.seq1Range.start+c,l.seq1Range.endExclusive+c)&&t.isStronglyEqual(l.seq2Range.start+c,l.seq2Range.endExclusive+c));c++);if(c===o){s[a+1]=new r.$8(new n.L(l.seq1Range.start+o,i.seq1Range.endExclusive),new n.L(l.seq2Range.start+o,i.seq2Range.endExclusive));continue}c>0&&(l=l.delta(c))}o.push(l)}return s.length>0&&o.push(s[s.length-1]),o}function l(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,l=-1;for(let c=-r;c<=o;c++){const s=e.seq2Range.start+c,n=e.seq2Range.endExclusive+c,r=e.seq1Range.start+c,o=t.getBoundaryScore(r)+i.getBoundaryScore(s)+i.getBoundaryScore(n);o>l&&(l=o,a=c)}return e.delta(a)}function c(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 l=e.findWordContaining(i.offset1),c=t.findWordContaining(i.offset2);if(!l||!c)return;let h=new r.$8(l,c);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),l=a.intersect(i);if(u+=l.seq1Range.length,g+=l.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 l=1;l<s.length;l++){const c=s[l],h=a[a.length-1];function d(t,i){const s=new n.L(h.seq1Range.endExclusive,c.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,c)?(r=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}s=a}while(o++<10&&r);return s}function u(e,t,i){let o=i;if(0===o.length)return o;let a,l=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),l=i.seq1Range.length,c=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+l),1.5)+Math.pow(_(40*c+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(l++<10&&a);const c=[];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 l=e.extendToFullLines(i.seq1Range),h=e.getText(new n.L(l.start,i.seq1Range.start));a(h)&&(o=o.deltaStart(-h.length));const d=e.getText(new n.L(i.seq1Range.endExclusive,l.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);c.length>0&&g.getStarts().equals(c[c.length-1].getEndExclusives())?c[c.length-1]=c[c.length-1].join(g):c.push(g)})),c}},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}}},87723:(e,t,i)=>{"use strict";i.d(t,{WL:()=>l,q6:()=>u,wm:()=>d});var s=i(64383),n=i(86571),r=i(83069),o=i(36677),a=i(75295);class l{static inverse(e,t,i){const s=[];let r=1,o=1;for(const c of e){const e=new l(new n.M(r,c.original.startLineNumber),new n.M(o,c.modified.startLineNumber));e.modified.isEmpty||s.push(e),r=c.original.endLineNumberExclusive,o=c.modified.endLineNumberExclusive}const a=new l(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 l(e,r))}return s}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new l(this.modified,this.original)}join(e){return new l(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),c(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(new r.y(this.modified.startLineNumber,1),c(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(c(new r.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),c(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(c(new r.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),c(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new s.D7}}function c(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 l{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)}}},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)}}},23452:(e,t,i)=>{"use strict";i.d(t,{_:()=>s});const s={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},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={}))},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)}},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)}}}},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,l){if(Array.isArray(e)){let s=0;for(const n of e){const e=r(n,t,i,o,a,l);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:c,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===l)g=10;else{if("*"!==u||void 0===l)return 0;g=Math.max(g,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,n.S8)(c.base)},e!==t.fsPath&&!(0,s.YW)(e,t.fsPath))return 0;g=10}return g}return 0}},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:()=>L,YT:()=>R,GE:()=>b,WA:()=>p,gP:()=>w,ou:()=>_,dG:()=>N,$M:()=>v,OB:()=>I,PK:()=>y,Iu:()=>E});var s=i(10350),n=i(79400),r=i(36677),o=i(41234),a=i(5662);class l{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 c(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 c 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 b{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 E(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,L,R,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"}(L||(L={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(R||(R={})),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 l,I=new l;var O;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(O||(O={}))},82365:(e,t,i)=>{"use strict";i.d(t,{$f:()=>a,MU:()=>l,Yb:()=>h,_t:()=>c,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 l=a.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!l)return null;const c=new r.no(t,l,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,c);if(h<0)return null;if(h<1)return{indentation:"",action:null};if(c.shouldIncrease(h)||c.shouldIndentNextLine(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:n.l.Indent,line:h}}if(c.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=l.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let t=e-1;t>0;t--)if(!c.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(c.shouldIncrease(r))return{indentation:s.UU(t.getLineContent(r)),action:n.l.Indent,line:r};if(c.shouldIndentNextLine(r)){let e=0;for(let t=r-1;t>0;t--)if(!c.shouldIndentNextLine(r)){e=t;break}return{indentation:s.UU(t.getLineContent(e+1)),action:null,line:e+1}}if(c.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,l,c){if(e<4)return null;const h=c.getLanguageConfiguration(i);if(!h)return null;const d=c.getLanguageConfiguration(i).indentRulesSupport;if(!d)return null;const u=new r.no(t,d,c),g=o(e,t,a,void 0,c);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=l.shiftIndent(e):r.indentAction===n.l.Outdent&&(e=l.unshiftIndent(e)),u.shouldDecrease(a)&&(e=l.unshiftIndent(e)),r.appendText&&(e+=r.appendText),s.UU(e)}}}return u.shouldDecrease(a)?g.action===n.l.Indent?g.indentation:l.unshiftIndent(g.indentation):g.action===n.l.Indent?l.shiftIndent(g.indentation):g.indentation}return null}function l(e,t,i,a,l){if(e<4)return null;const c=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),h=l.getLanguageConfiguration(c).indentRulesSupport;if(!h)return null;t.tokenization.forceTokenization(i.startLineNumber);const d=new r.V(t,l).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,l);if(!C){const e=f?v:p;return{beforeEnter:e,afterEnter:e}}let b=f?v:C.indentation;return C.action===n.l.Indent&&(b=a.shiftIndent(b)),h.shouldDecrease(u.getLineContent())&&(b=a.unshiftIndent(b)),{beforeEnter:f?v:p,afterEnter:b}}function c(e,t,i,a,l,c){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=c.getLanguageConfiguration(d).indentRulesSupport;if(!u)return null;const g=new r.V(t,c).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,c);if(!e)return null;let s=e.indentation;return e.action!==n.l.Indent&&(s=l.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,c),r=n?.indentation;if(void 0!==r){const n=t.getLineContent(i.startLineNumber),o=s.UU(n),c=l.shiftIndent(r)===o,h=/^\s*$/.test(f),d=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(a),u=d&&d.length>0;if(c&&(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}},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),l=o.getLanguageConfiguration(a);if(!l)return null;const c=new r.V(t,o).getProcessedTokenContextAroundRange(i),h=c.previousLineProcessedTokens.getLineContent(),d=c.beforeRangeProcessedTokens.getLineContent(),u=c.afterRangeProcessedTokens.getLineContent(),g=l.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:_}}},10154:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("languageService")},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])}},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 l{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:l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:l.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 c=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,c.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 l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{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),b=i(14718),E=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 R(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 L{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class R extends L{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class T extends L{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(E.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 l(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,b.v)(N,I,1)},83941:(e,t,i)=>{"use strict";i.d(t,{W6:()=>l,vH:()=>c});var s=i(78209),n=i(41234),r=i(46359),o=i(44320),a=i(1646);const l=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",l);const c="plaintext";l.registerLanguage({id:c,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}}}])},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)}},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)}},27760:(e,t,i)=>{"use strict";i.d(t,{V:()=>a,WR:()=>c,no:()=>o});var s=i(91508),n=i(12296),r=i(87469);class o{constructor(e,t,i){this._indentRulesSupport=t,this._indentationLineProcessor=new l(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 l(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(c(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(),l=i.sliceAndInflate(o,a,0);return this.indentationLineProcessor.getProcessedTokens(l)}_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 l=a.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(l)}}class l{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 c(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}},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++)l(n[r],i,s,n);return n=h(n),n.sort(c),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++)l(n[r],i,s,n);return n=h(n),n.sort(c),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 l(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 c(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,l=s+o;return new r.Q(t,l-a+1,t,l+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 l=s+o;return new r.Q(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,s,n){const r=i.substring(s,n);return this.findNextBracketInText(e,t,r,s)}}},58314:(e,t,i)=>{"use strict";i.d(t,{Yj:()=>l,s0:()=>c});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 l(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 c(e,t,i,s,n,r,o){let a="<div>",l=s,c=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(;l<u&&l<n;l++){const t=e.charCodeAt(l);switch(t){case 9:{let e=r-(l+c)%r;for(c+=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||l>=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 l=0,c=o.length;l<c;l++){const e=o[l];l>0&&(r+="<br/>");const c=i.tokenizeEncoded(e,!0,a);n.f.convertToEndOffset(c.tokens,e.length);const h=new n.f(c.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=c.endState}return r+="</div>",r}},16223:(e,t,i)=>{"use strict";i.d(t,{A5:()=>s,Dg:()=>l,F4:()=>u,L5:()=>d,VW:()=>r,Wo:()=>h,X2:()=>a,ZS:()=>n,nk:()=>c,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 l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(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}},40579:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>v,Nn:()=>l,Xw:()=>c,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 l 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 l(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 l(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 c 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 c{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 c{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}}},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)}}},93630:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var s=i(91508),n=i(40579),r=i(19131),o=i(32956),a=i(51934);class l{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const s=new Map;for(const l of e.bracketsNew.openingBrackets){const e=(0,r.qe)(0,l.bracketText.length),t=i(l),c=o.gV.getEmpty().add(t,o.FD);s.set(l.bracketText,new a.ou(e,1,t,c,n.rh.create(e,l,c)))}for(const l of e.bracketsNew.closingBrackets){const e=(0,r.qe)(0,l.bracketText.length);let t=o.gV.getEmpty();const c=l.getOpeningBrackets();for(const s of c)t=t.add(i(s),o.FD);s.set(l.bracketText,new a.ou(e,2,i(c[0]),t,n.rh.create(e,l,t)))}return new l(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 c{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=l.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},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(l(e)),o=l(t);o.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let c=i.dequeue();function h(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return c&&e.unshift(c),e}const t=[];for(;c&&!(0,r.Vh)(e);){const[s,n]=c.splitAt(e);t.push(s),e=(0,r.MS)(s.lengthAfter,e),c=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 l(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}},19131:(e,t,i)=>{"use strict";i.d(t,{C7:()=>o,MS:()=>_,QB:()=>p,Qx:()=>S,VL:()=>E,Vh:()=>l,Vp:()=>a,eu:()=>u,l4:()=>d,o0:()=>b,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 l(e){return 0===e}const c=2**26;function h(e,t){return e*c+t}function d(e){const t=e,i=Math.floor(t/c),s=t-i*c;return new r.W(i,s)}function u(e){return Math.floor(e/c)}function g(e){return e}function p(e,t){let i=e+t;return t>=c&&(i-=e%c),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/c),r=Math.floor(s/c),o=s-r*c;if(n===r){return h(0,o-(i-n*c))}return h(r-n,o)}function v(e,t){return e<t}function C(e,t){return e<=t}function b(e,t){return e>=t}function E(e){return h(e.lineNumber-1,e.column-1)}function S(e,t){const i=e,s=Math.floor(i/c),r=i-s*c,o=t,a=Math.floor(o/c),l=o-a*c;return new n.Q(s+1,r+1,a+1,l+1)}function y(e){const t=(0,s.uz)(e);return h(t.length-1,t[t.length-1].length)}},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 l(e,t){return Math.abs(e.listHeight-t.listHeight)}function c(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())l(s,n)<=l(n,r)?(s=c(s,n),n=r):n=c(n,r);return c(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")}}}},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}}},51934:(e,t,i)=>{"use strict";i.d(t,{_:()=>d,ou:()=>l,tk:()=>c});var s=i(64383),n=i(25982),r=i(40579),o=i(19131),a=i(32956);class l{constructor(e,t,i,s,n){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=s,this.astNode=n}}class c{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 l=s.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&l===s.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const c=0===n.x.getTokenType(l),h=n.x.containsBalancedBrackets(l),d=s.getEndOffset(this.lineTokenOffset);if(h&&c&&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 l(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 c,h=0,d=0,u=0,g=0;const p=[];for(let _=0;_<60;_++)p.push(new l((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 l((0,o.qe)(1,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(1,_))));if(s)for(s.lastIndex=0;null!==(c=s.exec(e));){const e=c.index,i=c[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 l(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 l(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 l(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}}},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),l=i(81674),c=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(l.Sw(e,t?t.length:0,i),i+=4,t)for(const s of t)l.Sw(e,s.selectionStartLineNumber,i),i+=4,l.Sw(e,s.selectionStartColumn,i),i+=4,l.Sw(e,s.positionLineNumber,i),i+=4,l.Sw(e,s.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const s=l.bb(e,t);t+=4;for(let n=0;n<s;n++){const s=l.bb(e,t);t+=4;const n=l.bb(e,t);t+=4;const o=l.bb(e,t);t+=4;const a=l.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;l.Sw(t,this.beforeVersionId,i),i+=4,l.Sw(t,this.afterVersionId,i),i+=4,l.Gs(t,this.beforeEOL,i),i+=1,l.Gs(t,this.afterEOL,i),i+=1,i=d._writeSelections(t,this.beforeCursorState,i),i=d._writeSelections(t,this.afterCursorState,i),l.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=l.bb(t,i);i+=4;const n=l.bb(t,i);i+=4;const r=l.pJ(t,i);i+=1;const o=l.pJ(t,i);i+=1;const c=[];i=d._readSelections(t,i,c);const h=[];i=d._readSelections(t,i,h);const u=l.bb(t,i);i+=4;const g=[];for(let l=0;l<u;l++)i=a.k.read(t,i,g);return new d(s,n,r,o,c,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,c.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}}}},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),l=i(78049),c=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,l.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,l=-2,c=-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===l){l=-1,c=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){l=t,c=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,b=!0,E=0,S=0;for(let h=0;v||b;h++){const n=e-h,o=e+h;h>1&&(n<1||n<t)&&(v=!1),h>1&&(o>s||o>i)&&(b=!1),h>5e4&&(v=!1,b=!1);let p=-1;if(v&&n>=1){const e=this._computeIndentLevel(n-1);e>=0?(l=n-1,c=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(n),p=this._getIndentLevelForWhitespaceLine(r,a,c))}let y=-1;if(b&&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,E=y;continue}if(n>=1&&p>=0&&p-1===S){b=!1,_=n,C=n,E=p;continue}if(_=e,C=e,E=S,0===E)return{startLineNumber:_,endLineNumber:C,indent:E}}v&&(p>=E?_=n:v=!1),b&&(y>=E?C=o:b=!1)}else S=p}return{startLineNumber:_,endLineNumber:C,indent:E}}getLinesBracketGuides(e,t,i,r){const a=[];for(let s=e;s<=t;s++)a.push([]);const l=!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=>l))?.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:""),l=s.openingBracketRange.getStartPosition(),h=s.closingBracketRange.getStartPosition(),u=r.horizontalGuides===c.N6.Enabled||r.horizontalGuides===c.N6.EnabledForActive&&i;if(s.range.startLineNumber===s.range.endLineNumber){u&&a[s.range.startLineNumber-e].push(new c.TH(-1,s.openingBracketRange.getEndPosition().column,o,new c.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(l.lineNumber,e),b=Math.min(h.lineNumber,t),E=v?1:0;for(let t=C;t<b+E;t++)a[t-e].push(new c.TH(_,-1,o,null,t===l.lineNumber?l.column:-1,t===h.lineNumber?h.column:-1));u&&(l.lineNumber>=e&&f>_&&a[l.lineNumber-e].push(new c.TH(_,-1,o,new c.pv(!1,l.column),-1,-1)),h.lineNumber<=t&&m>_&&a[h.lineNumber-e].push(new c.TH(_,-1,o,new c.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,l=-1,c=-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,l=n,o[t]=Math.ceil(n/s.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c<d-1)){c=-1,h=-1;for(let e=d;e<i;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,l,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}}},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}}},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),l=i(91508),c=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),b=i(56772);class E{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),L=i(93630),R=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 L.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,R.qe)(e.fromLineNumber-1,0),(0,R.qe)(e.toLineNumber,0),(0,R.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,R.qe)(e.startLineNumber-1,e.startColumn-1),n=(0,R.qe)(e.endLineNumber-1,e.endColumn-1);return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens;D(s,R.Vp,s.length,i,n,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,R.VL)(e.getStartPosition()),n=(0,R.VL)(e.getEndPosition());return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens,r=new M(e,t,this.textModel);P(s,R.Vp,s.length,i,n,r,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return O(t,R.Vp,t.length,(0,R.VL)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return I(t,R.Vp,t.length,(0,R.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,R.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,R.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,R.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,R.QB)(t,n.length),(0,R.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,R.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function D(e,t,i,s,n,r,o,a,l,c,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,R.QB)(t,a.length),(0,R.vr)(t,n)&&(0,R.o0)(i,s)){if((0,R.o0)(i,n)){e=a;continue e}if(!D(a,t,i,s,n,r,o,0,l,c))return!1}t=i}}return!0}case 2:{const h=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),d=t,h&&(t++,l.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,R.QB)(t,u.length),(0,R.vr)(t,n)&&(0,R.o0)(i,s)){if((0,R.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,l,c,!e.closingBracket))return!1}}t=i}}return l?.set(e.openingBracket.text,d),!0}case 3:{const e=(0,R.Qx)(t,i);return r(new E(e,o-1,0,!0))}case 1:{const e=(0,R.Qx)(t,i);return r(new E(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 l=!0;if(2===e.kind){let c=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,a.set(e.openingBracket.text,t)}const h=(0,R.QB)(t,e.openingBracket.length);let d=-1;if(r.includeMinIndentation&&(d=e.computeMinIndentation(t,r.textModel)),l=r.push(new y((0,R.Qx)(t,i),(0,R.Qx)(t,h),e.closingBracket?(0,R.Qx)((0,R.QB)(h,e.child?.length||R.Vp),i):void 0,o,c,e,d)),t=h,l&&e.child){const c=e.child;if(i=(0,R.QB)(t,c.length),(0,R.vr)(t,n)&&(0,R.o0)(i,s)&&(l=P(c,t,i,s,n,r,o+1,a),!l))return!1}a?.set(e.openingBracket.text,c)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,R.QB)(i,t.length),(0,R.vr)(e,n)&&(0,R.vr)(s,i)&&(l=P(t,e,i,s,n,r,o,a),!l))return!1}}return l}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 l=s-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if((0,C.Yo)(t.getStandardTokenType(l))||t.getLanguageId(l)!==r){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let l=s+1;l<n;l++){const e=t.getStartOffset(l);if(e>=a)break;if((0,C.Yo)(t.getStandardTokenType(l))||t.getLanguageId(l)!==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:l}=this._establishBracketSearchOffsets(e,s,o,r),c=null;for(;;){const s=b.Fu.findNextBracketInRange(o.forwardRegex,i,n,a,l);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;c=i}}a=s.endColumn-1}if(c)return c}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:l}=this._establishBracketSearchOffsets(e,s,a,o),c=b.Fu.findPrevBracketInRange(a.reversedRegex,i,n,r,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=n.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),i=this._matchFoundBracket(c,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,l)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const c=b.Fu.findPrevBracketInRange(n,t,s,a,l);if(!c)break;const h=s.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),n=this.textModel.getLineContent(l);let r=i-1,o=n.length,c=n.length;l===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=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),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}_findMatchingBracketDown(e,t,i){const s=e.languageId,n=e.forwardRegex;let r=1,o=0;const a=(t,s,a,l)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const c=b.Fu.findNextBracketInRange(n,t,s,a,l);if(!c)break;const h=s.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),i=e.getCount(),n=this.textModel.getLineContent(c);let r=0,o=0,l=0;c===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=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)),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}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 l=o-1,c=a.length,h=a.length;if(r===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const r=e.getLanguageId(l);i!==r&&(i=r,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(i!==t){if(s&&n&&d&&c!==h){const e=b.Fu.findPrevBracketInRange(s.reversedRegex,r,a,c,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(l));if(o)d?c=e.getStartOffset(l):(c=e.getStartOffset(l),h=e.getEndOffset(l));else if(n&&s&&d&&c!==h){const e=b.Fu.findPrevBracketInRange(s.reversedRegex,r,a,c,h);if(e)return this._toFoundBracket(n,e)}d=o}if(n&&s&&d&&c!==h){const e=b.Fu.findPrevBracketInRange(s.reversedRegex,r,a,c,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 l=0,c=0,h=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const i=e.getLanguageId(l);s!==i&&(s=i,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let d=!0;for(;l<i;l++){const t=e.getLanguageId(l);if(s!==t){if(r&&n&&d&&c!==h){const e=b.Fu.findNextBracketInRange(n.forwardRegex,o,a,c,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(l));if(i)d||(c=e.getStartOffset(l)),h=e.getEndOffset(l);else if(r&&n&&d&&c!==h){const e=b.Fu.findNextBracketInRange(n.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(r,e)}d=i}if(r&&n&&d&&c!==h){const e=b.Fu.findNextBracketInRange(n.forwardRegex,o,a,c,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 l=0;const c=(e,t,i,n,r)=>{for(;;){if(s&&++l%100===0&&!s())return H.INSTANCE;const a=b.Fu.findNextBracketInRange(e.forwardRegex,t,i,n,r);if(!a)break;const c=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[c];if(h&&(h.isOpen(c)?o[h.index]++:h.isClose(c)&&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 l=!0;for(;n<t;n++){const t=e.getLanguageId(n);if(h!==t){if(d&&l&&r!==o){const e=c(d,u,s,r,o);if(e)return B(e);l=!1}h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d)}const i=!!d&&!(0,C.Yo)(e.getStandardTokenType(n));if(i)l||(r=e.getStartOffset(n)),o=e.getEndOffset(n);else if(d&&l&&r!==o){const e=c(d,u,s,r,o);if(e)return B(e)}l=i}if(d&&l&&r!==o){const e=c(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 l=0,c=0;for(let u=r;u<s;u++){32===i.charCodeAt(u)?l++:c++}if(o>0&&a>0)return;if(l>0&&c>0)return;const h=Math.abs(a-c),d=Math.abs(o-l);if(0===h)return n.spacesDiff=d,void(d>0&&0<=l-1&&l-1<e.length&&l<i.length&&32!==i.charCodeAt(l)&&32===e.charCodeAt(l-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 l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],h=new Y;for(let g=1;g<=s;g++){const s=e.getLineLength(g),l=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?l.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,l,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&c[_]++,o=l,a=p}let d=i;n!==r&&(d=n<r);let u=t;if(d){let e=d?0:.1*s;l.forEach((t=>{const i=c[t];i>e&&(e=i,u=t)})),4===u&&c[4]>0&&c[2]>0&&c[2]>=c[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 le{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,l=0,c=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&&(l-=a.parent.delta),a=a.parent;else{if(!Z(a.left)){if(c=l+a.maxEnd,c<t){J(a,!0);continue}if(a.left!==ae){a=a.left;continue}}if(h=l+a.start,h>i)J(a,!0);else{if(d=l+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)||(l+=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,l=0;const c=[];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,l=o+r.end,r.setCachedOffsets(a,l,s);let e=!0;t&&r.ownerId&&r.ownerId!==t&&(e=!1),i&&ee(r)&&(e=!1),n&&!ie(r)&&(e=!1),e&&(c[h++]=r),J(r,!0),r.right===ae||Z(r.right)||(o+=r.delta,r=r.right)}return J(e.root,!1),c}(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 l=[];let c=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),l[c++]=s),J(s,!0),s.right===ae||Z(s.right)||(n+=s.delta,s=s.right))}return J(e.root,!1),l}(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 l=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+=l,n.end+=l,n.delta+=l,(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 ce(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,l=i-t,c=s,h=Math.min(l,c),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:l>0?2:0;!u&&ce(d,o,t,e)&&(u=!0),!p&&ce(g,a,t,e)&&(p=!0)}if(h>0&&!n){const e=l>c?2:0;!u&&ce(d,o,t+h,e)&&(u=!0),!p&&ce(g,a,t+h,e)&&(p=!0)}{const s=n?1:0;!u&&ce(d,o,i,s)&&(e.start=t+c,u=!0),!p&&ce(g,a,i,s)&&(e.end=t+c,p=!0)}const m=c-l;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 be{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!==Ee)return Se(this.right);let e=this;for(;e.parent!==Ee&&e.parent.left!==e;)e=e.parent;return e.parent===Ee?Ee:e.parent}prev(){if(this.left!==Ee)return ye(this.left);let e=this;for(;e.parent!==Ee&&e.parent.right!==e;)e=e.parent;return e.parent===Ee?Ee:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Ee=new be(null,0);function Se(e){for(;e.left!==Ee;)e=e.left;return e}function ye(e){for(;e.right!==Ee;)e=e.right;return e}function we(e){return e===Ee?0:e.size_left+e.piece.length+we(e.right)}function Le(e){return e===Ee?0:e.lf_left+e.piece.lineFeedCnt+Le(e.right)}function Re(){Ee.parent=Ee}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!==Ee&&(i.left.parent=t),i.parent=t.parent,t.parent===Ee?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!==Ee&&(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===Ee?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===Ee?(s=t,i=s.right):t.right===Ee?(s=t,i=s.left):(s=Se(t.right),i=s.right),s===e.root)return e.root=i,i.color=0,t.detach(),Re(),void(e.root.parent=Ee);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!==Ee&&(s.left.parent=s),s.right!==Ee&&(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=Le(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 Re();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,Re()}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!==Ee;)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=Le(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}}Ee.parent=Ee,Ee.left=Ee,Ee.right=Ee,Ee.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!==Ee&&e.iterate(e.root,(e=>(e!==Ee&&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=Ee,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),l=a.length;if(r<=i||r+l<s)return n+=a,r+=l,!0;const c=n.replace(/\r\n|\r|\n/g,e);return o.push(new He(c,Fe(c))),n=a,r=l,!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!==Ee;)if(s.left!==Ee&&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!==Ee;)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===Ee){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!==Ee;){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===Ee)return!0;const r=n.piece;let o=r.length;if(0===o)return!0;const a=this._buffers[r.bufferIndex].buffer,l=this._buffers[r.bufferIndex].lineStarts,c=r.start.line,h=r.end.line;let d=l[c]+r.start.column;if(s&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=i,i="",s=!1,0===o))return!0;if(c===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,l[c+1]-this._EOLLength)):a.substring(d,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let s=c+1;s<h;s++)i=this._EOLNormalized?a.substring(l[s],l[s+1]-this._EOLLength):a.substring(l[s],l[s+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(l[h]+r.end.column-1)?i=a.substr(l[h],r.end.column):(s=!0,0===r.end.column?t--:i=a.substr(l[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,l,c,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 c;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[c++]=(0,Oe.dr)(new g.Q(i+t,r,i+t,o),f,a),C(f.index)+f[0].length>=m)return c;if(c>=l)return c}}while(f);return c}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 l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,c,h,t,i,s,r,n),n;let d=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,c,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[c.line+l],p=d===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(u,o,d,p,c,this.positionInBuffer(u,g-h),t,i,s,r,n),r>=s)return n;d+=l}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,c=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(d).substring(a,e.endColumn-1);return r=this._findMatchesInLine(t,o,l,e.endLineNumber,a,r,n,i,s),n}const g=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(l.node,o,d,g,c,h,t,i,s,r,n),n}_findMatchesInLine(e,t,i,s,n,r,o,a,l){const c=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((!c||(0,Oe.wC)(c,i,h,d,a))&&(o[r++]=new v.Dg(new g.Q(s,d+1+n,s,d+1+a+n),null),r>=l))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>=l))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!==Ee){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 l=this.createNewPieces(t);n.length>0&&this.rbInsertRight(i,n);let c=i;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[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===Ee)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 l=this.positionInBuffer(r,s.remainder);this.deleteNodeHead(r,l),0===r.piece.length&&o.push(r);for(let h=n.next();h!==Ee&&h!==r;h=h.next())o.push(h);const c=0===n.piece.length?n.prev():n;this.deleteNodes(o),this.validateCRLFWithNextNode(c),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,l=s.end.line,c=0,h=0,d=0;for(;a<=l&&(c=a+(l-a)/2|0,d=r[c],c!==l);)if(h=r[c+1],o<d)l=c-1;else{if(!(o>=h))break;a=c+1}return i?(i.line=c,i.column=o-d,null):{line:c,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!==Ee;)if(i.left!==Ee&&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,l=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(l+s,l+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!==Ee;){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!==Ee;)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),l=a-s,c=o-n,h=i.length+c;e.piece=new Ue(i.bufferIndex,i.start,r,a,h),Ne(this,e,c,l)}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,l=n-this.offsetInBuffer(i.bufferIndex,r),c=i.length+l;e.piece=new Ue(i.bufferIndex,r,i.end,o,c),Ne(this,e,l,a)}shrinkNode(e,t,i){const s=e.piece,n=s.start,r=s.end,o=s.length,a=s.lineFeedCnt,l=t,c=this.getLineFeedCnt(s.bufferIndex,s.start,l),h=this.offsetInBuffer(s.bufferIndex,t)-this.offsetInBuffer(s.bufferIndex,n);e.piece=new Ue(s.bufferIndex,s.start,l,c,h),Ne(this,e,h-o,c-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,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,o),h=c-l;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,o,c,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!==Ee;)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!==Ee;)if(i.left!==Ee&&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!==Ee;){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===Ee||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!==Ee&&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},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Ue(t.piece.bufferIndex,a,t.piece.end,c,l),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===Ee)return t(Ee);const i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===Ee)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 be(t,1);i.left=Ee,i.right=Ee,i.parent=Ee,i.size_left=0,i.lf_left=0;if(this.root===Ee)this.root=i,i.color=0;else if(e.right===Ee)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 be(t,1);if(i.left=Ee,i.right=Ee,i.parent=Ee,i.size_left=0,i.lf_left=0,this.root===Ee)this.root=i,i.color=0;else if(e.left===Ee)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++)l.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=l.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=l.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=!l.aC(t.text),r=e),!s&&e&&(s=l.E_(t.text)),!n&&e&&(n=l.$X(t.text))}let c="",d=0,u=0,g=0;if(t.text){let e;[d,u,g,e]=(0,h.W)(t.text);const i=this.getEOL();c=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:c,eolCount:d,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Ge._sortOpsAscending);let c=!1;for(let l=0,h=a.length-1;l<h;l++){const e=a[l].range.getEndPosition(),t=a[l+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");c=!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!==l.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)}}c||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===l.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 l=a.join(""),[c,d,u]=(0,h.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n,0),text:l,eolCount:c,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 l=new g.Q(n,r,o,a);t.push({range:l,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,l,c;if(n?n.range.endLineNumber===o.range.startLineNumber?(a=i,l=s+(o.range.startColumn-n.range.endColumn)):(a=i+(o.range.startLineNumber-n.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;c=1===e?new g.Q(a,l,a,l+o.firstLineLength):new g.Q(a,l,a+e-1,o.lastLineLength+1)}else c=new g.Q(a,l,a,l);i=c.endLineNumber,s=c.endColumn,t.push(c),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,l){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=l}_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&&l.LU(e)&&(this.BOM=l.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 l=0,c=t.length;l<c;l++){const a=t.charCodeAt(l);13===a?l+1<c&&10===t.charCodeAt(l+1)?(r++,e[i++]=l+2,l++):(s++,e[i++]=l+1):10===a?(n++,e[i++]=l+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=l.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=l.$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 lt(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 l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}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),l=this._textModel.getLanguageIdAtPosition(s,0),c=dt(this._languageIdCodec,l,this.tokenizationSupport,a,!0,r);return new rt.f(c.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 lt{constructor(e){this.lineCount=e,this._tokenizationStateStore=new ct,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 ct{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(l){(0,r.dz)(l)}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 bt{static deleteBeginning(e,t){return null===e||e===Ct?e:bt.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===Ct)return e;const i=Et(e),s=i[i.length-2];return bt.delete(e,t,s)}static delete(e,t,i){if(null===e||e===Ct||t===i)return e;const s=Et(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,l;o!==t?(s[r<<1]=t,a=r+1<<1,l=t):(a=r<<1,l=o);const c=i-t;for(let d=r+1;d<n;d++){const e=s[d<<1]-c;e>l&&(s[a++]=e,s[a++]=s[1+(d<<1)],l=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=Et(e),s=Et(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 l=0;l<n;l++)r[o++]=s[l<<1]+a,r[o++]=s[1+(l<<1)];return r.buffer}static insert(e,t,i){if(null===e||e===Ct)return e;const s=Et(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 Et(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(Et(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?Et(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=Et(e),s=Et(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]=bt.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=bt.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let s=null;i<this._len&&(s=bt.deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=bt.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]=bt.deleteEnding(this._lineTokens[s],e.column-1),this._lineTokens[s]=bt.insert(this._lineTokens[s],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[s]=bt.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 Lt{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[Lt._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!s)return t;const n=t.getCount(),r=s.getCount();let o=0;const a=[];let l=0,c=0;const h=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=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,l=~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)&l|r&a),o++;if(o<n)h(i,t.getMetadata(o)&l|r&a),t.getEndOffset(o)===i&&o++;else{const e=Math.min(Math.max(0,o-1),n-1);h(i,t.getMetadata(e)&l|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 Rt,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=Rt=class extends Qe._{constructor(e,t,i,s,n,r,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=i,this._attachedViews=s,this._languageService=n,this._languageConfigurationService=r,this._treeSitterService=l,this._semanticTokens=new Lt(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]=Rt._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]=Rt._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=Rt=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 lt(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 lt(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?c.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=l.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(l._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 l=Math.floor("number"!==typeof o||isNaN(o)?1:o),c=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return i===n&&s===r&&o===l&&a===c&&e instanceof g.Q&&!(e instanceof p.L)?e:new g.Q(n,r,l,c)}_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(l.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(l.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=l.pc(e),a=l.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=l.pc(e),a=l.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 l=[];let c;if(l.push(a.reduce(((e,t)=>g.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,r,o)}else c=t=>Oe.hB.findMatches(this,new Oe.lt(e,i,s,n),t,r,o);return l.map(c).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 l=new g.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,r,1);return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r),c.length>0?c[0]:(l=new g.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),c=this.findMatchesLineByLine(l,t,r,1),c.length>0?c[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 l=n.range.startLineNumber,c=n.range.endLineNumber,d=c-l,g=a,p=Math.min(d,g),m=g-d,f=r-t-m+l,_=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),b=It.uK.fromDecorations(C),E=new s.j3(b);for(let t=p;t>=0;t--){const i=l+t,s=f+t;E.takeFromEndWhile((e=>e.lineNumber>s));const n=E.takeFromEndWhile((e=>e.lineNumber===s));e.push(new It.U0(i,this.getLineContent(s),n))}if(p<d){const t=l+p;e.push(new It.E$(t+1,c))}if(p<g){const i=new s.j3(b),n=l+p,o=g-p,a=r-t-o+n+1,c=[],h=[];for(let e=0;e<o;e++){const t=a+e;h[e]=this.getLineContent(t),i.takeWhile((e=>e.lineNumber<t)),c[e]=i.takeWhile((e=>e.lineNumber===t))}e.push(new It.bg(n+1,l+g,h,c))}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)),l=Math.min(o,Math.max(1,t)),c=this.getLineMaxColumn(l),h=new g.Q(a,1,l,c),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 l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;o<r||l<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(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new oe(t,0,0),this._decorations[t]=h}const t=i[l],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),c[l]=h.id,l++}else h&&delete this._decorations[h.id]}return c}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 le,this._decorationsTree1=new le,this._injectedTextDecorationsTree=new le}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),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,s,n,r);return o.concat(a).concat(l)}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?l.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))}}},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!")}}},43264:(e,t,i)=>{"use strict";i.d(t,{W5:()=>g,dr:()=>c,hB:()=>d,lt:()=>l,wC:()=>u});var s=i(91508),n=i(81782),r=i(83069),o=i(36677),a=i(16223);class l{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 c(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,l,c=0;if(s?(c=s.findLineFeedCountBeforeOffset(n),a=t+n+c):a=t+n,s){const e=s.findLineFeedCountBeforeOffset(n+r.length)-c;l=a+r.length+e}else l=a+r.length;const h=e.getPositionAt(a),d=e.getPositionAt(l);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,l=[];let d,u=0;for(i.reset(0);d=i.next(o);)if(l[u++]=c(this._getMultilineMatchRange(e,r,o,a,d.index,d[0]),d,s),u>=n)return l;return l}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 l=t.startLineNumber+1;l<t.endLineNumber&&o<n;l++)o=this._findMatchesInLine(i,e.getLineContent(l),l,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,l,h){const d=e.wordSeparators;if(!l&&e.simpleSearch){const l=e.simpleSearch,c=l.length,g=t.length;let p=-c;for(;-1!==(p=t.indexOf(l,p+c));)if((!d||u(d,t,g,p,c))&&(r[n++]=new a.Dg(new o.Q(i,p+1+s,i,p+1+c+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++]=c(new o.Q(i,m.index+1+s,i,m.index+1+m[0].length+s),m,l),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),l=e.getLineCount(),d=e.getValueInRange(new o.Q(n.lineNumber,n.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new h(d):null;i.reset(t.column-1);const g=i.next(d);return g?c(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 l=1;l<=n;l++){const t=(r+l-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?c(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 l=1;l<=n;l++){const t=(n+r-l-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=c(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}}},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})},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),l=i(36677),c=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:l.Q,Selection:c.L,SelectionDirection:d.SB,MarkerSeverity:d.cj,MarkerTag:d.d_,Uri:o.r,Token:h.ou}}},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 l=null;let c=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===l&&(l=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]])),l}()){const i=function(){if(null===c){c=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++)c.set(e.charCodeAt(i),1);const t=".,;:";for(let i=0;i<t.length;i++)c.set(t.charCodeAt(i),2)}return c}(),s=[];for(let n=1,r=e.getLineCount();n<=r;n++){const r=e.getLineContent(n),o=r.length;let a=0,l=0,c=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=c===o?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=p?0:1;break;default:t=i.get(o)}1===t&&(s.push(h._createLink(i,r,n,l,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,l=a+1,c=o),a++}13===d&&s.push(h._createLink(i,r,n,l,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),b=i(86571);class E{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 b.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new b.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new b.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new b.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],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;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 L{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),l=i.getStartColumn(e.modifiedStart),c=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new L(s,n,r,o,a,l,c,h)}}class R{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,l,c,h,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=s.getStartLineNumber(t.modifiedStart)-1,h=0):(c=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(L.createFromDiffChange(e[t],r,a))}}return new R(a,l,c,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(R.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,l=e?e.modifiedStart:this.modifiedLines.length;for(;n<i&&r<l;){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,l=t.length+1;for(;i<a&&o<l;){if(e.charCodeAt(i-1)!==e.charCodeAt(o-1))break;i++,o++}(i<a||o<l)&&this._pushTrimWhitespaceCharChange(s,n+1,i,a,r+1,o,l)}}n++,r++}e&&(s.push(R.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 L(t,i,t,s,n,r,n,o)]),e.push(new R(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===n?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new L(t,i,t,s,n,r,n,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===n&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new L(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 E,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 l(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:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(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 l=0;for(let s=1;s<t.length;s++)n.Q.getEndPosition(t[l].range).equals(n.Q.getStartPosition(t[s].range))?(t[l].range=n.Q.fromPositions(n.Q.getStartPosition(t[l].range),n.Q.getEndPosition(t[s].range)),t[l].text+=t[s].text):(l++,t[l]=t[s]);t.length=l+1;for(let{range:c,text:h,eol:d}of t){if("number"===typeof d&&(a=d),n.Q.isEmpty(c)&&!h)continue;const e=r.getValueInRange(c);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:c,text:h});continue}const t=(0,s.F1)(e,h,i),l=r.offsetAt(n.Q.lift(c).getStartPosition());for(const i of t){const e=r.positionAt(l+i.originalStart),t=r.positionAt(l+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),l=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const c=r.getValueInRange(l);return d.INSTANCE.navigateValueSet(t,a,l,c,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)())},10920:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IEditorWorkerService:()=>s});const s=(0,i(63591).u1)("editorWorkerService")},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)}}},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}}},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),l=i(25689);const c=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function h(e,t,i,h,u){if(l.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(c);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,"/")}},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),l=i(63591),c=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,l.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,c.rr),u(1,o.k)],_),(0,a.v)(g,_,1)},56942:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeaturesService:()=>s});const s=(0,i(63591).u1)("ILanguageFeaturesService")},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 l{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 c{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 l(e.uri,e.getLanguageId(),i.uri,i.type,t):new l(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(c._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 c(this._score.bind(this)),this.renameProvider=new c(this._score.bind(this)),this.newSymbolNamesProvider=new c(this._score.bind(this)),this.codeActionProvider=new c(this._score.bind(this)),this.definitionProvider=new c(this._score.bind(this)),this.typeDefinitionProvider=new c(this._score.bind(this)),this.declarationProvider=new c(this._score.bind(this)),this.implementationProvider=new c(this._score.bind(this)),this.documentSymbolProvider=new c(this._score.bind(this)),this.inlayHintsProvider=new c(this._score.bind(this)),this.colorProvider=new c(this._score.bind(this)),this.codeLensProvider=new c(this._score.bind(this)),this.documentFormattingEditProvider=new c(this._score.bind(this)),this.documentRangeFormattingEditProvider=new c(this._score.bind(this)),this.onTypeFormattingEditProvider=new c(this._score.bind(this)),this.signatureHelpProvider=new c(this._score.bind(this)),this.hoverProvider=new c(this._score.bind(this)),this.documentHighlightProvider=new c(this._score.bind(this)),this.multiDocumentHighlightProvider=new c(this._score.bind(this)),this.selectionRangeProvider=new c(this._score.bind(this)),this.foldingRangeProvider=new c(this._score.bind(this)),this.linkProvider=new c(this._score.bind(this)),this.inlineCompletionsProvider=new c(this._score.bind(this)),this.inlineEditProvider=new c(this._score.bind(this)),this.completionProvider=new c(this._score.bind(this)),this.linkedEditingRangeProvider=new c(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new c(this._score.bind(this)),this.documentSemanticTokensProvider=new c(this._score.bind(this)),this.documentDropEditProvider=new c(this._score.bind(this)),this.documentPasteEditProvider=new c(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,u.v)(d.ILanguageFeaturesService,g,1)},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),l=i(83941),c=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=l.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,c.y0)(this,e,(()=>t())),this.onDidChange=s.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},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),l=i(91508),c=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:c.vH,mime:n.K.text}];const p=f(i,s,d);if(p)return[p,{id:c.vH,mime:n.K.text}];if(t){const e=function(e){(0,l.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:c.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))}},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),l=i(1646),c=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}))})),c.O.as(l.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(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}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):[]}}},37550:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IMarkerDecorationsService:()=>s});const s=(0,i(63591).u1)("markerDecorationsService")},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),l=i(23750),c=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,l.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=c.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 c.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 c.Q(i.startLineNumber,s,i.endLineNumber,i.endColumn),t.startColumn=s)}return i}_createDecorationOption(e){let t,i,n,l,c;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,c={color:(0,o.Yf)(u.KoI),position:1};break;case s.cj.Warning:t="squiggly-warning",i=(0,o.Yf)(a.aZ),n=20,c={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,c={color:(0,o.Yf)(u.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(l="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(l="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:r.A5.Right},minimap:c,zIndex:n,inlineClassName:l}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},23750:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IModelService:()=>s});const s=(0,i(63591).u1)("modelService")},16363:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DefaultModelSHA1Computer:()=>L,ModelService:()=>w});var s,n=i(41234),r=i(5662),o=i(98067),a=i(87289),l=i(24329),c=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 b(e){return e.toString()}class E{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=l.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=l.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=l.R.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let c=l.R.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=l.R.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=l.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:c,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(),l=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:a,resource:l})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:a,resource:l}))continue;const c=t[a+l],h=this.getCreationOptions(a,l,o.model.isForSimpleWidget);s._setModelOptionsForModel(o.model,h,c)}}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(b(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(b(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(b(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(b(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=b(r.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const l=new E(r,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=l,l}createModel(e,t,i,s=!1){let n;return n=t?this._createModelData(e,t,i,s):this._createModelData(e,c.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=b(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=b(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,l=this._getSHA1Computer();if(r)if(n||!(o>a)&&l.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,l.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 L}};w=s=v([C(0,d.pG),C(1,h.ITextResourcePropertiesService),C(2,u.$D),C(3,_._Y)],w);class L{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=L.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()}}},18938:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextModelService:()=>s});const s=(0,i(63591).u1)("textModelService")},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)}},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 l{static create(e,t){return new l(e,new c(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 l(this._startLineNumber,s),new l(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 c{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,l=0;for(let c=0;c<r;c++){const r=4*c,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&&(l=h),a){const e=4*o;n[e]=h-l,n[e+1]=d,n[e+2]=u,n[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,i,s){const n=this._tokens,r=this._tokenCount,o=[],a=[];let l=o,h=0,d=0;for(let c=0;c<r;c++){const r=4*c,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;l!==a&&(l=a,h=0,d=o)}l[h++]=o-d,l[h++]=u,l[h++]=g,l[h++]=p}return[new c(new Uint32Array(o)),new c(new Uint32Array(a)),d]}acceptDeleteRange(e,t,i,s,n){const r=this._tokens,o=this._tokenCount,a=s-t;let l=0,c=!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){l++;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)){c=!0;continue}p-=n-i}else if(u<s||u===s&&g<n){if(!(u===s&&p>n)){c=!0;continue}u=t,g=i,p=g+(p-n)}else if(u>s){if(0===a&&!c){l=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*l;r[f]=u,r[f+1]=g,r[f+2]=p,r[f+3]=m,l++}this._tokenCount=l}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,l=this._tokenCount;for(let c=0;c<l;c++){const r=4*c;let l=a[r],h=a[r+1],d=a[r+2];if(!(l<e||l===e&&d<t)){if(l===e&&d===t){if(!o)continue;d+=1}else if(l===e&&h<t&&t<d)0===i?d+=s:d=t;else{if(l===e&&h===t&&o)continue;if(l===e)if(l+=i,0===i)h+=s,d+=s;else{const e=d-h;h=n+(h-t),d=h+e}else l+=i}a[r]=l,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,c=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=c+n|0,l=0===n?h+r|0:r,d=l+s[e+2]|0,_=s[e+3],v=s[e+4];if(d<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&f>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=o),u[g]=o-p,u[g+1]=l,u[g+2]=d,u[g+3]=e,g+=4,m=o,f=d)}c=o,h=l,a++}g!==u.length&&(u=u.subarray(0,g));const _=l.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}}},74243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ISemanticTokensStylingService:()=>s});const s=(0,i(63591).u1)("semanticTokensStylingService")},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),l=i(74243),c=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,c.v)(l.ISemanticTokensStylingService,u,1)},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),l=i(26486),c=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,c.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,l.Th)(e.column,(0,l.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}}},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")},44432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeSitterParserService:()=>s});const s=(0,i(63591).u1)("treeSitterParserService")},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}}},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)},74855:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UnicodeTextModelHighlighter:()=>l});var s=i(36677),n=i(43264),r=i(91508),o=i(66782),a=i(26486);class l{static computeUnicodeHighlights(e,t,i){const l=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),d=new c(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,b=0,E=0;e:for(let n=l,c=h;n<=c;n++){const t=e.getLineContent(n),i=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const i=t.charCodeAt(e-1);r.pc(i)&&e--}if(l+1<i){const e=t.charCodeAt(l-1);r.pc(e)&&l++}const c=t.substring(e,l);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=d.shouldHighlightNonBasicASCII(c,h?h.word:null);if(0!==u){3===u?C++:2===u?b++:1===u?E++:(0,o.xb)(u);const t=1e3;if(f.length>=t){v=!0;break e}f.push(new s.Q(n,e+1,n,l+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:C,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:E}}static computeUnicodeHighlightReason(e,t){const i=new c(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 c{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}},35015:(e,t,i)=>{"use strict";var s,n,r,o,a,l,c,h,d,u,g,p,m,f,_,v,C,b,E,S,y,w,L,R,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:()=>c,R3:()=>T,SB:()=>B,U7:()=>j,VW:()=>b,VX:()=>x,WA:()=>V,WU:()=>f,XR:()=>H,YT:()=>N,ZS:()=>_,_E:()=>r,cj:()=>L,dE:()=>I,d_:()=>R,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:()=>E,sm:()=>y,t7:()=>l,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"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(c||(c={})),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"}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(E||(E={})),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"}(L||(L={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(R||(R={})),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={}))},51861:(e,t,i)=>{"use strict";i.d(t,{E6:()=>c,Hw:()=>n,YN:()=>s,gf:()=>o,n9:()=>a,oq:()=>r,tu:()=>h,vp:()=>l});var s,n,r,o,a,l,c,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")}(l||(l={})),function(e){e.toggleHighContrast=d.kg("toggleHighContrast","Toggle High Contrast Theme")}(c||(c={})),function(e){e.bulkEditServiceSummary=d.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},64727:(e,t,i)=>{"use strict";i.d(t,{E$:()=>o,HP:()=>c,Ic:()=>d,U0:()=>r,Wn:()=>s,bg:()=>a,mS:()=>l,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 l{constructor(){this.changeType=5}}class c{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 c(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=c.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}}}},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}}},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)}},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 l=0;for(const c of e)c.endColumn<=s||c.startColumn>=r||(a[l++]=new n(Math.max(1,c.startColumn-s+1),Math.min(o+1,c.endColumn-s+1),c.className,c.type));return a}static filter(e,t,i,s){if(0===e.length)return[];const r=[];let o=0;for(let a=0,l=e.length;a<l;a++){const l=e[a],c=l.range;if(c.endLineNumber<t||c.startLineNumber>t)continue;if(c.isEmpty()&&(0===l.type||3===l.type))continue;const h=c.startLineNumber===t?c.startColumn:i,d=c.endLineNumber===t?c.endColumn:s;r[o++]=new n(h,d,l.inlineClassName,l.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 l=a.startColumn,c=a.endColumn;const h=a.className,d=1===a.type?2:2===a.type?4:0;if(l>1){const t=e.charCodeAt(l-2);s.pc(t)&&l--}if(c>1){const t=e.charCodeAt(c-2);s.pc(t)&&c--}const u=l-1,g=c-2;r=n.consumeLowerThan(u,r,i),0===n.count&&(r=u),n.insert(g,h,d)}return n.consumeLowerThan(1073741824,r,i),i}}},35600:(e,t,i)=>{"use strict";i.d(t,{wZ:()=>h,MT:()=>l,zL:()=>c,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 l{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class c{constructor(e,t,i,s,n,r,a,l,c,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=l,this.lineDecorations=c.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 l=d.getPartIndex(o),c=d.getCharIndex(o);let h;h=l!==d.getPartIndex(a)?t:d.getCharIndex(a);return i-c<=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,l=e.len,c=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,C=e.containsRTL,b=e.spaceWidth,E=e.renderSpaceCharCode,S=e.renderWhitespace,y=e.renderControlCharacters,w=new d(l+1,g.length);let L=!1,R=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],c=e.endIndex,h=e.type,d=e.containsRTL,u=0!==S&&e.isWhitespace(),f=u&&!i&&("mtkw"===h||!o),C=R===c&&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=R,i=T;for(;t<c;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(b*e)),t.appendString('px"')),t.appendASCIICharCode(62);R<c;R++){w.setColumnInfo(R+1,s-A,x,k),A=0;let e,i;if(9===a.charCodeAt(R)){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(E),t.appendCharCode(8204);x+=e,k+=i,R>=p&&(T+=i)}}else for(t.appendASCIICharCode(62);R<c;R++){w.setColumnInfo(R+1,s-A,x,k),A=0;const e=a.charCodeAt(R);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,R>=p&&(T+=r)}C?A++:A=0,R>=l&&!L&&e.isPseudoAfter()&&(L=!0,w.setColumnInfo(R+1,s,x,k)),t.appendString("</span>")}L||w.setColumnInfo(l+1,g.length-1,x,k);c&&(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 l=function(e,t,i,s,r){const o=[];let l=0;s>0&&(o[l++]=new a(s,"",0,!1));let c=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(c,r));o[l++]=new a(r,u,0,i);break}const g=!!t&&n.E_(e.substring(c,d));o[l++]=new a(d,u,0,g),c=d}return o}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,r);e.renderControlCharacters&&!e.isBasicASCII&&(l=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,l));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(l=function(e,t,i,s){const r=e.continuesWithWrappedLine,o=e.fauxIndentLength,l=e.tabSize,c=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,b=s[_].endIndex;const E=s.length;let S,y=!1,w=n.HG(t);-1===w?(y=!0,w=i,S=i):S=n.lT(t);let L=!1,R=0,T=d&&d[R],x=c%l;for(let A=o;A<i;A++){const e=t.charCodeAt(A);let r;if(T&&A>=T.endOffset&&(R++,T=d&&d[R]),A<w||A>S)r=!0;else if(9===e)r=!0;else if(32===e)if(u)if(L)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),L){if(!r||!h&&x>=l){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%=l}}else(A===b||r&&A>o)&&(m[f++]=new a(A,v,0,C),x%=l);for(9===e?x=l:n.ne(e)?x+=2:x++,L=r;A===b&&(_++,_<E);)v=s[_].type,C=s[_].containsRTL,b=s[_].endIndex}let k=!1;if(L)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,l));let c=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?c|=1:2===i.type&&(c|=2)}l=function(e,t,i,s){s.sort(o.d.compare);const n=o.Bs.normalize(e,s),r=n.length;let l=0;const c=[];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(;l<r&&n[l].startOffset<t;){const e=n[l];if(e.startOffset>d&&(d=e.startOffset,c[h++]=new a(d,s,u,g)),!(e.endOffset+1<=t)){d=t,c[h++]=new a(d,s+" "+e.className,u|e.metadata,g);break}d=e.endOffset+1,c[h++]=new a(d,s+" "+e.className,u|e.metadata,g),l++}t>d&&(d=t,c[h++]=new a(d,s,u,g))}const u=i[i.length-1].endIndex;if(l<r&&n[l].startOffset===u)for(;l<r&&n[l].startOffset===u;){const e=n[l];c[h++]=new a(d,e.className,e.metadata,!1),l++}return c}(t,0,l,e.lineDecorations)}e.containsRTL||(l=function(e,t,i){let s=0;const n=[];let r=0;if(i)for(let o=0,l=t.length;o<l;o++){const i=t[o],l=i.endIndex;if(s+50<l){const t=i.type,o=i.metadata,c=i.containsRTL;let h=-1,d=s;for(let i=s;i<l;i++)32===e.charCodeAt(i)&&(h=i),-1!==h&&i-d>=50&&(n[r++]=new a(h+1,t,o,c),d=h+1,h=-1);d!==l&&(n[r++]=new a(l,t,o,c))}else n[r++]=i;s=l}else for(let o=0,l=t.length;o<l;o++){const e=t[o],i=e.endIndex,l=i-s;if(l>50){const t=e.type,o=e.metadata,c=e.containsRTL,h=Math.ceil(l/50);for(let e=1;e<h;e++){const i=s+50*e;n[r++]=new a(i,t,o,c)}n[r++]=new a(i,t,o,c)}else n[r++]=e;s=i}return n}(t,l,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,r,i,s,l,c,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,l,c,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=l,this.tabSize=c,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")}},92896:(e,t,i)=>{"use strict";i.d(t,{GP:()=>l,LM:()=>o,Uv:()=>g,kI:()=>h,nt:()=>a,or:()=>d,qL:()=>c,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 l{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 c{constructor(e,t,i,s,n,r,o,a,l,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=s,this.isBasicASCII=c.isBasicASCII(i,r),this.containsRTL=c.containsRTL(i,this.isBasicASCII,n),this.tokens=o,this.inlineDecorations=a,this.tabSize=l,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)}}},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,l=this._zones.length;a<l;a++){const l=this._zones[a];if(!e){const e=l.getColorZones();if(e){o.push(e);continue}}const c=this._getVerticalOffsetForLine(l.startLineNumber),h=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:c+l.heightInLines*t,d=Math.floor(n*c),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=l.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);l.setColorZone(_),o.push(_)}return this._colorZonesInvalid=!1,o.sort(s.compare),o}}},32398:(e,t,i)=>{"use strict";i.d(t,{GN:()=>l,UB:()=>a,a6:()=>c,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 l;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);l=new n.Q(e.lineNumber,e.column,t.lineNumber,t.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(o,1);i=new r.vo(l,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,c=e.endLineNumber,h=[];let d=0;const u=[];for(let n=a;n<=c;n++)u[n-a]=[];for(let o=0,g=s.length;o<g;o++){const e=s[o],t=e.options;if(!l(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(c,g.endLineNumber);for(let t=i;t<=s;t++)u[t-a].push(e)}if(t.beforeContentClassName&&a<=g.startLineNumber&&g.startLineNumber<=c){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<=c){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 l(e,t){return(!t.options.hideInCommentTokens||!c(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function c(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}},44915:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(16980),o=i(24939),a=i(31450),l=i(75326),c=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(l.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(l.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:c.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:c.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:c.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)},88952:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(83069),a=i(36677),l=i(75326),c=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:c.R.editorTextFocus,primary:3165,weight:100}})}run(e,t){E.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),E.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:c.R.editorTextFocus,primary:2561,weight:100}})}run(e,t){E.get(t)?.removeBrackets(this.id)}}class b{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class E extends n.jG{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(E.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 l.L(n.lineNumber,n.column,n.lineNumber,n.column):new l.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,c=null;if(r){r.sort(a.Q.compareRangesUsingStarts);const[t,i]=r;if(o=e?t.getStartPosition():t.getEndPosition(),c=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(n)){const e=o;o=c,c=e}}o&&c&&i.push(new l.L(o.lineNumber,o.column,c.lineNumber,c.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 l=0,c=0;const h=s.length;for(let o=0,d=n.length;o<d;o++){const e=n[o];for(;c<h&&s[c].position.isBefore(e);)c++;if(c<h&&s[c].position.equals(e))a[l++]=s[c];else{let i=t.bracketPairs.matchBracket(e,20),s=E._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;i||"always"!==this._matchBrackets||(i=t.bracketPairs.findEnclosingBrackets(e,20),s=E._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new b(e,i,s)}}this._lastBracketsData=a,this._lastVersionId=i}}(0,r.HW)(E.ID,E,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})},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 l=i(78209);class c 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 c{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:l.kg("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:n.R.writable})}}),(0,s.Fl)(class extends c{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:l.kg("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:n.R.writable})}})},6438:(e,t,i)=>{"use strict";var s=i(31450),n=i(15092),r=i(94564),o=i(36677),a=i(60002),l=i(78209);class c extends s.ks{constructor(){super({id:"editor.action.transposeLetters",label:l.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 l of a){if(!l.isEmpty())continue;const e=l.startLineNumber,t=l.startColumn,a=i.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const c=t===a?l.getPosition():r.I.rightPosition(i,l.getPosition().lineNumber,l.getPosition().column),h=r.I.leftPosition(i,c),d=r.I.leftPosition(i,h),u=i.getValueInRange(o.Q.fromPositions(d,h)),g=i.getValueInRange(o.Q.fromPositions(h,c)),p=o.Q.fromPositions(d,c);s.push(new n.iu(p,g+u))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}(0,s.Fl)(c)},94908:(e,t,i)=>{"use strict";var s=i(60413),n=i(8597),r=i(98067),o=i(68792),a=i(31450),l=i(80301),c=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 b=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:c.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:c.R.writable,order:1}]})):void 0,E=_?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"),c.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:c.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:c.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:c.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(l.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(b,"cut"),w(E,"copy"),S&&(S.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(l.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)},55130:(e,t,i)=>{"use strict";i.d(t,{C9:()=>L,Qp:()=>I,Rw:()=>T,Uy:()=>R,W4:()=>O,Xj:()=>w,dU:()=>A,k_:()=>E,pQ:()=>S,pR:()=>y});var s=i(25890),n=i(18447),r=i(64383),o=i(5662),a=i(79400),l=i(80537),c=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),b=i(8995);const E="editor.action.codeAction",S="editor.action.quickFix",y="editor.action.autoFix",w="editor.action.refactor",L="editor.action.sourceAction",R="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 b.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,l){const c=n.filter||{},h={...c,excludes:[...c.excludes||[],C.gB.Notebook]},d={only:c.include?.value,trigger:n.type},u=new g.ER(t,l),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 b.k(e))))))}(e,t,p?h:c),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)(c,e))),r=function(e,t,i){if(!e.documentation)return;const s=e.documentation.map((e=>({kind:new b.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 b.k(n.kind)))return e.command;return}(e,n,c.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(l.nu),a=e.get(m.d),c=e.get(v.k),h=e.get(f.Ot);if(c.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:l}=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):c.Q.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,r.Qg)();const m="string"===typeof s?new b.k(s):void 0,f=await A(l,g,p,{type:1,triggerAction:C.fo.Default,filter:{includeSourceActions:!0,include:m}},_.ke.None,n.XO.None),v=[],E=Math.min(f.validActions.length,"number"===typeof o?o:0);for(let r=0;r<E;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)}}))},4836:(e,t,i)=>{"use strict";var s=i(31450),n=i(94371),r=i(8995),o=i(91508),a=i(60002),l=i(55130),c=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:c.kg("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:c.kg("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[c.kg("args.schema.apply.first","Always apply the first returned code action."),c.kg("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),c.kg("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:c.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:l.pQ,label:c.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,c.kg("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,d.fo.QuickFix)}}class v extends s.DX{constructor(){super({id:l.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?c.kg("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):c.kg("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):s.preferred?c.kg("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):c.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:l.Xj,label:c.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?c.kg("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):c.kg("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):s.preferred?c.kg("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):c.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 b extends s.ks{constructor(){super({id:l.C9,label:c.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?c.kg("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):c.kg("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):s.preferred?c.kg("editor.action.source.noneMessage.preferred","No preferred source actions available"):c.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 E extends s.ks{constructor(){super({id:l.Uy,label:c.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,c.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:l.Rw,label:c.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,c.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:l.pR,label:c.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,c.kg("editor.action.autoFix.noneMessage","No auto fixes available"),{include:d.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",d.fo.AutoFix)}}var w=i(96758),L=i(1646),R=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)(b),(0,s.Fl)(E),(0,s.Fl)(y),(0,s.Fl)(S),(0,s.E_)(new v),R.O.as(L.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:c.kg("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),R.O.as(L.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:c.kg("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}}),R.O.as(L.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActions.triggerOnFocusChange":{type:"boolean",scope:5,markdownDescription:c.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}}})},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),l=i(5662),c=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),b=(i(93409),i(78209));const E=Object.freeze({kind:g.k.Empty,title:(0,b.kg)("codeAction.widget.id.more","More Actions...")}),S=Object.freeze([{kind:p.gB.QuickFix,title:(0,b.kg)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.gB.RefactorExtract,title:(0,b.kg)("codeAction.widget.id.extract","Extract"),icon:C.W.wrench},{kind:p.gB.RefactorInline,title:(0,b.kg)("codeAction.widget.id.inline","Inline"),icon:C.W.wrench},{kind:p.gB.RefactorRewrite,title:(0,b.kg)("codeAction.widget.id.convert","Rewrite"),icon:C.W.wrench},{kind:p.gB.RefactorMove,title:(0,b.kg)("codeAction.widget.id.move","Move"),icon:C.W.wrench},{kind:p.gB.SurroundWith,title:(0,b.kg)("codeAction.widget.id.surround","Surround With"),icon:C.W.surroundWith},{kind:p.gB.Source,title:(0,b.kg)("codeAction.widget.id.source","Source Action"),icon:C.W.symbolFile},E]);var y=i(96758),w=i(99645),L=i(11799),R=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 R.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,b.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,b.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 l.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,b.kg)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,b.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,b.kg)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const X={Visible:new K.N1("codeActionMenuVisible",!1,(0,b.kg)("codeActionMenuVisible","Whether the action widget list is visible"))},Z=(0,q.u1)("actionWidgetService");let J=class extends l.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 l.HE)}show(e,t,i,s,n,r,o){const a=X.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(z,e,t,i,s);this._contextViewService.showContextView({getAnchor:()=>n,render:e=>(a.set(!0),this._renderWidget(e,l,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 l.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 c=document.createElement("div"),h=e.appendChild(c);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 L.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,b.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,b.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,b.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,b.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,b.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),le=i(59473),ce=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 l.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,c,h,d,u){super(),this._commandService=o,this._configurationService=c,this._actionWidgetService=h,this._instantiationService=d,this._telemetryService=u,this._activeCodeActions=this._register(new l.HE),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new le.Dc(this._editor,n.codeActionProvider,t,i,r,c,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=c.y.isIPosition(t)?this.toCoords(t):t,l={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,b.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:E,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()),l,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,b.kg)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,b.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,ce.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; }`)}))},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),l=i(87908),c=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!==l.jT.Off){if(i===l.jT.On)return t;if(i===l.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 b;!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 E;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(b||(b={}));const E=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class S extends o.jG{constructor(e,t,i,s,n,a,l){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=n,this._configurationService=a,this._telemetryService=l,this._codeActionOracle=this._register(new o.HE),this._state=b.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(b.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(b.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(b.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 E;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,l=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 c.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),b=await(0,p.dU)(this._registry,e,C,f,u.ke.None,i);if(0!==b.validActions.length){for(const e of b.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(...b.allActions),Math.abs(r.column-m)<l?d.unshift(...b.validActions):d.push(...b.validActions)}l=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 b.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))}}},96758:(e,t,i)=>{"use strict";i.d(t,{E:()=>R});var s,n=i(8597),r=i(25154),o=i(10350),a=i(41234),l=i(5662),c=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 b=(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.")),E=(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 L;!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}}}(L||(L={}));let R=class extends l.jG{static{s=this}static{this.GUTTER_DECORATION=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:c.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=L.Hidden,this._gutterState=L.Hidden,this._iconClasses=[],this.lightbulbClasses=["codicon-"+b.id,"codicon-"+y.id,"codicon-"+E.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,l=this._editor.getOptions().get(50),c=n.getLineContent(r),h=(0,u.G)(c,a),d=l.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(),l=r>1&&a(r-1),c=!o&&a(r+1),h=a(r),d=!c&&!l;if(!(c||l||m))return this.gutterState=new L.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this.renderGutterLightbub(),this.hide();l||o||l&&!h?f-=1:(c||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*l.spaceWidth<22)return this.hide()}else{if(this.gutterState=new L.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 L.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!==L.Hidden&&(this.state=L.Hidden,this._editor.layoutContentWidget(this))}gutterHide(){this.gutterState!==L.Hidden&&(this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID),this.gutterState=L.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=c.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:E:this.gutterState.actions.hasAIFix?S:b,this._updateLightbulbTitle(this.gutterState.actions.hasAutoFix,t);const i=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:c.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}};R=s=v([C(1,m.b)],R)},61407:(e,t,i)=>{"use strict";i.d(t,{QA:()=>h,Vi:()=>d,aF:()=>l,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=>c(t,i,e.include))))&&!(!e.includeSourceActions&&r.Source.contains(t)))}function l(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=>c(i,t,e.include))))&&(!(!e.includeSourceActions&&i&&r.Source.contains(i))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function c(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}}},64215:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(5662),o=i(55190),a=i(31450),l=i(87908),c=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 l=[],c=new r.Cm;return _(o,a,h.XO.None).then((e=>{c.add(e);const t=[];for(const i of e.lenses)void 0===s||null===s||Boolean(i.symbol.command)?l.push(i.symbol):s-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(a,i.symbol,h.XO.None)).then((e=>l.push(e||i.symbol))));return Promise.all(t)})).then((()=>l)).finally((()=>{setTimeout((()=>c.dispose()),100)}))}));var v=i(41234),C=i(74320),b=i(36677),E=i(14718),S=i(63591),y=i(9711),w=i(25893),L=i(8597),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},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,L.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 b.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=R([T(0,y.CS)],A),(0,E.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(L.$("a",{id:e,title:t.command.tooltip,role:"button"},...s)),this._commands.set(e,t.command)}else i.push(L.$("span",{title:t.command.tooltip},...s));n+1<e.length&&i.push(L.$("span",void 0,"\xa0|\xa0"))}}s?(L.Ln(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):L.Ln(this._domNode,L.$("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?b.Q.plusRange(o,e.symbol.range):b.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||b.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",l.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:c.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 l=[];for(const u of a.lenses)u.symbol.command&&u.symbol.range.startLineNumber===r&&l.push({label:u.symbol.command.title,command:u.symbol.command});if(0===l.length)return;const c=await i.pick(l,{canPickMany:!1,placeHolder:(0,U.kg)("placeHolder","Select a command")});if(!c)return;let h=c.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)}}})},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),l=i(50091),c=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 l=[],c=t.ordered(i);for(let u=c.length-1;u>=0;u--){const t=c[u];if(t instanceof h.L)o=t;else try{await e.compute(t,i,s,l)&&(a=!0)}catch(d){(0,n.M_)(d)}}return a?l:o&&r?(await e.compute(o,i,s,l),l):[]}function v(e,t){const{colorProvider:i}=e.get(c.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})}}l.w.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof r.r))throw(0,n.Qg)();const{model:o,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=v(e,i);return _(new m,a,o,s.XO.None,l)})),l.w.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,a]=t,{uri:l,range:c}=a;if(!(l instanceof r.r)||!Array.isArray(i)||4!==i.length||!o.Q.isIRange(c))throw(0,n.Qg)();const{model:h,colorProviderRegistry:d,isDefaultColorDecoratorsEnabled:u}=v(e,l),[g,p,m,C]=i;return _(new f({range:c,color:{red:g,green:p,blue:m,alpha:C}}),d,h,s.XO.None,u)}))},31659:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(36677),o=i(9772),a=i(28712),l=i(77011),c=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(l.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),c.B2.register(a.BJ)},9772:(e,t,i)=>{"use strict";i.d(t,{mn:()=>S,nM:()=>E});var s,n=i(90766),r=i(47661),o=i(64383),a=i(41234),l=i(5662),c=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},b=function(e,t){return function(i,s){t(i,s,e)}};const E=Object.create({});let S=class extends l.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 l.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 l.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 c.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,l=new r.bU(Math.round(255*i),Math.round(255*s),Math.round(255*o),a),c=`rgba(${l.r}, ${l.g}, ${l.b}, ${l.a})`,d=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:c}));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:E}}})}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([b(1,v.pG),b(2,f.ILanguageFeaturesService),b(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)},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),l=i(68310),c=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),b=i(61394);const E=g.$;class S extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.showingStandaloneColorPicker=s,this._closeButton=null,this._domNode=E(".colorpicker-header"),g.BC(e,this._domNode),this._pickedColorNode=g.BC(this._domNode,E(".picked-color")),g.BC(this._pickedColorNode,E("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,E(".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,E(".button"+_.L.asCSSSelector((0,b.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=E(".colorpicker-body"),g.BC(e,this._domNode),this._saturationBox=new L(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 L 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=E(".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=E(".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 R 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,E(".standalone-strip")),this.overlay=g.BC(this.domNode,E(".standalone-overlay"))):(this.domNode=g.BC(e,E(".strip")),this.overlay=g.BC(this.domNode,E(".overlay"))),this.slider=g.BC(this.domNode,E(".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 R{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 R{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=E(".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=c.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(!c.mn.get(this._editor))return null;const s=await(0,l.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:c,green:h,blue:u,alpha:g}=i.color,p=new r.bU(Math.round(255*c),Math.round(255*h),Math.round(255*u),g),m=new r.Q1(p),f=await(0,l.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,l=s[0],c=t.getModel(),h=l.model,d=r.add(new A(n.fragment,h,t.getOption(144),i,e instanceof U));let u=!1,p=new a.Q(l.range.startLineNumber,l.range.startColumn,l.range.endLineNumber,l.range.endColumn);if(e instanceof U){const t=l.model.color;e.color=t,V(c,h,t,p,l),r.add(h.onColorFlushed((t=>{e.color=t})))}else r.add(h.onColorFlushed((async e=>{await V(c,h,e,p,l),u=!0,p=W(t,p,h)})));return r.add(h.onDidChangeColor((e=>{V(c,h,e,p,l)}))),r.add(t.onDidChangeModelContent((e=>{u?u=!1:(n.hide(),t.focus())}))),{hoverPart:l,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,l.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)},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),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},c=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)),l=o?s.Q1.Format.CSS.formatRGB(a):s.Q1.Format.CSS.formatRGBA(a),c=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:l,textEdit:{range:n,text:l}}),d.push({label:c,textEdit:{range:n,text:c}}),d.push({label:h,textEdit:{range:n,text:h}}),d}};h=l([c(0,a.IEditorWorkerService)],h);let d=class extends n.jG{constructor(e,t){super(),this._register(e.colorProvider.register("*",new h(t)))}};d=l([c(0,r.ILanguageFeaturesService),c(1,a.IEditorWorkerService)],d),(0,o.x)(d)},99822:(e,t,i)=>{"use strict";var s,n,r=i(31450),o=i(78209),a=i(5662),l=i(28712),c=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},b=function(e,t){return function(i,s){t(i,s,e)}};let E=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)}};E=s=C([b(1,m.fN),b(2,c._Y)],E),(0,r.HW)(E.ID,E,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(l.WE,this._editor),this._position=this._editor._getViewModel()?.getPrimaryCursorState().modelState.position;const a=this._editor.getSelection(),c=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(c),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,l=o.domNode.clientWidth-a-22-8,c=r.body.enterButton;c?.onClicked((()=>{this.updateEditor(),this.hide()}));const d=r.header;d.pickedColorNode.style.width=a+8+"px";d.originalColorNode.style.width=l+"px";const u=r.header.closeButton;u?.onClicked((()=>{this.hide()})),t&&(c&&(c.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};S=n=C([b(3,c._Y),b(4,d.b),b(5,g.ILanguageFeaturesService),b(6,v.IEditorWorkerService)],S);class y{constructor(e,t){this.value=e,this.foundInEditor=t}}var w=i(27195);class L 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){E.get(t)?.showOrFocus()}}class R 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){E.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){E.get(t)?.insertColor()}}(0,r.Fl)(R),(0,r.Fl)(T),(0,w.ug)(L)},40142:(e,t,i)=>{"use strict";var s=i(24939),n=i(31450),r=i(36677),o=i(60002),a=i(17469),l=i(7085),c=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,l=e.startColumn,c=e.endLineNumber,h=e.endColumn,u=n.getLineContent(a),g=n.getLineContent(c);let p,m=u.lastIndexOf(t,l-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===c){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,c,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(l.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(s.push(l.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),s.push(l.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(l.k.replace(new r.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(n.push(l.k.insert(new c.y(e.startLineNumber,e.startColumn),t+(s?" ":""))),n.push(l.k.insert(new c.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 l=0,c=i-t+1;l<c;l++)a[l]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return a}static _analyzeLines(e,t,i,s,n,r,o,a){let l,c=!0;l=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(c=!1,a.ignore=!1,a.commentStrOffset=m,l&&!d._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?l=!1:1===e||(a.ignore=!0)),l&&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&&c){l=!1;for(let e=0,t=s.length;e<t;e++)s[e].ignore=!1}return{supported:!0,shouldRemoveComments:l,lines:s}}static _gatherPreflightData(e,t,i,s,n,r,o,a){const l=g._gatherPreflightCommentStrings(i,s,n,a);return null===l?{supported:!1}:g._analyzeLines(e,t,i,l,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 c.y(s.positionLineNumber,s.positionColumn);for(let a=0,l=n.length;a<l;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 l=e.getLineContent(n).lastIndexOf(i,a-1),c=e.getLineContent(o).indexOf(s,t.endColumn-1-i.length);return-1!==l&&-1===c&&(c=e.getLineContent(n).indexOf(s,l+i.length),o=n),-1===l&&-1!==c&&(l=e.getLineContent(o).lastIndexOf(i,c),n=o),!t.isEmpty()||-1!==l&&-1!==c||(l=e.getLineContent(n).indexOf(i),-1!==l&&(c=e.getLineContent(n).indexOf(s,l+i.length))),-1!==l&&32===e.getLineContent(n).charCodeAt(l+i.length)&&(i+=" "),-1!==c&&32===e.getLineContent(o).charCodeAt(c-1)&&(s=" "+s,c-=1),-1!==l&&-1!==c?d._createRemoveBlockCommentOperations(new r.Q(n,l+i.length+1,o,c+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 l=this._attemptRemoveBlockComment(e,i,o,a);if(!l){if(i.isEmpty()){const t=e.getLineContent(i.startLineNumber);let s=u.HG(t);-1===s&&(s=t.length),l=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,s+1,i.startLineNumber,t.length+1),o,a,this._insertSpace)}else l=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),o,a,this._insertSpace);1===l.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(i);for(const r of l)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(l.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(l.k.insert(new c.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,l=t.length;a<l;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,l=t.length;a<l;a++){if(t[a].ignore)continue;const l=e.getLineContent(i+a);let c=0;for(n=0,r=t[a].commentStrOffset;c<o&&n<r;n++)c=g.nextVisibleColumn(c,s,9===l.charCodeAt(n),1);t[a].commentStrOffset=c>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),l=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));l.sort(((e,t)=>r.Q.compareRangesUsingStarts(e.selection,t.selection)));let c=l[0];for(let r=1;r<l.length;r++){const e=l[r];c.selection.endLineNumber===e.selection.startLineNumber&&(c.index<e.index?e.ignoreFirstLine=!0:(c.ignoreFirstLine=!0,c=e))}for(const r of l)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)(_)},18864:(e,t,i)=>{"use strict";i.d(t,{d:()=>b});var s,n=i(8597),r=i(5646),o=i(36921),a=i(5662),l=i(98067),c=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 b=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,l,c){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=s,this._keybindingService=r,this._menuService=o,this._configurationService=l,this._workspaceContextService=c,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)&&!l.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 l=e=>()=>{this._configurationService.updateValue(n,e)},c=[];for(const i of a)c.push(s({label:i.label,checked:r===i.value,run:l(i.value)}));return((e,t)=>new o.YH("menu-action-"+ ++i,e,t,void 0))(e,c)},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)&&!l.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()}};b=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)],b);class E extends c.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){b.get(t)?.showContextMenu()}}(0,c.HW)(b.ID,b,2),(0,c.Fl)(E)},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 l{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class c extends s.jG{static{this.ID="editor.contrib.cursorUndoRedoController"}static get(e){return e.getContribution(c.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 l(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 l(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 l(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){c.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){c.get(t)?.cursorRedo()}}(0,n.HW)(c.ID,c,0),(0,n.Fl)(h),(0,n.Fl)(d)},40800:(e,t,i)=>{"use strict";var s=i(25890),n=i(31308),r=i(34309),o=i(92368),a=i(56942),l=i(29999),c=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 c.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,l.gW)],g),r.N.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(g,e)))},2183:(e,t,i)=>{"use strict";var s=i(5662),n=i(98067),r=i(31450),o=i(83069),a=i(36677),l=i(75326),c=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 l.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 l.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 l.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 l.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 l.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 l.L(s,n,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new l.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=c.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)},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 l=e.get(a.gW),c=e.get(o.ITextModelService),h=await c.createModelReference(i);try{return(await l.getOrCreate(h.object.textEditorModel,s.XO.None)).getTopLevelSymbols()}finally{h.dispose()}}))},29999:(e,t,i)=>{"use strict";i.d(t,{LC:()=>C,e0:()=>b,gW:()=>S,i9:()=>E});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(74320),l=i(83069),c=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 b 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 E extends v{static create(e,t,i){const o=new n.Qi(i),a=new E(t.uri),l=e.ordered(t),c=l.map(((e,i)=>{const s=v.findId(`provider_${i}`,a),n=new b(s,a,e.displayName??"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,o.token)).then((e=>{for(const t of e||[])E._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,l)||o.cancel()}));return Promise.all(c).then((()=>o.token.isCancellationRequested&&!i.isCancellationRequested?E.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)E._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)=>c.Q.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return E._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>l.y.compare(c.Q.getStartPosition(e.range),c.Q.getStartPosition(t.range))||l.y.compare(c.Q.getEndPosition(t.range),c.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&&E._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:E.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)},63867:(e,t,i)=>{"use strict";var s=i(8995),n=i(31450),r=i(60002),o=i(72466),a=i(55433),l=i(90208),c=i(78209);(0,n.HW)(a.Rj.ID,a.Rj,0),(0,o.x)(l.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:c.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:c.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:c.kg("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.R.writable})}run(e,t){return a.Rj.get(t)?.pasteAs({providerId:l.LR.id})}})},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),l=i(17799),c=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),b=i(90208),E=i(85541),S=i(50868),y=i(9948),w=i(99645),L=i(78209),R=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,L.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 l=e.getContainerDomNode();this._register((0,n.ko)(l,"copy",(e=>this.handleCopy(e)))),this._register((0,n.ko)(l,"cut",(e=>this.handleCopy(e)))),this._register((0,n.ko)(l,"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,L.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 l=1===i.length&&i[0].isEmpty();if(l){if(!n)return;a=[new _.Q(a[0].startLineNumber,1,a[0].startLineNumber,1+t.getLineLength(a[0].startLineNumber))]}const c=this._editor._getViewModel()?.getPlainTextToCopy(i,n,u.uF),h={multicursorText:Array.isArray(c)?c:null,pasteOnNewLine:l,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,l.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,L.kg)("pasteAsError","No paste edits for '{0}' found",t instanceof c.k?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,s,n){const r=this._editor;if(!r.hasModel())return;const l=new S.gI(r,3,void 0),c=(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(l.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 b.LR)return this.applyDefaultPasteHandler(i,s,m,n);const a={triggerKind:v.FX.Automatic},l=await this.getPasteEdits(r,i,u,t,a,m);if(g.add(l),m.isCancellationRequested)return;if(1===l.edits.length&&l.edits[0].provider instanceof b.LR)return this.applyDefaultPasteHandler(i,s,m,n);if(l.edits.length){const e="afterPaste"===d.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:l.edits},e,((e,i)=>new Promise(((s,n)=>{(async()=>{try{const r=e.provider.resolveDocumentPasteEdit?.(e,i),a=new o.Zv,l=r&&await this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,L.kg)("resolveProcess","Resolving paste edit. Click to cancel"),Promise.race([a.p,r]),{cancel:()=>(a.cancel(),n(new I.AL))},0);return l&&(e.additionalEdit=l.additionalEdit),s(e)}catch(r){return n(r)}})()}))),m)}await this.applyDefaultPasteHandler(i,s,m,n)}finally{g.dispose(),this._currentPasteOperation===c&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,L.kg)("pasteIntoEditorProgress","Running paste handlers. Click to cancel and do basic paste"),c,{cancel:async()=>{try{if(c.cancel(),l.token.isCancellationRequested)return;await this.applyDefaultPasteHandler(i,s,l.token,n)}finally{l.dispose()}}}).then((()=>{l.dispose()})),this._currentPasteOperation=c}showPasteAsPick(e,t,i,s,n){const r=(0,o.SS)((async o=>{const a=this._editor;if(!a.hasModel())return;const l=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 c.k?e:void 0};let a,h=d.add(await this.getPasteEdits(r,s,l,i,o,u.token));if(u.token.isCancellationRequested)return;if(e&&(h={edits:h.edits.filter((t=>e instanceof c.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,L.kg)("pasteAsPickerPlaceholder","Select Paste Action")});a=e?.edit}if(!a)return;const g=(0,E.v)(l.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,L.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,l.gf)(l.jt.create(t)))}}async getPasteEdits(e,t,i,s,n,a){const l=new h.Cm,c=await(0,o.PK)(Promise.all(e.map((async e=>{try{const r=await(e.provideDocumentPasteEdits?.(i,s,t,n,a));return r&&l.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)(c??[]).flat().filter((e=>!n.only||n.only.contains(e.kind)));return{edits:(0,E.H)(d),dispose:()=>l.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 c.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,R.h),D(4,C.ILanguageFeaturesService),D(5,A.GK),D(6,k.G5)],U)},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),l=i(36456),c=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===l.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 b=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,c.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}};b=m([f(0,p.VR)],b);class E{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 b(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 b(t))),this._register(e.documentPasteEditProvider.register("*",new E))}};w=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],w)},61731:(e,t,i)=>{"use strict";var s,n=i(31450),r=i(94371),o=i(72466),a=i(90208),l=i(78209),c=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),b=i(29100),E=i(50868),S=i(9948),y=i(84001),w=i(32848),L=i(61292),R=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,l.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=L.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,l.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 E.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 l=this._languageFeaturesService.documentDropEditProvider.ordered(a).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>s.matches(e))))),c=r.add(await this.getDropEdits(l,a,t,s,o));if(o.token.isCancellationRequested)return;if(c.edits.length){const i=this.getInitialActiveEditIndex(a,c.edits),s="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([_.Q.fromPositions(t)],{activeEditIndex:i,allEdits:c.edits},s,(async e=>e),n)}}finally{r.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,l.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,R._Y),A(2,y.pG),A(3,v.ILanguageFeaturesService),A(4,b.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(c.Fd.Configuration).registerConfiguration({...r.JJ,properties:{[N]:{type:"object",scope:5,description:l.kg("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},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))}},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),l=i(64383),c=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},b=function(e,t){return function(i,s){t(i,s,e)}};let E=class extends h.jG{static{s=this}static{this.baseId="editor.widget.postEditWidget"}constructor(e,t,i,s,n,r,o,a,l,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(l),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(c.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)}})))})}};E=s=C([b(7,m.Z),b(8,p.fN),b(9,_.b)],E);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(c.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 c=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,l.MB)(s)||(this._notificationService.error(n),i&&this.show(e[0],t,c))};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,c)}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(E,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){this._currentWidget.value?.showSelector()}};S=C([b(4,f._Y),b(5,d.nu),b(6,v.Ot)],S)},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),l=i(32848),c=i(58925),h=i(63591),d=i(14718),u=i(78209);const g=(0,h.u1)("IEditorCancelService"),p=new l.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(l.fN)),tokens:new c.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()}}},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),l=i(60002),c=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,l=e.length;s<l;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:c.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:c.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:c.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 b{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 E(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+=E([n[t]],e)+i})),r.slice(0,-1)}class w{constructor(e){this.staticValue=e,this.kind=0}}class L{constructor(e){this.pieces=e,this.kind=1}}class R{static fromStaticValue(e){return new R([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 L(e):this._state=new w("")}buildReplaceString(e,t){if(0===this._state.kind)return t?E(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=R._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 R(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),l=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1);return l&&l.range.isEmpty()&&l.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),l=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1)),l?t||s.containsRange(l.range)?void this._setCurrentFindMatch(l.range):this._moveToPrevMatch(l.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,l=this._editor.getModel();let c=new u.y(o,a),h=l.findNextMatch(this._state.searchString,c,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(c)&&(c=this._nextSearchPosition(c),h=l.findNextMatch(this._state.searchString,c,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 R(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):R.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 l=new d.ui(n,o,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}_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 b(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 le 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 le.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 ce=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 ce.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,l=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),l!==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 be(e){return"Up"===e.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()&&"Down"===e.lookupKeybinding("history.showNext")?.getElectronAccelerator()}var Ee=i(61394),Se=i(25689),ye=i(86723),we=i(631),Le=i(19070);const Re=(0,Ee.pU)("find-collapsed",me.W.chevronRight,ve.kg("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Te=(0,Ee.pU)("find-expanded",me.W.chevronDown,ve.kg("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),xe=(0,Ee.pU)("find-selection",me.W.selection,ve.kg("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),ke=(0,Ee.pU)("find-replace",me.W.replace,ve.kg("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ae=(0,Ee.pU)("find-replace-all",me.W.replaceAll,ve.kg("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Ne=(0,Ee.pU)("find-previous-match",me.W.arrowUp,ve.kg("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ie=(0,Ee.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,l,c,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=c,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!c.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:()=>be(this._keybindingService),inputBoxStyles:Le.ho,toggleStyles:Le.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:Ee.$_,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:()=>be(this._keybindingService),inputBoxStyles:Le.ho,toggleStyles:Le.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 l=qe;this._register(this._resizeSash.onDidStart((()=>{l=ne.Tr(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=l+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(Re)),this._domNode.classList.add(...Se.L.asClassNameArray(Te))):(this._domNode.classList.remove(...Se.L.asClassNameArray(Te)),this._domNode.classList.add(...Se.L.asClassNameArray(Re)))}}(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),lt=i(58591),ct=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,lt.Ot),gt(5,dt.TN)],mt);let ft=class extends mt{constructor(e,t,i,s,n,r,o,a,l){super(e,i,o,a,r,l),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 le(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,lt.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(l.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 bt 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 Et 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(lt.Ot).notify({severity:lt.AI.Warning,message:ve.kg("findMatchAction.noResults","No matches. Try searching for something else.")})}const o=e.get(ct.GK),a=new n.Cm,l=a.add(o.createInputBox());l.placeholder=ve.kg("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",r);const c=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=c(e);if("number"===typeof i){l.validationMessage=void 0,s.goToMatch(i);const e=s.getState().currentMatch;e&&this.addDecorations(t,e)}else l.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount),this.clearDecorations(t)};a.add(l.onDidChangeValue((e=>{h(e)}))),a.add(l.onDidAccept((()=>{const e=c(l.value);"number"===typeof e?(s.goToMatch(e),l.hide()):l.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount)}))),a.add(l.onDidHide((()=>{this.clearDecorations(t),a.dispose()}))),l.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:c.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(l.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 bt{constructor(){super({id:W,label:ve.kg("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:l.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:k.M$.and(l.R.focus,N),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),(0,o.Fl)(class extends bt{constructor(){super({id:V,label:ve.kg("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:l.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:k.M$.and(l.R.focus,N),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),(0,o.Fl)(Et),(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:l.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:l.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(l.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:l.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:l.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:l.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:l.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:l.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:l.R.focus,primary:3094}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:k.M$.and(l.R.focus,I),primary:3}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:2563}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:k.M$.and(l.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:l.R.focus,primary:515}}))},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),l=i(91508),c=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 b{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,l=o.getEndLineNumber(i);n<=a&&l<=r||(!e&&s<this._hiddenRanges.length&&this._hiddenRanges[s].startLineNumber===a&&this._hiddenRanges[s].endLineNumber===l?(t.push(this._hiddenRanges[s]),s++):(e=!0,t.push(new v.Q(a,1,l,1))),n=a,r=l)}(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!==E(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=E(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 E(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),L=i(32848),R=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 L.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 R.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 b(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,L.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(!c.b0(e)){if(!c.Gv(e))return!1;const t=e;if(!c.b0(t.levels)&&!c.Et(t.levels))return!1;if(!c.b0(t.direction)&&!c.Kg(t.direction))return!1;if(!c.b0(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(c.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,l.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 l=e.get(p.JZ),c=a.getValue("editor.foldingStrategy",{resource:i}),h={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},d=new y.hW(o,l,h);let u=d;if("indentation"!==c){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()}}))},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),l=i(47612),c=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,l.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:c.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:c.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:c.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:c.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 "+c.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:c.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 "+c.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:c.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)}}},52903:(e,t,i)=>{"use strict";i.d(t,{AI:()=>g,GR:()=>u,JX:()=>f,W8:()=>h,bC:()=>a,cL:()=>p,dN:()=>c,kK:()=>m,pN:()=>o,pr:()=>_,sO:()=>d,uV:()=>l});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),l={startLineNumber:n,startColumn:this._textModel.getLineMaxColumn(n),endLineNumber:r,endColumn:this._textModel.getLineMaxColumn(r)+1};t.push({range:l,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 l(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 c(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}},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 l(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,l=0,c=r(0),h=o(0);const d=[];let u,g=0;const p=[];for(;c||h;){let e;if(h&&(!c||c.startLineNumber>=h.startLineNumber))c&&c.startLineNumber===h.startLineNumber?(1===h.source?e=h:(e=c,e.isCollapsed=h.isCollapsed&&(c.endLineNumber===h.endLineNumber||!s?.startsInside(c.startLineNumber+1,c.endLineNumber+1)),e.source=0),c=r(++a)):(e=h,h.isCollapsed&&0===h.source&&(e.source=2)),h=o(++l);else{let t=l,i=h;for(;;){if(!i||i.startLineNumber>c.endLineNumber){e=c;break}if(1===i.source&&i.endLineNumber>c.endLineNumber)break;i=o(++t)}c=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 l{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}}},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,l=new o(n);let c;i&&(c=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(c&&(a=i.match(c))){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],l.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&&l.insertFirst(o,e,n)}d.indent===n?d.endAbove=o:h.push({indent:n,endAbove:o,line:o})}else t&&(d.endAbove=o)}return l.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),l=new Uint32Array(t);for(let n=this._length-1,c=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[c]=h,l[c]=this._endIndexes[n],c++)}return new n.tz(a,l)}}}const a={limit:5e3,update:()=>{}}},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 l(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 l{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 l=this._nestingLevels[r];(l<i||l===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)}}}},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 l 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)(l)},49079:(e,t,i)=>{"use strict";i.d(t,{Pj:()=>R,jX:()=>T,vg:()=>k,_V:()=>N});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(58925),l=i(631),c=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 b{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 E=i(63591),S=i(56942),y=i(18801),w=i(87213);function L(e,t,i){const s=[],n=new b,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 R{static{this._selectors=new a.w}static setFormatterSelector(e){return{dispose:R._selectors.unshift(e)}}static async select(e,t,i,s){if(0===e.length)return;const n=o.f.first(R._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(E._Y),{documentRangeFormattingEditProvider:l}=e.get(S.ILanguageFeaturesService),c=(0,d.z9)(t)?t.getModel():t,h=l.ordered(c),u=await R.select(h,c,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),l=e.get(y.rr),c=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 b=async e=>{l.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,e);const i=await t.provideDocumentRangeFormattingEdits(u,e,u.getFormattingOptions(),f.token)||[];return l.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,i),i},E=(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=[],L=[];try{if("function"===typeof t.provideDocumentRangesFormattingEdits){l.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,v);const e=await t.provideDocumentRangesFormattingEdits(u,v,u.getFormattingOptions(),f.token)||[];l.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,e),L.push(e)}else{for(const e of v){if(f.token.isCancellationRequested)return!0;L.push(await b(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(E(L[e],L[t])){const i=g.Q.plusRange(v[e],v[t]),s=await b(i);v.splice(t,1),v.splice(e,1),v.push(i),L.splice(t,1),L.splice(e,1),L.push(s),e=0,t=0}}}for(const e of L){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 c.playSignal(w.Rh.format,{userGesture:o}),!0}async function k(e,t,i,s,n,r){const o=e.get(E._Y),a=e.get(S.ILanguageFeaturesService),l=(0,d.z9)(t)?t.getModel():t,c=L(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),h=await R.select(c,l,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 l,c,u;(0,d.z9)(i)?(l=i.getModel(),c=new h.gI(i,5,void 0,n)):(l=i,c=new h.ER(i,n));try{const e=await t.provideDocumentFormattingEdits(l,l.getFormattingOptions(),c.token);if(u=await o.computeMoreMinimalEdits(l.uri,e),c.token.isCancellationRequested)return!0}finally{c.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);l.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 l=t.onTypeFormattingEditProvider.ordered(i);return 0===l.length||l[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(l[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,l.j)(c.r.isUri(i)),(0,l.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 l=t.documentRangeFormattingEditProvider.ordered(i);for(const c of l){const t=await Promise.resolve(c.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,l.j)(c.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=L(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const l of a){const t=await Promise.resolve(l.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,l.j)(c.r.isUri(i)),(0,l.j)(u.y.isIPosition(s)),(0,l.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()}}))},48279:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(24939),a=i(5662),l=i(31450),c=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),b=i(32848),E=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 L=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()}))}};L=y([w(1,p.ILanguageFeaturesService),w(2,g.IEditorWorkerService),w(3,v.Nt)],L);let R=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))}};R=y([w(1,p.ILanguageFeaturesService),w(2,E._Y)],R);class T extends l.ks{constructor(){super({id:"editor.action.formatDocument",label:_.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:b.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(E._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 l.ks{constructor(){super({id:"editor.action.formatSelection",label:_.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:b.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(E._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,l.HW)(L.ID,L,2),(0,l.HW)(R.ID,R,2),(0,l.Fl)(T),(0,l.Fl)(x),C.w.registerCommand("editor.action.format",(async e=>{const t=e.get(c.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")}))},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),l=o._handleEolEdits(e,t);1===l.length&&o._isFullModelReplaceEdit(e,l[0])?e.executeEdits("formatEditsCommand",l.map((e=>s.k.replace(n.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",l.map((e=>s.k.replaceMove(n.Q.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},65877:(e,t,i)=>{"use strict";i.d(t,{j:()=>oe,i:()=>le});var s=i(10350),n=i(5662),r=i(31450),o=i(80301),a=i(83069),l=i(36677),c=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},b=function(e,t){return function(i,s){t(i,s,e)}};class E{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?l.Q.compareRangesUsingStarts(e,t)||_.cj.compare(e.severity,t.severity):_.cj.compare(e.severity,t.severity)||l.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 E(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=l.Q.lift(this._markers[r]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new l.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(l.Q.containsPosition(this._markers[i],t))return new E(this._markers[i],i+1,this._markers.length)}};S=C([b(1,_.DR),b(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([b(0,_.DR),b(1,v.pG)],w),(0,m.v)(y,w,1);var L,R=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""}}}(L||(L={}));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 l=this._editor.getOption(50),c=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,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=R.kg("Error","Error");break;case _.cj.Warning:t=R.kg("Warning","Warning");break;case _.cj.Info:t=R.kg("Info","Info");break;case _.cj.Hint:t=R.kg("Hint","Hint")}let i=R.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=l.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?R.kg("problems","{0} of {1} problems",t,i):R.kg("change","{0} of {1} problem",t,i);this.setTitle((0,O.P8)(o.uri),e)}this._icon.className=`codicon ${L.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},R.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},R.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},R.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)},R.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),ee=(0,W.x1A)("editorMarkerNavigationInfo.background",{dark:$,light:$,hcDark:W.b1q,hcLight:W.b1q},R.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},R.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ie=(0,W.x1A)("editorMarkerNavigation.background",W.YtV,R.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&&l.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:l.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 le extends ae{static{this.ID="editor.action.marker.next"}static{this.LABEL=R.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)")}constructor(){super(!0,!1,{id:le.ID,label:le.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:578,weight:100},menuOpts:{menuId:K.TitleMenu,title:le.LABEL,icon:(0,k.pU)("marker-navigation-next",s.W.arrowDown,R.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}class ce extends ae{static{this.ID="editor.action.marker.prev"}static{this.LABEL=R.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)")}constructor(){super(!1,!1,{id:ce.ID,label:ce.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:1602,weight:100},menuOpts:{menuId:K.TitleMenu,title:ce.LABEL,icon:(0,k.pU)("marker-navigation-previous",s.W.arrowUp,R.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}(0,r.HW)(oe.ID,oe,4),(0,r.Fl)(le),(0,r.Fl)(ce),(0,r.Fl)(class extends ae{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:R.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:c.R.focus,primary:66,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:R.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:R.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:c.R.focus,primary:1090,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:R.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:c.R.focus,primary:9,secondary:[1033]}}))},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),l=i(50868),c=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),b=i(5662),E=i(89403),S=i(78209),y=i(32848),w=i(14718),L=i(63591),R=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,L.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,E.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,b.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,R.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 b.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,b.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,b.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),c=e.get(H.N8),h=e.get(I),u=e.get(W.ILanguageFeaturesService),g=e.get(L._Y),p=t.getModel(),m=t.getPosition(),f=G.is(i)?i:new G(p,m),_=new l.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 c.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,l=await this._openReference(i,e,o,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,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,l)=>{(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 l||"boolean"===typeof l);const h=e.get(d.T),u=await h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if((0,c.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(l),openToSide:!1},s,n);e.get(L._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,c.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")},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),l=i(56942),c=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)})))),l=await Promise.all(a);return(0,s.Yc)(l.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 c.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(l.ILanguageFeaturesService).definitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDefinitionProvider_recursive",((e,t,i)=>{const s=u(e.get(l.ILanguageFeaturesService).definitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const s=m(e.get(l.ILanguageFeaturesService).typeDefinitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider_recursive",((e,t,i)=>{const s=m(e.get(l.ILanguageFeaturesService).typeDefinitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider",((e,t,i)=>{const s=g(e.get(l.ILanguageFeaturesService).declarationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider_recursive",((e,t,i)=>{const s=g(e.get(l.ILanguageFeaturesService).declarationProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider",((e,t,i)=>{const s=f(e.get(l.ILanguageFeaturesService).referenceProvider,t,i,!1,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider_recursive",((e,t,i)=>{const s=f(e.get(l.ILanguageFeaturesService).referenceProvider,t,i,!1,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider",((e,t,i)=>{const s=p(e.get(l.ILanguageFeaturesService).implementationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider_recursive",((e,t,i)=>{const s=p(e.get(l.ILanguageFeaturesService).implementationProvider,t,i,!0,n.XO.None);return _((()=>s))}))},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 l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=o(e,t.triggerModifier)}}class c{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 c(57,"metaKey",6,"altKey"):new c(5,"ctrlKey",6,"altKey"):r.zx?new c(6,"altKey",57,"metaKey"):new c(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 l(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new l(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()}}},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),l=i(50868),c=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),b=i(87289),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},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 l.$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(c){return void(0,r.dz)(c)}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 b.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=E([S(1,u.ITextModelService),S(2,d.L),S(3,C.ILanguageFeaturesService)],y),(0,c.HW)(y.ID,y,2)},23646:(e,t,i)=>{"use strict";i.d(t,{X:()=>ce});var s,n=i(90766),r=i(64383),o=i(24939),a=i(5662),l=i(80301),c=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),b=i(9711),E=i(79614),S=i(8597),y=i(35151),w=i(47661),L=i(41234),R=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 E.y4||e instanceof E.$L}getChildren(e){if(e instanceof E.y4)return e.groups;if(e instanceof E.$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 E.$L?K.id:q.id}}let z=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){if(e instanceof E.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 E.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,l,c){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=l,this._keybindingService=c,this._disposeOnNewModel=new a.Cm,this._callOnDispose=new a.Cm,this._onDidSelectReference=new L.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:L.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:L.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 E.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 E.yc?e:e instanceof E.$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!==R.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 le=new m.N1("referenceSearchVisible",!1,u.kg("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let ce=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,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=s,this._notificationService=n,this._instantiationService=r,this._storageService=o,this._configurationService=l,this._disposables=new a.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=le.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 c.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=ce.get(i);s&&t(s)}ce=se=oe([ae(2,m.fN),ae(3,l.T),ae(4,C.Ot),ae(5,f._Y),ae(6,b.CS),ae(7,p.pG)],ce),_.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,o.m5)(2089,60),when:m.M$.or(le,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),_.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.M$.or(le,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(le,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(le,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(le,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 E.yc&&he(e,(e=>e.revealReference(i[0])))}}),_.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.M$.and(le,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 E.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 E.yc&&he(e,(e=>e.openReference(i[0],!1,!0)))}))},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),l=i(89403),c=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,l.P8)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,d.kg)("aria.oneReference","in {0} on line {1} at column {2}",(0,l.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}),l=new h.Q(s,a.startColumn,s,n),c=new h.Q(r,o,r,1073741824),d=i.getValueInRange(l).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:d+u+i.getValueInRange(c).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,l.P8)(this.uri),this.uri.fsPath):(0,d.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,l.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&&l.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:c.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 l.er.compare(e.uri,t.uri)||h.Q.compareRangesUsingStarts(e.range,t.range)}}},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),l=i(90766),c=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),b=i(253),E=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},L=function(e,t){return function(i,s){t(i,s,e)}};let R=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=E.R.hoverVisible.bindTo(t),this._hoverFocusedKey=E.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,l=Math.max(Math.abs(e-o)-n/2,0),c=Math.max(Math.abs(t-a)-r/2,0);return Math.sqrt(l*l+c*c)}R=_=w([L(1,v.fN),L(2,C.pG),L(3,b.j),L(4,a.b)],R);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 l.AE.EMPTY;const i=k._getLineDecorations(this._editor,t);return l.AE.merge(this._participants.map((s=>s.computeAsync?s.computeAsync(t,i,e):l.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:l,showAtSecondaryPosition:c}=H.computeHoverPositions(e,o.range,a);this.shouldAppearBeforeContent=a.some((e=>e.isBeforeContent)),this.showAtPosition=l,this.showAtSecondaryPosition=c,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,l=t.startColumn;for(const c of i){const e=c.range,t=e.startLineNumber===n,i=e.endLineNumber===n;if(t&&i){const t=e.startColumn,i=Math.min(l,t);l=Math.max(i,s)}c.forceShowAtRange&&(r=e)}if(r){const e=r.getStartPosition();o=e,a=e}else o=t.getStartPosition(),a=new m.y(n,l);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 l=this._renderStatusBar(this._fragment,r);return l&&(a.add(l),this._renderedParts.push({type:"statusBar",hoverElement:l.hoverElement,actions:l.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(R,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,c.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 l.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,c.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)},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},l=function(e,t){return function(i,s){t(i,s,e)}};const c=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=c("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=s.BC(this.hoverElement,c("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([l(0,o.b)],h)},7142:(e,t,i)=>{"use strict";i.d(t,{U:()=>c});var s=i(90766),n=i(18447),r=i(64383),o=i(31450),a=i(56942);class l{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function c(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 l(e,o,t)}(e,s,t,i,n)));return s.AE.fromPromises(a).coalesce()}function h(e,t,i,s,n=!1){return c(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)))},87758:(e,t,i)=>{"use strict";i.d(t,{G8:()=>_,Hm:()=>d,Hp:()=>a,K6:()=>o,MB:()=>l,Xp:()=>u,Zp:()=>f,dV:()=>r,iM:()=>m,ih:()=>h,jA:()=>n,jq:()=>p,vf:()=>c,vx:()=>g});var s=i(78209);const n="editor.action.showHover",r="editor.action.showDefinitionPreviewHover",o="editor.action.scrollUpHover",a="editor.action.scrollDownHover",l="editor.action.scrollLeftHover",c="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")},58466:(e,t,i)=>{"use strict";var s,n=i(87758),r=i(24939),o=i(31450),a=i(36677),l=i(60002),c=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:l.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 l=e=>{const i=t.getPosition(),s=new a.Q(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(s,1,1,e)},c=2===t.getOption(2);n.isHoverVisible?o!==s.NoAutoFocus?n.focus():l(c):l(c||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=c.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:l.R.hoverFocused,kbOpts:{kbExpr:l.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:l.R.hoverFocused,kbOpts:{kbExpr:l.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:l.R.hoverFocused,kbOpts:{kbExpr:l.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:l.R.hoverFocused,kbOpts:{kbExpr:l.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:l.R.hoverFocused,kbOpts:{kbExpr:l.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 b 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:l.R.hoverFocused,kbOpts:{kbExpr:l.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 E 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:l.R.hoverFocused,kbOpts:{kbExpr:l.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:l.R.hoverFocused,kbOpts:{kbExpr:l.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:l.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:l.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 L=i(66261),R=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,l=o.range.endLineNumber===s?o.range.endColumn:n,c=this._markerDecorationsService.getMarker(i.uri,o);if(!c)continue;const h=new a.Q(e.range.startLineNumber,t,e.range.startLineNumber,l);r.push(new Y(this,h,c))}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 l=k.BC(s,K("span"));if(l.style.whiteSpace="pre-wrap",l.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:c,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=c,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 le=k.$;let ce=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=le("div.hover-row.markdown-hover"),t=k.BC(e,le("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()}};ce=re=oe([ae(1,J.L),ae(2,V.C)],ce);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(ce,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)(b),(0,o.Fl)(E),(0,o.Fl)(S),(0,o.Fl)(y),(0,o.Fl)(w),T.B2.register(x.xJ),T.B2.register($),(0,R.zy)(((e,t)=>{const i=e.getColor(L.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{})},12143:(e,t,i)=>{"use strict";i.d(t,{w:()=>l});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 l 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)}}},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}}},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)}},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),l=i(20492),c=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),b=i(25689),E=i(64383),S=i(98031),y=i(52776),w=i(67220),L=i(90766),R=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 l=1e3;const c=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&&c>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,l++))),!m&&"number"===typeof p&&c>=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,l++));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,c=g.options.hoverMessage;if(!c||(0,o.it)(c))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)(c),f,l++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return L.AE.EMPTY;const s=this._editor.getModel(),n=this._languageFeaturesService.hoverProvider;if(!n.has(s))return L.AE.EMPTY;return this._getMarkdownHovers(n,s,e,i)}_getMarkdownHovers(e,t,i,s){const n=i.range.getStartPosition();return(0,R.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,l,c,h,d){this._hoverParticipant=i,this._editor=s,this._languageService=n,this._openerService=r,this._commandService=o,this._keybindingService=l,this._hoverService=c,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),l=n.supportsVerbosityAction(_.M$.Decrease);if(!o&&!l)return new P(e,s,r);const c=A("div.verbosity-actions");return s.prepend(c),r.add(this._renderHoverExpansionAction(c,_.M$.Increase,o)),r.add(this._renderHoverExpansionAction(c,_.M$.Decrease,l)),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(b.L.asCSSSelector(r?N:I)));o.tabIndex=0;const l=new w.fO("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(n.add(this._hoverService.setupManagedHover(l,o,function(e,t){switch(t){case _.M$.Increase:{const t=e.lookupKeybinding(c.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(c.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?c.jq:c.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),l=n.hoverPart,c=new O(this._hoverParticipant,l.range,o.contents,l.isBeforeContent,l.ordinal,a),h=this._renderHoverPart(c,this._onFinishedRendering);return this._replaceRenderedHoverPartAtIndex(t,h,c),i&&this._focusOnHoverPartWithIndex(t),{hoverPart:c,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 l={verbosityRequest:{verbosityDelta:s,previousHover:e.hover}};let c;try{c=await Promise.resolve(n.provideHover(t,e.hoverPosition,a.token,l))}catch(h){(0,E.M_)(h)}return a.dispose(),this._ongoingHoverOperations.delete(n),c}_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 c=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=c.add(new l.T({editor:e},i,n));c.add(u.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",r()})));const g=c.add(u.render(a));h.appendChild(g.element),d.appendChild(t)}return{hoverPart:t,hoverElement:h,dispose(){c.dispose()}}}},28449:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(50868),o=i(31450),a=i(36677),l=i(75326),c=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 l.L(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new l.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 c=i;if(c.startLineNumber!==c.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,c,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-(c.endColumn-c.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},o>1&&(c=new l.L(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+o-1));const d=new g(i,c,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:c.R.writable,kbOpts:{kbExpr:c.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:c.R.writable,kbOpts:{kbExpr:c.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)},57244:(e,t,i)=>{"use strict";var s=i(5662),n=i(91508),r=i(31450),o=i(7936),a=i(36677),l=i(60002),c=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:l,indentSize:c,insertSpaces:h}=e.getOptions(),d=(e,t)=>(t=t||1,o.Y.shiftIndent(e,e.length+t,l,c,h)),u=(e,t)=>(t=t||1,o.Y.unshiftIndent(e,e.length+t,l,c,h)),g=[],p=e.getLineContent(i);let C=n.UU(p),E=C;a.shouldIncrease(i)?(E=d(E),C=d(C)):a.shouldIndentNextLine(i)&&(E=d(E));for(let o=++i;o<=s;o++){if(b(e,o))continue;const t=e.getLineContent(o),i=n.UU(t),s=E;a.shouldDecrease(o,s)&&(E=u(E),C=u(C)),i!==E&&g.push(m.k.replaceMove(new _.L(o,1,o,i.length+1),(0,f.P)(E,c,h))),a.shouldIgnore(o)||(a.shouldIncrease(o,s)?(C=d(C),E=C):E=a.shouldIndentNextLine(o,s)?d(E):C)}return g}function b(e,t){if(!e.tokenization.isCheapToTokenize(t))return!1;return 2===e.tokenization.getLineTokens(t).getStandardTokenType(0)}var E=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:l.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 L extends r.ks{static{this.ID="editor.action.indentationToTabs"}constructor(){super({id:L.ID,label:u.kg("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.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 R 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}))),l=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[l]}).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 R{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 R{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 R{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:l.R.writable,metadata:{description:u.aS("editor.reindentlinesDescription","Reindent the lines of the editor.")}})}run(e,t){const i=e.get(c.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:l.R.writable,metadata:{description:u.aS("editor.reindentselectedlinesDescription","Reindent the selected lines of the editor.")}})}run(e,t){const i=e.get(c.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,E.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:l,insertSpaces:c}=i.getOptions(),h=[],u={shiftIndent:e=>o.Y.shiftIndent(e,e.length+1,r,l,c),unshiftIndent:e=>o.Y.unshiftIndent(e,e.length+1,r,l,c)};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,c);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),l=d.c(s,r)+o,u=d.k(l,r,c);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,l=e.getLineCount();o<=l;o++){let i=e.getLineFirstNonWhitespaceColumn(o);if(0===i&&(i=e.getLineMaxColumn(o)),1===i)continue;const l=new a.Q(o,1,o,i),c=e.getValueInRange(l),h=s?c.replace(/\t/gi,n):c.replace(r,"\t");t.addEditOperation(l,h)}}D=S([y(1,c.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)(L),(0,r.Fl)(T),(0,r.Fl)(x),(0,r.Fl)(k),(0,r.Fl)(A),(0,r.Fl)(N),(0,r.Fl)(I)},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})},3730:(e,t,i)=>{"use strict";i.d(t,{CN:()=>u,EP:()=>c,P8:()=>d});var s=i(64383),n=i(5662),r=i(83069),o=i(36677),a=i(36456),l=i(79400);class c{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 l;a.getStartPosition().isBefore(t)?(l=o.Q.fromPositions(a.getStartPosition(),t),n="after"):(l=o.Q.fromPositions(t,a.getEndPosition()),n="before"),s.push(new h(e,new c(l,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 l=n.getStartOffset(a),c=n.getEndOffset(a);return c-l===1&&(l===r&&a>1?(l=n.getStartOffset(a-1),c=n.getEndOffset(a-1)):c===r&&a<n.getCount()-1&&(l=n.getStartOffset(a+1),c=n.getEndOffset(a+1))),new o.Q(i,l+1,i,c+1)}}function u(e){return l.r.from({scheme:a.ny.command,path:e.id,query:e.arguments&&encodeURIComponent(JSON.stringify(e.arguments))}).toString()}},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)},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),l=i(64383),c=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),b=i(87289),E=i(32500),S=i(56942),y=i(18938),w=i(37927),L=i(3730),R=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 c.Cm,this._sessionDisposables=new c.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,c.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 L.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,l.dz)(n)}finally{s.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(h),this._sessionDisposables.add((0,c.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 c.Cm,t=e.add(new w.gi(this._editor)),i=new c.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,c.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,l=new _.Q(o,1,o,n.getLineMaxColumn(o)),h=this._getInlineHintsForRange(l);this._updateHintsDecorators([l],h),i.add((0,c.s)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([l],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(R.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(R.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 b.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 L.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:l,padding:c,isUniform:h}=this._getLayoutInfo(),d="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(d,l);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,l=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")),c&&(o&&l?(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`):l?(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),l&&!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,E.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 L.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()}}))},68250:(e,t,i)=>{"use strict";i.d(t,{u:()=>R});var s=i(90766),n=i(16980),r=i(83069),o=i(87289),a=i(57039),l=i(10154),c=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),b=i(98031),E=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 L extends a.mm{constructor(e,t,i,s){super(10,t,e.item.anchor.range,i,s,!0),this.part=e}}let R=class extends d.xJ{constructor(e,t,i,s,n,r,o,a,l){super(e,t,i,r,a,s,n,l),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 L(t.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof L?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()}}};R=y([w(1,l.L),w(2,p.C),w(3,b.b),w(4,E.TN),w(5,g.pG),w(6,c.ITextModelService),w(7,m.ILanguageFeaturesService),w(8,S.d)],R)},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),l=i(18938),c=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(l.ITextModelService),_=e.get(p.Z),v=e.get(u.d),C=e.get(m._Y),b=e.get(f.Ot);if(await h.item.resolve(r.XO.None),!h.part.location)return;const E=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 c.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(E.uri);try{const i=new c.QS(e.object.textEditorModel,a.Q.getStartPosition(E.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){b.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(l.ITextModelService),r=await n.createModelReference(s.uri);await i.invokeWithinContext((async e=>{const n=t.hasSideBySideModifier,o=e.get(g.fN),l=h.x2.inPeekEditor.getValue(o),d=!n&&i.getOption(89)&&!l;return new c.mR({openToSide:n,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new c.QS(r.object.textEditorModel,a.Q.getStartPosition(s.range)),a.Q.lift(s.range))})),r.dispose()}},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"},62051:(e,t,i)=>{"use strict";i.d(t,{p:()=>c});var s=i(31308),n=i(91508),r=i(1245),o=i(32848),a=i(5662),l=i(78209);class c extends a.jG{static{this.inlineSuggestionVisible=new o.N1("inlineSuggestionVisible",!1,(0,l.kg)("inlineSuggestionVisible","Whether an inline suggestion is visible"))}static{this.inlineSuggestionHasIndentation=new o.N1("inlineSuggestionHasIndentation",!1,(0,l.kg)("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"))}static{this.inlineSuggestionHasIndentationLessThanTabSize=new o.N1("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,l.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,l.kg)("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion"))}constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=c.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=c.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=c.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=c.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],l=a[0];if(e<=t.textModel.getLineIndentColumn(o.lineNumber)){let e=(0,n.HG)(l);-1===e&&(e=l.length-1),i=e>0;const o=t.textModel.getOptions().tabSize;s=r.A.visibleColumnFromColumn(l,e+1,o)<o}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(s)})))}}},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),l=i(25890),c=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),b=i(57629),E=i(65644),S=i(27195),y=i(50091),w=i(32848),L=i(47508),R=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,R._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,l,h,d,g,p,f){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=r,this._suggestionCount=o,this._extraCommands=l,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 c.uC((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new c.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,R._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 b.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 E.p{constructor(e,t,i,s,n,r,o,a,l){super(e,{resetMenu:t,...i},s,n,r,o,a,l),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,b.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,l.aI)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,l.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,L.Z),N(6,T.b),N(7,y.d),N(8,x.k)],U)},80409:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(31308),o=i(49154),a=i(60002),l=i(78244),c=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),b=i(83069),E=i(32500),S=i(56942),y=i(80789),w=i(41234),L=i(91508),R=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 l,c=0;for(const d of i.parts){let e=d.lines;void 0===l?(n.push({column:d.column,text:e[0],preview:d.preview}),e=e.slice(1)):o([a.substring(c,d.column-1)],void 0),e.length>0&&(o(e,H),void 0===l&&d.column<=a.length&&(l=d.column)),c=d.column-1}void 0!==l&&o([a.substring(c)],void 0);const h=void 0!==l?new P.GM(l,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 b.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",l=s.get(95),c=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=L.aC(s),p=L.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,l,c!==T.Bc.OFF,null),u),u.appendString("</div>")}u.appendString("</div>"),(0,R.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,L.Qp)(n,e.text),o=X.W.ofText(n.substring(0,r)).addToPosition(e.range.getStartPosition()),a=e.text.substring(r),l=x.Q.fromPositions(o,e.range.getEndPosition());return new Q.WR(l,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,L.UU)(o).length;if(r.range.startColumn-1<=a){const e=(0,L.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,l=x.Q.fromPositions(n,s),c=r.text.startsWith(t)?r.text.substring(t.length):r.text.substring(e);r=new Q.WR(l,c)}const l=t.getValueInRange(r.range),c=function(e,t){if(oe?.originalValue===e&&oe?.newValue===t)return oe?.changes;{let i=le(e,t,!0);if(i){const s=ae(i);if(s>0){const n=le(e,t,!1);n&&ae(n)<s&&(i=n)}}return oe={originalValue:e,newValue:t,changes:i},i}}(l,r.text);if(!c)return;const h=r.range.startLineNumber,d=new Array;if("prefix"===i){const e=c.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==l.length)return}const u=r.text.length-n;for(const g of c){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 le(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),l=o(t);return new ie.uP({getElements:()=>a},{getElements:()=>l}).ComputeDiff(!1).changes}var 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},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,l=(async()=>{var l,c;if((o||t.triggerKind===Z.qw.Automatic)&&await(l=this._debounceValue.get(this.textModel),c=a.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),l);c&&(t=c.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})(),c=new ge(s,a,l);return this._updateOperation.value=c,l}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=ce([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 l=o.substring(0,a),c=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()),l=l.trimStart(),0===l.length&&(c=c.trimStart())),l.startsWith(h)&&!!(0,ee.dE)(d,c)}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),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},Ee=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,l,c,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=l,this._enabled=c,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 b.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(),l=t.preserveCurrentCompletion||a?.forwardStable?a:void 0;return this._source.fetch(n,o,l)})),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),l=this._positions.read(e),c=[r,...we(this.textModel,l,r)],h=c.map(((e,i)=>re(e,t,a,l[i],o))).filter(_.O9);return{edits:c,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=Le(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 b.y(n.lineNumber,o.column),l=o.text,c=t(a,l);if(c===l.length&&1===n.parts.length)return void this.accept(e);const h=l.substring(0,c),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=Le(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)),l=(0,P.tN)(s,r);if(l.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 c=function(e,t){let i="";const s=(0,L.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,l);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,L.Qp)(a,s),l=x.Q.fromPositions(t,t.delta(0,n));return new Q.WR(l,c)}))}function Le(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=be([Ee(9,Ce._Y),Ee(10,ve.d),Ee(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 Re=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=b.y.lift(t),l=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)),c=(0,j.Cn)(l,(0,G.VE)((e=>e.prefixLength),G.U9));return c?c.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 Re.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,E,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=E,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 b.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 c.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,l.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 b.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,E.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=l.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,c.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=l.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,c.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,c.p.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Pe.M$.and(a.R.writable,c.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,c.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:l.Wt,label:Ie.kg("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:c.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(c.p.inlineSuggestionVisible,a.R.tabMovesFocus.toNegated(),c.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:c.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),l=a.getDomNode();e.fragment.appendChild(l),o.triggerExplicitly(),i.add(a);const c={hoverPart:s,hoverElement:l,dispose(){i.dispose()}};return new n.Ke([c])}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{})},92674:(e,t,i)=>{"use strict";i.d(t,{AL:()=>d,Vs:()=>h,x9:()=>u,xD:()=>l,yP:()=>c});var s=i(25890),n=i(91508),r=i(83069),o=i(36677),a=i(75295);class l{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 c{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 c(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 l&&t instanceof l||e instanceof h&&t instanceof h)&&e.equals(t))}},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),l=i(83069),c=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 l.y?function(e,t){const i=t.getWordAtPosition(e),s=t.getLineMaxColumn(e.lineNumber);return i?new c.Q(e.lineNumber,i.startColumn,e.lineNumber,s):c.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 c=new n.Zv;return f.set(e,c.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 l.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=>c.complete(e)),(e=>c.error(e))),c.p}const y=await Promise.all(g.map((async e=>({provider:e,completions:await C(e)})))),w=new Map,L=[];for(const n of y){const e=n.completions;if(!e)continue;const t=new E(e,n.provider);L.push(t);for(const s of e.items){const e=S.from(s,t,u,i,d);w.set(e.hash(),e)}}return new b(Array.from(w.values()),new Set(w.keys()),L)}class b{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 E{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,l=e.range?c.Q.lift(e.range):i;if("string"===typeof e.insertText){if(o=e.insertText,r&&e.completeBracketPairs){o=y(o,l.getStartPosition(),n,r);const t=o.length-e.insertText.length;0!==t&&(l=new c.Q(l.startLineNumber,l.startColumn,l.endLineNumber,l.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,l.getStartPosition(),n,r);const i=e.insertText.snippet.length-t;0!==i&&(l=new c.Q(l.startLineNumber,l.startColumn,l.endLineNumber,l.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:l})}else(0,s.xb)(e.insertText);return new S(o,e.command,l,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}},73401:(e,t,i)=>{"use strict";i.d(t,{GM:()=>h,OA:()=>u,pY:()=>d,tN:()=>g,zk:()=>c});var s=i(64383),n=i(5662),r=i(31308),o=i(83069),a=i(36677);const l=[];function c(){return l}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)}},58145:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002);var r=i(5662),o=i(31308),a=i(7085),l=i(83069),c=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 l(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 c=t.getLineContent(i.lineNumber);let h,d=0;if(!r&&(n||!s)){for(const e of i.parts){let t=e.lines;s&&!n&&(l(t,_),t=[]),void 0===h?(o.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):l([c.substring(d,e.column-1)],void 0),t.length>0&&(l(t,_),void 0===h&&e.column<=c.length&&(h=e.column)),d=e.column-1}void 0!==h&&l([c.substring(d)],void 0)}const p=void 0!==h?new g.GM(h,c.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 c.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 c.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:c.Q.fromPositions(new l.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,b=i(32848),E=i(63591),S=i(62083),y=i(56942),w=i(18447),L=i(92674),R=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 l.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,E._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,E._Y),H(4,b.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,l,c){super(e,{resetMenu:i,...s},n,r,o,a,l,c),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,b.fN),H(6,M.Z),H(7,P.b),H(8,R.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 l.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,E._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 c.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 l.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,E._Y)],oe);var ae,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},ce=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 b.N1(this.inlineEditVisibleKey,!1)}static{this.cursorAtInlineEditKey="cursorAtInlineEdit"}static{this.cursorAtInlineEditContext=new b.N1(this.cursorAtInlineEditKey,!1)}static get(e){return e.getContribution(ae.ID)}constructor(e,t,i,s,n,r,a,l){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=s,this._commandService=n,this._configurationService=r,this._diffProviderFactoryService=a,this._modelService=l,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 L.xD(i,[new L.yP(s,n,!1)]),a=t.range.startLineNumber===t.range.endLineNumber&&1===r.parts.length&&1===r.parts[0].lines.length,l=""===t.text;if(!a&&!l)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 c=(0,o.yQ)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(c.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(c.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 l,c;if(t&&await(l=50,c=o,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),l);c&&(t=c.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(c.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=l.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=le([ce(1,E._Y),ce(2,b.fN),ce(3,y.ILanguageFeaturesService),ce(4,R.d),ce(5,K.pG),ce(6,Z.Hg),ce(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:b.M$.and(n.R.writable,he.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:b.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=b.M$.and(n.R.writable,b.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=b.M$.and(n.R.writable,he.inlineEditVisibleContext,b.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=b.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=b.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)},40677:(e,t,i)=>{"use strict";var s=i(31450),n=i(10350),r=i(31308),o=i(49154),a=i(29163),l=i(60002),c=i(78209),h=i(32848);const d=new h.N1("inlineEditsVisible",!1,(0,c.kg)("inlineEditsVisible","Whether an inline edit is visible")),u=new h.N1("inlineEditsIsPinned",!1,(0,c.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),b=i(90766),E=i(18447),S=i(51241),y=i(64383),w=i(79400),L=i(94746),R=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),l=new G(n,o),c=o-r,h=this._editor.getOption(67)*t.newLines.length,d=c-h;return{topCode:a,bottomCode:l,codeHeight:c,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 l,c,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 l=this._previewEditorObs.contentWidth.read(e);this._previewEditor.layout({height:o,width:l})}))),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}((l=this._userPrompt,c=e=>e??"",h=e=>e,(0,p.dQ)(void 0,(e=>c(l.read(e))),((e,t)=>l.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},E.XO.None);if(!e.identical)return new V(R.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,E.bs)(this._fetchStore);await(0,b.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,L.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(c.aS("action.inlineEdits.showNext","Show Next Inline Edit")),precondition:h.M$.and(l.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(c.aS("action.inlineEdits.showPrevious","Show Previous Inline Edit")),precondition:h.M$.and(l.R.writable,d),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=se.get(t);i?.model.get()?.previous()}}class le extends s.ks{constructor(){super({id:"editor.action.inlineEdits.trigger",...re(c.aS("action.inlineEdits.trigger","Trigger Inline Edit")),precondition:l.R.writable})}async run(e,t){const i=se.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e))}))}}class ce extends s.ks{constructor(){super({id:"editor.action.inlineEdits.accept",...re(c.aS("action.inlineEdits.accept","Accept Inline Edit")),precondition:d,menuOpts:{menuId:ne.D8.InlineEditsActions,title:c.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(c.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)(le),(0,s.Fl)(oe),(0,s.Fl)(ae),(0,s.Fl)(ce),(0,s.Fl)(he)},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),l=i(25689),c=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(...l.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=c.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)},15040:(e,t,i)=>{"use strict";var s=i(31450),n=i(50672),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)},75639:(e,t,i)=>{"use strict";var s=i(24939),n=i(36999),r=i(31450),o=i(15092),a=i(91508),l=i(7085),c=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++]=l.k.delete(new c.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 c.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new c.Q(i.startLineNumber,1,i.startLineNumber,1),n+"\n"):t.addEditOperation(new c.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),b=i(64395),E=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 L=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:l,insertSpaces:h}=e.getOptions(),d=this.buildIndentConverter(o,l,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 c.Q(1,1,1,1),null):(t.addEditOperation(new c.Q(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new c.Q(s,1,s,e.getLineMaxColumn(s)),null)),r=new p.L(s,1,s,1)}else{let n,l;if(this._isMovingDown){n=r.endLineNumber+1,l=e.getLineContent(n),t.addEditOperation(new c.Q(n-1,e.getLineMaxColumn(n-1),n,e.getLineMaxColumn(n)),null);let u=l;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+b.c(t,o),s=b.k(i,o,h);u=s+this.trimStart(l)}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)},c=(0,E.$f)(this._autoIndent,t,e.getLanguageIdAtPosition(n,1),r.startLineNumber,d,this._languageConfigurationService);if(null!==c){const t=a.UU(e.getLineContent(n)),i=b.c(c,o);if(i!==b.c(t,o)){const e=b.k(i,o,h);u=e+this.trimStart(l)}}}t.addEditOperation(new c.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 l={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)},c=(0,E.$f)(this._autoIndent,l,e.getLanguageIdAtPosition(n,1),r.startLineNumber+1,d,this._languageConfigurationService);if(null!==c){const i=a.UU(e.getLineContent(r.startLineNumber)),s=b.c(c,o),n=b.c(i,o);if(s!==n){const i=s-n;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}else t.addEditOperation(new c.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n")}else if(n=r.startLineNumber-1,l=e.getLineContent(n),t.addEditOperation(new c.Q(n,1,n+1,1),null),t.addEditOperation(new c.Q(r.endLineNumber,e.getLineMaxColumn(r.endLineNumber),r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),"\n"+l),this.shouldAutoIndent(e,r)){const l={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)},c=this.matchEnterRule(e,d,o,r.startLineNumber,r.startLineNumber-2);if(null!==c)0!==c&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,c);else{const i=(0,E.$f)(this._autoIndent,l,e.getLanguageIdAtPosition(r.startLineNumber,1),n,d,this._languageConfigurationService);if(null!==i){const s=a.UU(e.getLineContent(r.startLineNumber)),n=b.c(i,o),l=b.c(s,o);if(n!==l){const i=n-l;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 l=(0,E.Yb)(e,s,this._languageConfigurationService);null!==l&&2&l&&(o=t.unshiftIndent(o));return b.c(o,i)-b.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 c.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 c.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 l=e.getLineMaxColumn(o),h=(0,S.h)(this._autoIndent,e,new c.Q(o,l,o,l),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 l=e.getLineContent(o),h=a.UU(l),d=b.c(h,s)+r,u=b.k(d,s,n);u!==h&&(t.addEditOperation(new c.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}};L=y([w(3,C.JZ)],L);class R{static{this._COLLATOR=null}static getCollator(){return R._COLLATOR||(R._COLLATOR=new Intl.Collator),R._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 l.k.replace(new c.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(R.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)=>c.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 L(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(!R.canRun(t.getModel(),r,this.descending))return;const n=[];for(let r=0,o=s.length;r<o;r++)n[r]=new R(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 c of a){const e=new Set,t=[];for(let s=c.startLineNumber;s<=c.endLineNumber;s++){const n=i.getLineContent(s);e.has(n)||(t.push(n),e.add(n))}const o=new p.L(c.startLineNumber,1,c.endLineNumber,i.getLineMaxColumn(c.endLineNumber)),a=c.startLineNumber-r,h=new p.L(a,1,a+t.length-1,t[t.length-1].length);s.push(l.k.replace(o,t.join("\n"))),n.push(h),r+=c.endLineNumber-c.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}),l=new h(n,s,a);t.pushUndoStop(),t.executeCommands(this.id,[l]),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,c=i.length;a<c;a++){const e=i[a];let t=e.startLineNumber,c=e.endLineNumber,h=1,d=s.getLineMaxColumn(c);c<s.getLineCount()?(c+=1,d=1):t>1&&(t-=1,h=s.getLineMaxColumn(t)),r.push(l.k.replace(new p.L(t,h,c,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,l=s.length-1;a<l;a++){const e=s[a],t=s[a+1];null===c.Q.intersectRanges(e,t)?n.push(e):s[a+1]=c.Q.plusRange(e,t)}n.push(s[s.length-1]);const r=this._getEndCursorState(i,n),o=n.map((e=>l.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(c.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 c.Q(t,i,r,m);if(!C.isEmpty()){let i;e.isEmpty()?(a.push(l.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(l.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.endLineNumber-u,e.endColumn)):(a.push(l.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.startLineNumber-u,v.length-_)),null!==c.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 c.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 c.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 c.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),h=s.getValueInRange(a);r.push(l.k.replace(a,this._modifyText(h,n)))}else{const e=s.getValueInRange(o);r.push(l.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(c.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 c.Q(t,i,e.startLineNumber,1)}return new c.Q(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new c.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 c.Q(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new c.Q(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return s.sort(c.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)},85117:(e,t,i)=>{"use strict";var s,n=i(25890),r=i(90766),o=i(18447),a=i(47661),l=i(64383),c=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),b=i(78209),E=i(32848),S=i(56942),y=i(66261),w=i(32500),L=i(78381),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},T=function(e,t){return function(i,s){t(i,s,e)}};const x=new E.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(c.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 l=d.Qp(i,r);o+=l,i=i.substr(l),r=r.substr(l);const c=d.Vi(i,r);a-=c,i=i.substr(0,i.length-c),r=r.substr(0,r.length-c),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 L.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 l=!1;for(let i=0,s=a.length;i<s;i++)if(f.Q.containsPosition(a[i],t)){if(l=!0,0!==i){const e=a[i];a.splice(i,1),a.unshift(e)}break}if(!l)return void this.clearRanges();const c=a.map((e=>({range:e,options:s.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(c),this._syncRangesToken++}catch(a){(0,l.MB)(a)||(0,l.dz)(a),this._currentRequestCts!==r&&this._currentRequestCts||this.clearRanges()}}};k=s=R([T(1,E.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:b.kg("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:E.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)))))}),l.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,l.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},b.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)},14614:(e,t,i)=>{"use strict";var s=i(90766),n=i(18447),r=i(64383),o=i(16980),a=i(5662),l=i(36456),c=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),b=i(36677),E=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(b.Q.areIntersectingOrTouching(n.range,o.range)){s++;continue}b.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 L(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(E.IModelService).getModel(i);if(!o)return[];const a=await L(r,o,n.XO.None);if(!a)return[];for(let c=0;c<Math.min(s,a.links.length);c++)await a.links[c].resolve(n.XO.None);const l=a.links.slice(0);return a.dispose(),l}));var R,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{R=this}static{this.ID="editor.linkDetector"}static get(e){return e.getContribution(R.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=>L(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===l.ny.file&&e.startsWith(`${l.ny.file}:`)){const i=u.r.parse(e);if(i.scheme===l.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=R=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?c.zx?T.kg("links.navigate.kb.meta.mac","cmd + click"):T.kg("links.navigate.kb.meta","ctrl + click"):c.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)},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)},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),l=i(5662),c=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 l.HE,this._messageListeners=new l.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 b(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(b.fadeOut(this._messageWidget.value))}};v=s=f([_(1,g.fN),_(2,p.C)],v);const C=c.DX.bindToContribution(v.get);(0,c.E_)(new C({id:"leaveEditorMessage",precondition:v.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class b{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,c.HW)(v.ID,v,4)},50352:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(90766),o=i(24939),a=i(5662),l=i(31450),c=i(50672),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),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},E=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 l.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,c.c.addCursorUp(n,r,s)),n.revealTopMostCursor(i.source),S(r,n.getCursorStates())}}class w extends l.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,c.c.addCursorDown(n,r,s)),n.revealBottomMostCursor(i.source),S(r,n.getCursorStates())}}class L extends l.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 R extends l.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 l.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 l,c=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,c=new d.L(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new k(e,t,r,l,s,n,c)}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 l.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(),l=a.matchCase;if(a.isRevealed){let e=a.searchString;l||(e=e.toLowerCase());let t=o.searchText;if(l||(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 l=0,c=0,d=i.length,u=s.length;l<d;){const e=i[l];if(c>=u)n.push(e),l++;else{const t=h.Q.compareRangesUsingStarts(e,s[c]);t<0?(!s[c].isEmpty()&&h.Q.areIntersecting(e,s[c])||n.push(e),l++):(t>0||l++,c++)}}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=b([E(1,_.ILanguageFeaturesService)],O);class P extends l.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 l.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,l.HW)(A.ID,A,4),(0,l.HW)(O.ID,O,1),(0,l.Fl)(y),(0,l.Fl)(w),(0,l.Fl)(L),(0,l.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,l.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,l.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,l.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,l.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,l.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,l.Fl)(R),(0,l.Fl)(T),(0,l.Fl)(P),(0,l.Fl)(F)},4519:(e,t,i)=>{"use strict";var s=i(91090),n=i(5662),r=i(31450),o=i(60002),a=i(62083),l=i(56942),c=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 b={Visible:new C.N1("parameterHintsVisible",!1),MultipleSignatures:new C.N1("parameterHintsMultipleSignatures",!1)};async function E(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(l.ILanguageFeaturesService),o=await e.get(_.ITextModelService).createModelReference(i);try{const e=await E(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 c.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,c.SS)((e=>E(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 L,R=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,R.kg("parameterHintsNextIcon","Icon for show next parameter hint.")),K=(0,U.pU)("parameter-hints-previous",N.W.chevronUp,R.kg("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Y=class extends n.jG{static{L=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=b.Visible.bindTo(i),this.keyMultipleSignatures=b.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 l=x.BC(o,G(".signature")),c=x.BC(o,G(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:l,overloads:n,docs:c,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(R.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 L.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=L=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,R.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,l.ILanguageFeaturesService)],X);class Z extends r.ks{constructor(){super({id:"editor.action.triggerParameterHints",label:R.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:b.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(b.Visible,b.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(b.Visible,b.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},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),l=i(47661),c=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 l.Q1(new l.bU(0,122,204)),b={showArrow:!0,showFrame:!0,className:"",frameColor:C,arrowColor:C,keepEditorSelection:!1};class E{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,b,!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,l=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(o/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(l=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 E(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:l;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const c=t*o-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=c+"px",this.container.style.overflow="hidden"),this._doLayout(c,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 L=i(78209),R=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,L.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:l.Q1.white,primaryHeadingColor:l.Q1.fromHex("#333333"),secondaryHeadingColor:l.Q1.fromHex("#6c6c6cb3")};let U=class extends w{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new c.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 l=this._getActionBarOptions();this._actionbarWidget=new n.E(i,l),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new r.rc("peekview.close",L.kg("label.close","Close"),a.L.asClassName(o.W.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:R.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:l.Q1.black,hcLight:l.Q1.white},L.kg("peekViewTitleBackground","Background color of the peek view title area.")),B=(0,A.x1A)("peekViewTitleLabel.foreground",{dark:l.Q1.white,light:l.Q1.black,hcDark:l.Q1.white,hcLight:A.By2},L.kg("peekViewTitleForeground","Color of the peek view title.")),W=(0,A.x1A)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},L.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},L.kg("peekViewBorder","Color of the peek view borders and arrow.")),z=(0,A.x1A)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Q1.black,hcLight:l.Q1.white},L.kg("peekViewResultsBackground","Background color of the peek view result list.")),G=((0,A.x1A)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:l.Q1.white,hcLight:A.By2},L.kg("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.fileForeground",{dark:l.Q1.white,light:"#1E1E1E",hcDark:l.Q1.white,hcLight:A.By2},L.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},L.kg("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionForeground",{dark:l.Q1.white,light:"#6C6C6C",hcDark:l.Q1.white,hcLight:A.By2},L.kg("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:l.Q1.black,hcLight:l.Q1.white},L.kg("peekViewEditorBackground","Background color of the peek view editor.")));(0,A.x1A)("peekViewEditorGutter.background",G,L.kg("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,A.x1A)("peekViewEditorStickyScroll.background",G,L.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},L.kg("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,A.x1A)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},L.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},L.kg("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},85646:(e,t,i)=>{"use strict";var s=i(31450),n=i(87119),r=i(78209),o=i(83844),a=i(1098),l=i(30076),c=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,l.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,c.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."))},1098:(e,t,i)=>{"use strict";i.d(t,{X:()=>c});var s=i(8597),n=i(51241),r=i(5662),o=i(31308),a=i(87958),l=i(38844);class c extends r.jG{static{this.ID="editor.contrib.placeholderText"}constructor(e){var t,i;super(),this._editor=e,this._editorObs=(0,l.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)}}},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),l=i(47612),c=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 l={editor:a},c=(0,r.jA)(a);if(c){let e=a.saveViewState()??void 0;o.add(c.onDidChangeCursorPosition((()=>{e=a.saveViewState()??void 0}))),l.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},o.add((0,s.P)(t.onCancellationRequested)((()=>l.restoreViewState?.())))}o.add((0,n.s)((()=>this.clearDecorations(a)))),o.add(this.provideWithTextEditor(l,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,c.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,l.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)}}},59731:(e,t,i)=>{"use strict";var s=i(16980),n=i(5662),r=i(31450),o=i(99645),a=i(78209);class l 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)(l.ID,l,2)},50071:(e,t,i)=>{"use strict";var s=i(11007),n=i(90766),r=i(18447),o=i(64383),a=i(16980),l=i(5662),c=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),b=i(50868),E=i(99645),S=i(78209),y=i(27195),w=i(1646),L=i(32848),R=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 L.N1("renameInputVisible",!1,S.kg("renameInputVisible","Whether the rename input widget is visible"));new L.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 l.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,c.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,c.j)(this._renameCandidateListView),(0,c.j)(void 0!==this._nPxAvailableAbove),(0,c.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 l.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,l.s)((()=>{this._renameCts=void 0,r.dispose(!0)}))),h.add((0,l.s)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)}))),h.add((0,l.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,c.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,c.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,c.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,c.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 l=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.`),l.forEach((e=>this._candidates.add(e.newSymbolName))),l.length<1?s("returning early - no valid distinct candidates"):(s("setting candidates"),this._renameCandidateListView.setCandidates(l),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,L.fN),q(5,T.rr)],Q);class X{constructor(e,t){this._disposables=new l.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 l.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,c.j)(this._inputNode),this._inputNode}get button(){return(0,c.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,c,h){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=s,this._progressService=n,this._logService=o,this._configService=a,this._languageFeaturesService=c,this._telemetryService=h,this._disposableStore=new l.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 l=new b.gI(this.editor,5,void 0,this._cts.token);let c;try{e("resolving rename location");const t=i.resolveRenameLocation(l.token);this._progressService.showWhile(t,250),c=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))&&E.k.get(this.editor)?.showMessage(C||S.kg("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),t)))}finally{l.dispose()}if(!c)return void e("returning early - no loc");if(c.rejectReason)return e(`returning early - rejected with reason: ${c.rejectReason}`,c.rejectReason),void E.k.get(this.editor)?.showMessage(c.rejectReason,t);if(l.token.isCancellationRequested)return void e("returning early - cts1 cancelled");const h=new b.gI(this.editor,5,c.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(c.range,c.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,c.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}'",c?.text,f.newName),code:"undoredo.rename",quotableLabel:S.kg("quotableLabel","Renaming {0} to {1}",c?.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}",c.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,R._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:L.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:L.M$.and(f.R.focus,L.M$.not("isComposing")),primary:3}})),(0,d.E_)(new oe({id:"acceptRenameInputWithPreview",precondition:L.M$.and($,L.M$.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:L.M$.and(f.R.focus,L.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,c.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"}}})},18278:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(17469),a=i(87289),l=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},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=c([h(1,o.JZ),h(2,l.IEditorWorkerService)],d),(0,r.HW)(d.ID,d,1)},98745:(e,t,i)=>{"use strict";var s,n=i(5662),r=i(64383),o=i(23750),a=i(84001),l=i(90766),c=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},b=function(e,t){return function(i,s){t(i,s,e)}};let E=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()]},l=()=>{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)&&l()}))),this._register(i.onDidColorThemeChange(l))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};E=C([b(0,f.ISemanticTokensStylingService),b(1,o.IModelService),b(2,h.Gy),b(3,a.pG),b(4,g.ILanguageFeatureDebounceService),b(5,m.ILanguageFeaturesService)],E);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 l.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 c.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,l=o.length;for(let c=t.edits.length-1;c>=0;c--){const e=t.edits[c];if(e.start>n.length)return i.warnInvalidEditStart(r.resultId,t.resultId,c,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,l-h,h),l-=h),e.data&&(s._copy(e.data,0,o,l-e.data.length,e.data.length),l-=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([b(1,f.ISemanticTokensStylingService),b(2,h.Gy),b(3,g.ILanguageFeatureDebounceService),b(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)(E)},44798:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(32371),a=i(84585),l=i(45538),c=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 l=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{l()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),l()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),l()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),l()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.r)&&(this._cancelAll(),l())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),l()}))),l()}_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,l.toMultilineTokens2)(o,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(n)),(()=>this._removeOutstandingRequest(n))),n}};_=m([f(1,p.ISemanticTokensStylingService),f(2,h.Gy),f(3,c.pG),f(4,d.ILanguageFeatureDebounceService),f(5,g.ILanguageFeaturesService)],_),(0,r.HW)(_.ID,_,1)},32371:(e,t,i)=>{"use strict";i.d(t,{BB:()=>u,WG:()=>v,aw:()=>f,br:()=>m,nZ:()=>b,yS:()=>g});var s=i(18447),n=i(64383),r=i(79400),o=i(23750),a=i(50091),l=i(631),c=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 b(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,l.j)(i instanceof r.r);const s=e.get(o.IModelService).getModel(i);if(!s)return;const{documentSemanticTokensProvider:n}=e.get(d.ILanguageFeaturesService),c=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(n,s);return c?c[0].getLegend():e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})),a.w.registerCommand("_provideDocumentSemanticTokens",(async(e,...t)=>{const[i]=t;(0,l.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,c.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,l.j)(i instanceof r.r);const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:c}=e.get(d.ILanguageFeaturesService),u=C(c,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 b(c,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,l.j)(i instanceof r.r),(0,l.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 b(u,a,h.Q.lift(n),s.XO.None);return g&&g.tokens?(0,c.encodeSemanticTokensDto)({id:0,type:"full",data:g.tokens.data}):void 0}))},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}},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,l=Date.now();for(;;){if(t>=o._maxRounds){e();break}if(!n){e();break}const c=i.bracketPairs.findNextBracket(n);if(!c){e();break}if(Date.now()-l>o._maxDuration){setTimeout((()=>o._bracketsRightYield(e,t+1,i,n,r)));break}if(c.bracketInfo.isOpeningBracket){const e=c.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=c.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(c.range)}}n=c.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,s,n,a){const l=new Map,c=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()-c>o._maxDuration){setTimeout((()=>o._bracketsLeftYield(e,t+1,i,s,n,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=l.has(e)?l.get(e):0;if(t-=1,l.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 l=r.Q.fromPositions(h.range.getEndPosition(),s.getStartPosition()),c=r.Q.fromPositions(h.range.getStartPosition(),s.getEndPosition());a.push({range:l}),a.push({range:c}),o._addBracketLeading(i,c,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=l.has(e)?l.get(e):0;l.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())}))}}}},10617:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(31450),a=i(83069),l=i(36677),c=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,c=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;c<n.length;c++){const e=n.charCodeAt(c);if((0,u.Wv)(e)&&(0,u.Lv)(h))break;if(95===e||45===e)break;h=e}a<c&&e.push({range:new l.Q(i.lineNumber,r+a,i.lineNumber,r+c)})}_addWordRanges(e,t,i){const s=t.getWordAtPosition(i);s&&e.push({range:new l.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 l.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),b=i(631),E=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 L=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=>c.L.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}}};L=p=S([y(1,v.ILanguageFeaturesService)],L);class R extends o.ks{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=L.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 c=e.all(t).concat(new g(n.selectSubwords));1===c.length&&c.unshift(new d.n);const h=[],u=[];for(const a of c)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])l.Q.isIRange(s.range)&&l.Q.containsPosition(s.range,i[t])&&u[t].push(l.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||l.Q.containsRange(t,s)&&!l.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 l.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 l.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)(L.ID,L,4),(0,o.Fl)(class extends R{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 R{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,b.j)(E.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()}}))},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),l=i(60002),c=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,c.JZ)],C),(0,o.HW)(C.ID,C,4);const b=o.DX.bindToContribution(C.get);(0,o.E_)(new b({id:"jumpToNextSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:l.R.textInputFocus,primary:2}})),(0,o.E_)(new b({id:"jumpToPrevSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:l.R.textInputFocus,primary:1026}})),(0,o.E_)(new b({id:"leaveSnippet",precondition:C.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:l.R.textInputFocus,primary:9,secondary:[1033]}})),(0,o.E_)(new b({id:"acceptSnippet",precondition:C.InSnippetMode,handler:e=>e.finish()}))},29319:(e,t,i)=>{"use strict";i.d(t,{EY:()=>r,GR:()=>l,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 l?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 l 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 l;return this.options.forEach(e.appendChild,e),e}}class c 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 c;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 l;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 c;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)}}},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),l=i(75326),c=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),b=i(78209),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},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 L{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 R{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=E([S(2,c.JZ)],T);class x{constructor(){this._date=new Date}static{this.dayNames=[b.kg("Sunday","Sunday"),b.kg("Monday","Monday"),b.kg("Tuesday","Tuesday"),b.kg("Wednesday","Wednesday"),b.kg("Thursday","Thursday"),b.kg("Friday","Friday"),b.kg("Saturday","Saturday")]}static{this.dayNamesShort=[b.kg("SundayShort","Sun"),b.kg("MondayShort","Mon"),b.kg("TuesdayShort","Tue"),b.kg("WednesdayShort","Wed"),b.kg("ThursdayShort","Thu"),b.kg("FridayShort","Fri"),b.kg("SaturdayShort","Sat")]}static{this.monthNames=[b.kg("January","January"),b.kg("February","February"),b.kg("March","March"),b.kg("April","April"),b.kg("May","May"),b.kg("June","June"),b.kg("July","July"),b.kg("August","August"),b.kg("September","September"),b.kg("October","October"),b.kg("November","November"),b.kg("December","December")]}static{this.monthNamesShort=[b.kg("JanuaryShort","Jan"),b.kg("FebruaryShort","Feb"),b.kg("MarchShort","Mar"),b.kg("AprilShort","Apr"),b.kg("MayShort","May"),b.kg("JuneShort","Jun"),b.kg("JulyShort","Jul"),b.kg("AugustShort","Aug"),b.kg("SeptemberShort","Sep"),b.kg("OctoberShort","Oct"),b.kg("NovemberShort","Nov"),b.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,l=t.addDecoration(r,o);this._placeholderDecorations.set(i,l)}}))}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 l.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)),l=i.addDecoration(o,D._decor.inactive);this._placeholderDecorations.set(e,l)}}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 l;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{l=l??s.toString();const t=l.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)]),l=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,c=e.validateRange({startLineNumber:n,startColumn:o,endLineNumber:n,endColumn:a});t=l.L.createWithDirection(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(e,t,i,s,n,r,l,c,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 L(e.get(d.L),f))),C=()=>l,b=f.getValueInRange(N.adjustSelection(f,e.getSelection(),i,0)),E=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 l=N.adjustSelection(f,a,i,0),u=N.adjustSelection(f,a,0,s);b!==f.getValueInRange(l)&&(l=a),E!==f.getValueInRange(u)&&(u=a);const L=a.setStartPosition(l.startLineNumber,l.startColumn).setEndPosition(u.endLineNumber,u.endColumn),O=(new g.fr).parse(t,!0,n),M=L.getStartPosition(),P=N.adjustWhitespace(f,M,r||d>0&&S!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),O);O.resolveVariables(new y([v,new R(C,d,I.length,"spread"===e.getOption(79)),new w(f,a,d,c),new T(f,a,h),new x,new k(_),new A])),p[d]=o.k.replace(L,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,l){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const c=[],h=e.getModel(),p=new g.fr,m=new g.mQ,f=new y([e.invokeWithinContext((e=>new L(e.get(d.L),h))),new R((()=>n),0,e.getSelections().length,"spread"===e.getOption(79)),new w(h,e.getSelection(),0,r),new T(h,e.getSelection(),l),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 l=o.k.replace(e,r);l.identifier={major:d,minor:0},l._isTracked=!0,c.push(l)}return p.ensureFinalTabstop(m,i,!0),{edits:c,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=>l.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=>l.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,c.JZ)],P)},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),l=i(32848),c=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),b=i(25521),E=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}),L="data-sticky-line-index",R="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 l;try{l=b.d.filter(o.inlineDecorations,r,o.minColumn,o.maxColumn)}catch(y){l=[]}const c=new E.zL(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,l,o.tabSize,o.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new C.fe(2e3),d=(0,E.UW)(c,h);let u;u=w?w.createHTML(h.build()):h.build();const g=document.createElement("span");g.setAttribute(L,String(e)),g.setAttribute(R,""),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(L,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,L);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,R)}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 c=0;c<t.children.length;c++){const e=t.children[c];e.range&&o.push(e.range.startLineNumber)}const a=this.updateIndex((0,p.El)(o,e.startLineNumber,((e,t)=>e-t))),l=this.updateIndex((0,p.El)(o,e.startLineNumber+s,((e,t)=>e-t)));for(let c=a;c<=l;c++){const o=t.children[c];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),le=i(36677),ce=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=c.R.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=c.R.stickyScrollVisible.bindTo(this._contextKeyService);const l=this._register(u.w5(a));this._register(l.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(l.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(le.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 le.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 l;e.add((0,h.s)((()=>a.dispose(!0)))),(0,ce.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;l!==i?(e.clear(),l=i,l.style.textDecoration="underline",e.add((0,h.s)((()=>{l.style.textDecoration="none"})))):l||(l=i,l.style.textDecoration="underline",e.add((0,h.s)((()=>{l.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),l=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const o of l){const a=o.startLineNumber,l=o.endLineNumber,c=o.nestingDepth;if(l-a>0){const o=(c-1)*e,h=c*e,d=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(l)-i,g=this._editor.getBottomForLineNumber(l)-i;if(o>u&&o<=g){n.push(a),r.push(l+1),s=g-h;break}if(h>d&&h<=g&&(n.push(a),r.push(l+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,l.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:l.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:l.M$.and(l.M$.has("config.editor.stickyScroll.enabled"),c.R.stickyScrollVisible),menu:[{id:o.D8.CommandPalette}]})}runEditorCommand(e,t){fe.get(t)?.focus()}}class be extends s.qO{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,n.aS)("selectNextStickyScrollLine.title","Select the next editor sticky scroll line"),precondition:c.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:18}})}runEditorCommand(e,t){fe.get(t)?.focusNext()}}class Ee extends s.qO{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,n.aS)("selectPreviousStickyScrollLine.title","Select the previous sticky scroll line"),precondition:c.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:c.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:c.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)(Ee),(0,o.ug)(be),(0,o.ug)(Se),(0,o.ug)(ye)},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,l=n.Nd.default,c=void 0){this.clipboardText=c,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=s,this._options=r,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=l,"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 l=1===this._refilterKind?this._items:this._filteredItems,c=[],h=!this._options.filterGraceful||l.length>2e3?n.dt:n.uU;for(let s=0;s<l.length;s++){const d=l[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),c.push(d),e.push(d.textLabel.length)}this._filteredItems=c.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)}}},48116:(e,t,i)=>{"use strict";i.d(t,{aR:()=>R,dt:()=>b,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),l=i(631),c=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"))},b=new m.D8("suggestWidgetStatusBar");class E{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 L{constructor(e,t,i,s){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=s}}async function R(e,t,i,r=S.default,l={triggerKind:0},c=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 b=(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 E(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,l,c);b(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,l,c);e=b(s,r,n)||e}catch(o){(0,n.M_)(o)}}))),e||c.isCancellationRequested)break}return await w,c.isCancellationRequested?(_.dispose(),Promise.reject(new n.AL)):new L(f.sort((R=r.snippetSortOrder,x.get(R))),C,{entries:v,elapsed:h.elapsed()},_);var R}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,l.j)(c.r.isUri(i)),(0,l.j)(h.y.isIPosition(n)),(0,l.j)("string"===typeof r||!r),(0,l.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),l=await R(a,d.object.textEditorModel,i,void 0,{triggerCharacter:r??void 0,triggerKind:r?1:0});for(const n of l.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((()=>l.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}}}},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),l=i(41234),c=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),b=i(30936),E=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},L=function(e,t){return function(i,s){t(i,s,e)}};let R=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)}};R=s=w([L(1,y.fN)],R);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),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},ce=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 l.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new l.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=le([ce(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,l=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),c=l.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:l,maxSizeBottom:c,minSize:r.with(Math.min(i,r.width))}}(),l=function(){const i=e.left-n.borderWidth-n.horizontalPadding,a=Math.max(n.horizontalPadding,e.left-t.width-n.borderWidth),l=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),c=l.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:l,maxSizeBottom:c,minSize:r.with(Math.min(i,r.width))}}(),c=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,l,c],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),be=i(7291),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},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.")),Le=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 Re=class{constructor(e,t,i,s){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=s,this._onDidToggleDetails=new l.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")),l=(0,B.BC)(o,(0,B.$)("span.left")),c=(0,B.BC)(o,(0,B.$)("span.right")),d=new ge.s(l,{supportHighlights:!0,supportIcons:!0});t.add(d);const u=(0,B.BC)(l,(0,B.$)("span.signature-label")),g=(0,B.BC)(l,(0,B.$)("span.qualifier-label")),p=(0,B.BC)(c,(0,B.$)("span.details-label")),m=(0,B.BC)(c,(0,B.$)("span.readMore"+re.L.asCSSSelector(we)));m.title=x.kg("readMore","Read More");return{root:i,left:l,right:c,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,l=e.get(121)||t.lineHeight,c=t.fontWeight,h=`${a}px`,d=`${l}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=c,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&&Le.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}),be.p.FILE),r=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),be.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}),be.p.FOLDER),(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),be.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,"")}Re=Ee([Se(1,ve.IModelService),Se(2,Ce.L),Se(3,te.Gy)],Re);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 l.fV,this._onDidFocus=new l.fV,this._onDidHide=new l.vl,this._onDidShow=new l.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new l.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 c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(119).showIcons);c();const d=n.createInstance(Re,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(),c()),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,l=i.itemHeight+i.statusBarHeight,c=B.BK(this.editor.getDomNode()),h=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),d=c.top+h.top+h.height,u=Math.min(t.height-d-i.verticalPadding,a),g=c.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<l&&(s=l),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,l),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 l.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 c.dG(!0,!1,!1,!1,33))||d.zx&&e.toKeyCodeChord().equals(new c.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(R,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=b.O.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const s=this.editor.getModel(),n=s.getAlternativeVersionId(),{item:r}=e,l=[],c=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 c.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()}));l.push(r.resolve(c.token).then((()=>{if(!r.completion.additionalTextEdits||c.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=E.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;l.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(c.cancel();s.canUndo();){n!==s.getAlternativeVersionId()&&s.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(r),Promise.all(l).finally((()=>{this._reportSuggestionAcceptedTelemetry(r,s,d,g,m,e.index,e.model.items),this.model.clear(),c.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 l=a.get(e.textLabel),c=l&&l.length>1?l[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:c})}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};l.Jh.once(this.model.onDidTrigger)((e=>{const t=[];l.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"),R.AtEnd,I.ob.Visible.toNegated(),M.OtherSuggestions.toNegated(),b.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(),b.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(),b.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()}})},10846:(e,t,i)=>{"use strict";var s=i(18447),n=i(26690),r=i(42522),o=i(5662),a=i(80301),l=i(36677),c=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 b=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 c=5;for(const h of r.f.concat(o,a)){if(h.score===n.ne.Default)continue;const t=new l.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)),c-- >=0&&h.resolve(s.XO.None)}return e}};b=_([v(5,g.GS)],b);let E=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 l of this._editorService.listCodeEditors())if(l.getModel()===e){n=l;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 c,h,g=e.getWordAtPosition(t);if(g?.word||(c=this._getTriggerCharacterInfo(e,t)),!g?.word&&!c)return;if(g||(g=e.getWordUntilPosition(t)),g.endColumn!==t.column)return;const f=e.getValueInRange(new l.Q(t.lineNumber,1,t.lineNumber,t.column));if(!c&&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,c?.providers),c&&{triggerKind:1,triggerCharacter:c.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 b(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(l.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}}};E=_([v(0,h.ILanguageFeaturesService),v(1,f.h),v(2,g.GS),v(3,a.T)],E),(0,c.x)(E)},88415:(e,t,i)=>{"use strict";i.d(t,{GS:()=>b});var s,n=i(90766),r=i(5662),o=i(74320),a=i(4853),l=i(62083),c=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 l=0;l<i.length&&i[l].score[0]===n;l++){const t=`${e.getLanguageId()}/${i[l].textLabel}`,s=this._cache.peek(t);if(s&&s.touch>a&&s.type===i[l].completion.kind&&s.insertText===i[l].completion.insertText&&(a=s.touch,o=l),i[l].completion.preselect&&-1===r)return l}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:l.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:l.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,c.pG)],C);const b=(0,d.u1)("ISuggestMemories");(0,h.v)(b,C,1)},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),l=i(5662),c=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),b=i(56942),E=i(26690),S=i(631),y=i(62051),w=i(30936),L=i(97035),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},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,c,d,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=s,this._logService=r,this._contextKeyService=o,this._configurationService=c,this._languageFeaturesService=d,this._envService=u,this._toDispose=new l.Cm,this._triggerCharacterListener=new l.Cm,this._triggerQuickSuggest=new n.pc,this._triggerState=void 0,this._completionDisposables=new l.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,l.AS)(this._triggerCharacterListener),(0,l.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,c.LJ)(t.charCodeAt(t.length-1))?(0,c.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:l,showDeprecated:c}=s.createSuggestFilter(this._editor),h=new C.l1(a,e.completionOptions?.kindFilter??l,e.completionOptions?.providerFilter,e.completionOptions?.providerItemsToReuse,c),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={...E.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,c.UU)(e.leadingLineContent)===(0,c.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=R([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,b.ILanguageFeaturesService),T(8,L.k)],k)},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[l]=await(new r.n).provideSelectionRanges(i,[a]);if(0===l.length)return o.None;const c=await e.computeWordRanges(i.uri,l[0].range);if(!c)return o.None;const h=i.getWordUntilPosition(a);return delete c[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=c[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=l.length;for(const t of l){if(!n.Q.containsRange(t.range,d))break;u-=1}return u}}}}},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."))},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)},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)},68887:(e,t,i)=>{"use strict";var s=i(90766),n=i(10350),r=i(16980),o=i(5662),a=i(98067),l=i(91508),c=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),b=i(36921),E=i(20492),S=i(63591),y=i(56245),w=i(72962),L=i(25154),R=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=R.Jh.chain(o.event,(e=>e.map((e=>new w.Z(e))).filter((e=>3===e.keyCode)))),l=this._register(new y.f(this.el,L.B.Tap)).event;this._register(L.q.addTarget(this.el));const c=R.Jh.any(r.event,a,l);this._register(c((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(E.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 b.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 c of t){const e=s.getDecorationInfo(c);if(!e)continue;const t=i.getValueInRange(c.range).codePointAt(0),h=Z(t);let d;switch(e.reason.kind){case 0:d=(0,l.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,c.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 l.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 c.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 c.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 c.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 c.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 c.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 c.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),c=e.get(W.GK),d=e.get(B.pG);const u=[];if(0===n.kind)for(const l of n.notAmbiguousInLocales)u.push({label:H.kg("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',l),run:async()=>{ae(d,[l])}});if(u.push({label:function(e){return l.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 c.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,c.Fl)(se),(0,c.Fl)(ne),(0,c.Fl)(re),(0,c.Fl)(oe),(0,c.HW)(K.ID,K,1),f.B2.register(Q)},47210:(e,t,i)=>{"use strict";var s=i(5662),n=i(89403),r=i(31450),o=i(80301),a=i(78209),l=i(59599),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},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=c([h(1,l.X),h(2,o.T)],u),(0,r.HW)(u.ID,u,1)},13864:(e,t,i)=>{"use strict";i.d(t,{P:()=>C,v:()=>b});var s=i(16223),n=i(87289),r=i(62083),o=i(78209),a=i(66261),l=i(47612);const c=(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",c,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,l.Yf)(u),position:s.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}}),m=n.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,l.Yf)(g),position:s.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}}),f=n.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,l.Yf)(a.z5H),position:s.A5.Center},minimap:{color:(0,l.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,l.Yf)(d),position:s.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}});function C(e){return e===r.Kb.Write?p:e===r.Kb.Text?m:v}function b(e){return e?_:f}(0,l.zy)(((e,t)=>{const i=e.getColor(a.QwA);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},79907:(e,t,i)=>{"use strict";var s=i(78209),n=i(11007),r=i(90766),o=i(18447),a=i(64383),l=i(5662),c=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),b=i(54459),E=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},L=function(e,t){return function(i,s){t(i,s,e)}};class R{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 l.jG{constructor(e){super(),this._register(e.documentHighlightProvider.register("*",new R)),this._register(e.multiDocumentHighlightProvider.register("*",new R))}};T=w([L(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 l=0,c=i.length;!a&&l<c;l++){const e=i.getRange(l);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 l=e.ordered(t);return(0,r.$1)(l.map((e=>()=>{const s=o.filter((e=>(0,p.vd)(e))).filter((t=>(0,b.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 l.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,E.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,c.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,E.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 l.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)},38728:(e,t,i)=>{"use strict";i.d(t,{Jk:()=>v,R7:()=>E});var s=i(31450),n=i(15092),r=i(87908),o=i(32799),a=i(97681),l=i(81782),c=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,l.i)(t.getOption(132),t.getOption(131)),n=t.getModel(),r=t.getSelections(),a=r.length>1,h=r.map((e=>{const t=new c.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 c.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 b extends v{_move(e,t,i,s,n){return a.z.moveWordRight(e,t,i,s)}}class E 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,l.i)(t.getOption(132),t.getOption(131)),o=t.getModel(),a=t.getSelections(),c=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:c,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 E{_delete(e,t){const i=a.z.deleteWordLeft(e,t);return i||new h.Q(1,1,1,1)}}class y extends E{_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,l.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 b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),(0,s.E_)(new class extends b{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 b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends b{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 b{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,l.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,l.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,l.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,l.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)},46606:(e,t,i)=>{"use strict";var s=i(31450),n=i(97681),r=i(36677),o=i(60002),a=i(38728),l=i(50091);class c 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)}}l.w.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");l.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 c),(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}})}})},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 l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}class l 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 l.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}(0,r.HW)(a.ID,a,3)},84325:(e,t,i)=>{"use strict";var s,n=i(8597),r=i(47661),o=i(5662),a=i(31450),l=i(62083),c=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(l.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=l.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 l=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,`${l?l.languageId:"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"token type"),(0,n.$)("td.tm-metadata-value",void 0,`${l?this._tokenTypeToString(l.tokenType):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"font style"),(0,n.$)("td.tm-metadata-value",void 0,`${l?this._fontStyleToString(l.fontStyle):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"foreground"),(0,n.$)("td.tm-metadata-value",void 0,`${l?r.Q1.Format.CSS.formatHex(l.foreground):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"background"),(0,n.$)("td.tm-metadata-value",void 0,`${l?r.Q1.Format.CSS.formatHex(l.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=l.dG.getColorMap(),i=c.x.getLanguageId(e),s=c.x.getTokenType(e),n=c.x.getFontStyle(e),r=c.x.getForeground(e),o=c.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)(_)},77047:(e,t,i)=>{"use strict";var s=i(46359),n=i(71597),r=i(51861),o=i(80301),a=i(37882),l=i(73983),c=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),b=i(59599),E=i(63591),S=i(98031),y=i(18801),w=i(90766),L=i(18447),R=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 L.Qi(t);const o=n.token;let a=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(a=a.trim());const l=this._getPicks(a,s,o,i),c=(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,R.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=c(t.picks,!0))})(),(async()=>{e.busy=!0;try{const s=await t.additionalPicks;if(o.isCancellationRequested)return;let n,r,a,l;if(T(t.picks)?(n=t.picks.items,r=t.picks.active):n=t.picks,T(s)?(a=s.items,l=s.active):a=s,a.length>0||!i){let t;if(!r&&!l){const i=e.activeItems[0];i&&-1!==n.indexOf(i)&&(t=i)}c({items:[...n,...a],active:r||l||t})}}finally{o.isCancellationRequested||(e.busy=!1),s=!0}})()])};if(null===l);else if(x(l))await h(l);else if(l instanceof Promise){e.busy=!0;try{const e=await l;if(o.isCancellationRequested)return;x(e)?await h(e):c(e)}finally{o.isCancellationRequested||(e.busy=!1)}}else c(l)};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 l=[];let c=!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)&&(l.push({type:"separator",label:(0,_.kg)("recentlyUsed","recently used")}),c=!0),h&&void 0!==e.tfIdfScore&&(l.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)&&(l.push({type:"separator",label:(0,_.kg)("commonlyUsed","commonly used")}),c=!0,d=!1),!c||void 0!==e.tfIdfScore||this.commandsHistory.peek(e.commandId)||this.options.suggestedCommandIds?.has(e.commandId)||(l.push({type:"separator",label:(0,_.kg)("morecCommands","other commands")}),c=!1),l.push(this.toCommandPick(e,s))}return this.hasAdditionalCommandPicks(e,i)?{picks:l,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})()}:l}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,c.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,E._Y),M(2,S.b),M(3,v.d),M(4,O.k),M(5,b.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,l.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,E._Y),z(1,o.T),z(2,S.b),z(3,v.d),z(4,O.k),z(5,b.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}]})},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 l=()=>{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)};l(),o.add(t.onDidChangeValue((()=>l())));const c=(0,n.jA)(r);if(c){2===c.getOptions().get(68).renderType&&(c.updateOptions({lineNumbers:"on"}),o.add((0,s.s)((()=>c.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 l=i(46359),c=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),l.O.as(c.Fd.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:v.PREFIX,helpEntries:[{description:d.Hw.gotoLineActionLabel,commandId:C.ID}]})},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),l=i(74027),c=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(l.Vn)>=0,o=f(e);let a;const c=e.split(" ");if(c.length>1)for(const l of c){const e=f(l),{pathNormalized:t,normalized:i,normalizedLowercase:s}=v(l);i&&(a||(a=[]),a.push({original:l,originalLowercase:l.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=c.uF?e.replace(/\//g,l.Vn):e.replace(/\\/g,l.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 b,E=i(5662),S=i(36677),y=i(62083),w=i(29999),L=i(12437),R=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 L.o{static{b=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,R.kg)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),E.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):E.jG.None}doProvideWithoutEditorSymbols(e,t,i,s){const n=new E.Cm;return this.provideLabelPick(i,(0,R.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,E.s)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,s,r){const o=e.editor,a=new E.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 l=this.getDocumentSymbols(t,s);let c;const h=async e=>{c?.dispose(!0),i.busy=!1,c=new n.Qi(s),i.busy=!0;try{const n=_(i.value.substr(b.PREFIX.length).trim()),r=await this.doGetSymbolPicks(l,n,void 0,c.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,R.kg)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,R.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 l=0===t.original.indexOf(b.SCOPE_PREFIX),c=l?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,R.kg)("openToSide","Open to the Side"):(0,R.kg)("openToBottom","Open to the Bottom")}]);const f=[];for(let E=0;E<a.length;E++){const w=a[E],L=(0,h.Bq)(w.name),T=`$(${y.gP.toIcon(w.kind).id}) ${L}`,x=T.length-L.length;let k,A,N,D,M=w.containerName;if(i?.extraContainerLabel&&(M=M?`${i.extraContainerLabel} \u2022 ${M}`:i.extraContainerLabel),t.original.length>c){let F=!1;if(d!==t&&([k,A]=u(T,{...t,values:void 0},c,x),"number"===typeof k&&(F=!0)),"number"!==typeof k&&([k,A]=u(T,d,c,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:E,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:L,strikethrough:P,buttons:p})}const _=f.sort(((e,t)=>l?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let v=[];if(l){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,R.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=b=k([A(0,T.ILanguageFeaturesService),A(1,w.gW)],N);const I=(0,R.kg)("property","properties ({0})"),O={5:(0,R.kg)("method","methods ({0})"),11:(0,R.kg)("function","functions ({0})"),8:(0,R.kg)("_constructor","constructors ({0})"),12:(0,R.kg)("variable","variables ({0})"),4:(0,R.kg)("class","classes ({0})"),22:(0,R.kg)("struct","structs ({0})"),23:(0,R.kg)("event","events ({0})"),24:(0,R.kg)("operator","operators ({0})"),10:(0,R.kg)("interface","interfaces ({0})"),2:(0,R.kg)("namespace","namespaces ({0})"),3:(0,R.kg)("package","packages ({0})"),25:(0,R.kg)("typeParameter","type parameters ({0})"),1:(0,R.kg)("modules","modules ({0})"),6:(0,R.kg)("property","properties ({0})"),9:(0,R.kg)("enum","enumerations ({0})"),21:(0,R.kg)("enumMember","enumeration members ({0})"),14:(0,R.kg)("string","strings ({0})"),0:(0,R.kg)("file","files ({0})"),17:(0,R.kg)("array","arrays ({0})"),15:(0,R.kg)("number","numbers ({0})"),16:(0,R.kg)("boolean","booleans ({0})"),18:(0,R.kg)("object","objects ({0})"),19:(0,R.kg)("key","keys ({0})"),7:(0,R.kg)("field","fields ({0})"),13:(0,R.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}]})},6429:(e,t,i)=>{"use strict";var s,n=i(46359),r=i(71597),o=i(51861),a=i(78209),l=i(5662),c=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 l.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,c.b)],g),n.O.as(r.Fd.Quickaccess).registerQuickAccessProvider({ctor:g,prefix:"",helpEntries:[{description:o.oq.helpQuickAccessActionLabel}]})},57377:(e,t,i)=>{"use strict";var s=i(31450),n=i(80301),r=i(23646),o=i(84001),a=i(32848),l=i(63591),c=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,c.Ot),u(4,l._Y),u(5,h.CS),u(6,o.pG)],g),(0,s.HW)(r.X.ID,g,4)},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),l=i(25982);class c{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 c(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),l=new p(i,o,a),c=new m(l);for(let h=0,d=e.length;h<d;h++){const t=e[h];c.insert(t.token,t.fontStyle,r.getId(t.foreground),r.getId(t.background))}return new u(r,c)}(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"}},b={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"}},E={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),L=i(86723),R=i(25689),T=i(61394);class x{getIcon(e){const t=(0,T.HT)();let i=e.defaults;for(;R.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 L.zM.LIGHT;case I:return L.zM.HIGH_CONTRAST_DARK;case O:return L.zM.HIGH_CONTRAST_LIGHT;default:return L.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=l.x.getForeground(s),r=l.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 b;case O:return E}}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,l=`--vscode-icon-${e.id}-font-family`,c=`--vscode-icon-${e.id}-content`;a?(i[a.id]=a.definition,o.push(`${l}: ${(0,s.yt)(a.id)};`,`${c}: '${n.fontCharacter}';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; font-family: ${(0,s.yt)(a.id)}; }`)):(o.push(`${c}: '${n.fontCharacter}'; ${l}: '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,L.Bb)(this._theme.type)){let t;t=(0,L.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}}},22890:(e,t,i)=>{"use strict";var s=i(31450),n=i(24520),r=i(51861),o=i(86723),a=i(10424);class l 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)(l)},24520:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("themeService")},11272:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.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)))}))},89518:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.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,b=w(f,g,p(f)),E=b.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:E,htmlLanguageService:v,handlebarLanguageService:b,razorLanguageService:S,registerHTMLLanguageService:w}},99669:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.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)))}))},24152:(e,t,i)=>{"use strict";i.d(t,{IF:()=>C});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.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),b=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},v);function E(){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:b,getTypeScriptWorker:()=>E().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>E().then((e=>e.getJavaScriptWorker()))},d.languages.onLanguage("typescript",(()=>E().then((e=>e.setupTypeScript(C))))),d.languages.onLanguage("javascript",(()=>E().then((e=>e.setupJavaScript(b)))))},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:()=>c});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?l(e,t):t,i)}function l(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 c(e,t,...i){let s;s="number"===typeof e?l(e,t):t;const n=o(s,i);return{value:n,original:t===s?n:o(t,i)}}},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}}},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)},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"})}}},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})},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),l=i(83619),c=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),b=i(47612),E=i(25689),S=i(86723),y=i(631),w=i(66261),L=i(19070),R=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 l=s.Di.getInstance();N(a,r,l.keyStatus.altKey||(h.uF||h.j9)&&l.keyStatus.shiftKey,o?e=>e===o:e=>"navigation"===e)}function A(e,t,i,s,n,r){let o,a,l,c,h;if(Array.isArray(e))h=e,o=t,a=i,l=s,c=n;else{const d=t;h=e.getActions(d),o=i,a=s,l=n,c=r}N(h,o,!1,"string"===typeof a?e=>e===a:a,l,c)}function N(e,t,i,s=e=>"navigation"===e,n=()=>!1,r=!1){let o,l;Array.isArray(t)?(o=t,l=t):(o=t.primary,l=t.secondary);const c=new Set;for(const[h,d]of e){let e;s(h)?(e=o,e.length>0&&r&&e.push(new a.wv)):(e=l,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&&c.add({group:h,action:t,index:s-1})}}for(const{group:a,action:h,index:d}of c){const e=s(a)?o:l,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,l){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=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new c.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,l.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(E.L.isThemeIcon(n)){const e=E.L.asClassNameArray(n);i.classList.add(...e),this._itemClassDispose.value=(0,c.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,c.qE)((0,c.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,b.Gy),x(6,m.Z),x(7,R.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??(E.L.isThemeIcon(e.item.icon)?E.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&&!E.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,b.Gy)],D);let M=class extends r.EH{constructor(e,t,i,s,n,r,l,c){let h;super(null,e),this._keybindingService=i,this._notificationService=s,this._contextMenuService=n,this._menuService=r,this._instaService=l,this._storageService=c,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const d=t?.persistLastActionId?c.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,L.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)},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),l=i(10350),c=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:c.L.asClassNameArray(i.moreIcon??l.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),b=i(57629),E=i(27195),S=i(60858),y=i(50091),w=i(32848),L=i(47508),R=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 l=t?.telemetrySource;l&&this._store.add(this.actionBar.onDidRun((e=>a.publicLog2("workbenchActionExecuted",{id:e.action.id,from:l}))))}setActions(e,t=[],i){this._sessionDisposables.clear();const r=e.slice(),o=t.slice(),l=[];let c=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 E.Xe||e instanceof E.nI)&&(e.hideActions&&(l.push(e.hideActions.toggle),e.hideActions.toggle.checked&&c++,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)),(l.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 E.Xe&&r.menuKeybinding)o.push(r.menuKeybinding);else if(!(r instanceof E.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(l.length>0){let e=!1;if(1===c&&0===this._options?.hiddenItemStrategy){e=!0;for(let e=0;e<l.length;e++)if(l[e].checked){l[e]=(0,a.ih)({id:r.id,label:r.label,checked:!0,enabled:!1,run(){}});break}}if(!e&&(r instanceof E.Xe||r instanceof E.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,l);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,E.ez),k(3,w.fN),k(4,L.Z),k(5,R.b),k(6,y.d),k(7,T.k)],A);let N=class extends A{constructor(e,t,i,s,n,r,o,a,l){super(e,{resetMenu:t,...i},s,n,r,o,a,l),this._onDidChangeMenuItems=this._store.add(new h.vl),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const c=this._store.add(s.createMenu(t,n,{emitEventsForSubmenuChanges:!0})),d=()=>{const t=[],s=[];(0,b.Ot)(c,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(c.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new v.D7("This toolbar is populated from a menu.")}};N=x([k(3,E.ez),k(4,w.fN),k(5,L.Z),k(6,R.b),k(7,y.d),k(8,T.k)],N)},27195:(e,t,i)=>{"use strict";i.d(t,{D8:()=>_,L:()=>y,Xe:()=>S,ZG:()=>b,ez:()=>v,i1:()=>f,is:()=>m,nI:()=>E,ug:()=>w});var s,n=i(36921),r=i(25689),o=i(41234),a=i(5662),l=i(58925),c=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 b=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 l.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 E 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,l){let c;if(this.hideActions=n,this.menuKeybinding=o,this._commandService=l,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)&&(c=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}c||(c=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,l):void 0,this._options=i,this.class=c&&r.L.asClassName(c)}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,c.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(c.w.getCommand(o.id))throw new Error(`Cannot register two commands with the same id: ${o.id}`);if(t.push(c.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(b.appendMenuItem(a.id,{command:{...o,precondition:null===a.precondition?void 0:o.precondition},...a}));else n&&t.push(b.appendMenuItem(n.id,{command:{...o,precondition:null===n.precondition?void 0:o.precondition},...n}));if(s&&(t.push(b.appendMenuItem(_.CommandPalette,{command:o,when:o.precondition})),t.push(b.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)}}}},60858:(e,t,i)=>{"use strict";i.d(t,{$:()=>v,D:()=>w});var s,n,r=i(90766),o=i(41234),a=i(5662),l=i(27195),c=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,c.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 b{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(l.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(b._fillInKbExprKeys(e.when,this._structureContextKeys),(0,l.is)(e)){if(e.command.precondition&&b._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;b._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&(l.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 E=n=class extends b{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,l.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 l.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 l.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,l.is)(e)?e.command.title:e.title,(0,l.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)}};E=n=f([_(3,c.d),_(4,m.b),_(5,h.fN)],E);let S=class{constructor(e,t,i,s,n,c){this._disposables=new a.Cm,this._menuInfo=new E(e,t,i.emitEventsForSubmenuChanges,s,n,c);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(l.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(c.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,l.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,c.d),_(4,m.b),_(5,h.fN)],S)},54770:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=(0,i(63591).u1)("clipboardService")},50091:(e,t,i)=>{"use strict";i.d(t,{d:()=>l,w:()=>c});var s=i(41234),n=i(42522),r=i(5662),o=i(58925),a=i(631);const l=(0,i(63591).u1)("commandService"),c=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),l=(0,r.s)((()=>{n();const e=this._commands.get(i);e?.isEmpty()&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return c.registerCommand(e,((e,...i)=>e.get(l).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}};c.registerCommand("noop",(()=>{}))},84001:(e,t,i)=>{"use strict";i.d(t,{Mo:()=>c,ad:()=>n,gD:()=>l,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 l=0;l<n.length;l++){const e=n[l];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,l+1).join(".")} is null`);break;default:return void s(`Ignoring ${t} as ${n.slice(0,l+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 l(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 c(e){return e.replace(/[\[\]]/g,"")}},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),l=i(78748),c=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=c.O.as(l.F.JSONContribution);const C="\\[([^\\]]+)\\]",b=new RegExp(C,"g"),E=`^(${C})+$`,S=new RegExp(E);function y(e){const t=[];if(S.test(e)){let i=b.exec(e);for(;i?.length;){const s=i[1].trim();s&&t.push(s),i=b.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 c in a){const e=a[c];t&&L(c,e)?delete a[c]:(e.source=i,e.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,e),S.test(c)?e.scope=void 0:(e.scope=r.z(e.scope)?n:e.scope,e.restricted=r.z(e.restricted)?!!s?.includes(c):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],a[c].policy?.name&&this.policyConfigurations.set(a[c].policy.name,c),!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.add(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c]))}const l=e.allOf;if(l)for(const r of l)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[E]=e,u.patternProperties[E]=e,g.patternProperties[E]=e,p.patternProperties[E]=e,m.patternProperties[E]=e,f.patternProperties[E]=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 L(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")}c.O.add(h.Configuration,w)},32848:(e,t,i)=>{"use strict";i.d(t,{f1:()=>A,M$:()=>w,fN:()=>K,N1:()=>j,jQ:()=>L,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 l=(0,o.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(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(l):(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(c);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"),b=(0,o.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),E=(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?b: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("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let c;try{c=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return w.regex(s,c)}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:E,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 L(e,t){const i=e?e.substituteConstants():void 0,s=t?t.substituteConstants():void 0;return!i&&!s||!(!i||!s)&&i.equals(s)}function R(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=R(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(R);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(R))}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=R(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(R)}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]}},28290:(e,t,i)=>{"use strict";i.d(t,{J7:()=>c,W0:()=>a,aV:()=>l,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")),l=(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"),c=new r.N1(l,!1,(0,n.kg)("inputFocus","Whether keyboard focus is inside an input box"))},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")},59599:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});const s=(0,i(63591).u1)("dialogService")},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}}},97035:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("environmentService")},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={}))},89100:(e,t,i)=>{"use strict";i.d(t,{pG:()=>x,_Q:()=>k,dg:()=>E});var s=i(88443),n=i(8597),r=i(35315),o=i(91581),a=i(17390),l=i(10350),c=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:l.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 c.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new c.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new c.vl),this._onInput=this._register(new c.vl),this._onKeyUp=this._register(new c.vl),this._onPreserveCaseKeyDown=this._register(new c.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||[],l=!!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:l,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},b=function(e,t){return function(i,s){t(i,s,e)}};const E=new f.N1("suggestWidgetVisible",!1,(0,h.kg)("suggestWidgetVisible","Whether suggestion are visible")),S="historyNavigationWidgetFocus",y="historyNavigationForwardsEnabled",w="historyNavigationBackwardsEnabled";let L;const R=[];function T(e,t){if(R.includes(t))throw new Error("Cannot register the same widget multiple times");R.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),L=t},l=()=>{s.set(!1),L===t&&(L=void 0)};return(0,n.X7)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>l()))),i.add((0,v.s)((()=>{R.splice(R.indexOf(t),1),l()}))),{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([b(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([b(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"),E.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{L?.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"),E.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{L?.showNextValue()}})},67220:(e,t,i)=>{"use strict";i.d(t,{TN:()=>c,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},l=function(e,t){return function(i,s){t(i,s,e)}};const c=(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([l(3,r.pG),l(4,c)],h)},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}}},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}},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}},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)}}},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)},98031:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=(0,i(63591).u1)("keybindingService")},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),l=i(58925);class c{constructor(){this._coreKeybindings=new l.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=c.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 c;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)},67841:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("labelService")},36584:(e,t,i)=>{"use strict";i.d(t,{PE:()=>Ce,aG:()=>be,er:()=>ft,YD:()=>Le,zL:()=>gt,Nf:()=>Ne,cH:()=>Oe});var s=i(8597),n=i(25890),r=i(18447),o=i(41234),a=i(5662),l=(i(48215),i(93090));class c{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 c(e,r)));this.list=new l.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,c){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 l.B8(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>m.TemplateId}),[u],c)),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(l.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),b=i(37472),E=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 b.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===E.Yo.Collapsed||e.collapsed===E.Yo.PreserveOrCollapsed||e.collapsed!==E.Yo.Expanded&&e.collapsed!==E.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===E.Yo.PreserveOrCollapsed||e.collapsed===E.Yo.PreserveOrExpanded?t.collapsed:e.collapsed===E.Yo.Collapsed||e.collapsed!==E.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 E.jh(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new E.jh(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new E.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 E.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 L(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),L),collapsible:e.collapsible,collapsed:e.collapsed}}function R(e,t=0){let i;return i=t<e.element.elements.length-1?[R(e,t+1)]:S.f.map(S.f.from(e.children),(e=>R(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 R(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?L:w);return void this._setChildren(null,e,{diffIdentityProvider:s,diffDepth:1/0})}const o=this.nodes.get(e);if(!o)throw new E.jh(this.user,"Unknown compressed tree node");const a=this.model.getNode(o),l=this.model.getParentNodeLocation(o),c=this.model.getNode(l),h=x(T(a),e,t),d=(this.enabled?L: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=c.children.map((e=>e===a?d:e));this._setChildren(c.element,g,{diffIdentityProvider:s,diffDepth:a.depth-c.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?L: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 E.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 E.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 l=0;l<e.length;l++){const s=e[l],n=t.getCompressedTreeNode(s.node.element);if(n.element){if(0!==l&&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 E.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)?E.Yo.PreserveOrCollapsed:E.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 E.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 E.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 E.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 c of e.children)r.set(c.element,c),this.identityProvider&&o.set(c.id,{node:c,collapsed:this.tree.hasElement(c)&&this.tree.isCollapsed(c)});const a=[],l=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===E.Yo.PreserveOrExpanded&&a.push(i),i}const l=this.identityProvider.getId(t).toString(),c=o.get(l);if(c){const e=c.node;return r.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=n,i?c.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&&!c.collapsed&&a.push(e),e}const h=j({element:t,parent:e,id:l,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&s.viewState.focus&&s.viewState.focus.indexOf(l)>-1&&s.focus.push(h),s&&s.viewState.selection&&s.viewState.selection.indexOf(l)>-1&&s.selection.push(h),(s&&s.viewState.expanded&&s.viewState.expanded.indexOf(l)>-1||n&&h.defaultCollapseState===E.Yo.PreserveOrExpanded)&&a.push(h),h}));for(const c of r.values())te(c,(e=>this.nodes.delete(e.element)));for(const c of l)this.nodes.set(c.element,c);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,i){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 E.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 l=!1;const c=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),l=!0),o.has(e)&&-1===c.indexOf(n)&&(c.push(n),h=!0)}e.children.forEach(d)};d(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),h&&this.setFocus(c)}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,b.iZ)(s)?(0,b.Mn)(s.visibility):(0,b.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),le=i(84001),ce=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 be{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 l.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 Ee=new he.N1("listScrollAtBoundary","none"),Se=(he.M$.or(Ee.isEqualTo("top"),Ee.isEqualTo("both")),he.M$.or(Ee.isEqualTo("bottom"),Ee.isEqualTo("both")),new he.N1("listFocus",!0)),ye=new he.N1("treestickyScrollFocused",!1),we=new he.N1("listSupportsMultiselect",!0),Le=he.M$.and(Se,he.M$.not(de.aV),ye.negate()),Re=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=Ee.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,l.tX)(e)}isSelectionRangeChangeEvent(e){return(0,l.mh)(e)}}function nt(e,t){const i=e.get(le.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 l.B8{constructor(e,t,i,s,n,r,o,a,l){const c="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(a.getValue(Ve)),[h,d]=l.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...h,horizontalScrolling:c}),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=Re.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 ct(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,le.pG),ve(8,ge._Y)],rt);let ot=class extends d{constructor(e,t,i,s,n,r,o,l,c){const h="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(l.getValue(Ve)),[d,u]=c.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(l),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(l.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(l.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=l.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ct(this,{configurationService:l,...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,le.pG),ve(8,ge._Y)],ot);let at=class extends _{constructor(e,t,i,s,n,r,o,a,l,c){const h="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:Boolean(l.getValue(Ve)),[d,u]=c.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=Re.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(l),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(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(l.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(l.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=l.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ht(this,{configurationService:l,...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,le.pG),ve(9,ge._Y)],at);class lt 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 ct extends lt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ht extends lt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class dt extends lt{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,l){const{options:c,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(bt,n);super(e,t,i,s,c),this.disposables.add(d),this.internals=new Et(this,n,h,n.overrideStyles,o,a,l),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,le.pG)],gt);let pt=class extends H{constructor(e,t,i,s,n,r,o,a,l){const{options:c,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(bt,n);super(e,t,i,s,c),this.disposables.add(d),this.internals=new Et(this,n,h,n.overrideStyles,o,a,l),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,le.pG)],pt);let mt=class extends oe{constructor(e,t,i,s,n,r,o,a,l,c){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(bt,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new Et(this,r,d,r.overrideStyles,a,l,c),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,le.pG)],mt);let ft=class extends ie{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,s,n,r,o,a,l,c){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(bt,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new Et(this,r,d,r.overrideStyles,a,l,c),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,le.pG)],ft);let _t=class extends re{constructor(e,t,i,s,n,r,o,a,l,c,h){const{options:d,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(bt,o);super(e,t,i,s,n,r,d),this.disposables.add(g),this.internals=new Et(this,o,u,o.overrideStyles,l,c,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 bt(e,t){const i=e.get(le.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,c]=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 l._C.Automatic;if("trigger"===e)return l._C.Trigger;if(!1===n.getContextKeyValue(Fe))return l._C.Trigger;const t=i.getValue(Ge);return"automatic"===t?l._C.Automatic:"trigger"===t?l._C.Trigger:void 0},disposable:c,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,le.pG)],_t);let Et=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=Re.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))},l=new Set;l.add(Pe),l.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(l)&&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)}};Et=_e([ve(4,he.fN),ve(5,Ce),ve(6,le.pG)],Et);me.O.as(ce.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.")}}})},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 l=a.Info;class c extends n.jG{constructor(){super(...arguments),this.level=l,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 c{constructor(e=l,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 c{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))},75147:(e,t,i)=>{"use strict";i.d(t,{DR:()=>l,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 l=(0,a.u1)("markerService")},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{}},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))}))}},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}}},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")},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}})},51467:(e,t,i)=>{"use strict";i.d(t,{C1:()=>o,Fp:()=>a,GK:()=>c,Ym:()=>n,dH:()=>l,kF:()=>r});var s=i(63591);const n={ctrlCmd:!1,alt:!1};var r,o,a,l;!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"}(l||(l={}));new class{constructor(e){this.options=e}};const c=(0,s.u1)("quickInputService")},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}}},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),l=i(90766),c=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 l.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,c.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}}}},90651:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("telemetryService")},19070:(e,t,i)=>{"use strict";i.d(t,{Dk:()=>h,IN:()=>u,RE:()=>p,XS:()=>m,cv:()=>o,ho:()=>c,ir:()=>r,m$:()=>d,mk:()=>l,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)},l={inputActiveOptionBorder:(0,s.GuP)(s.uNK),inputActiveOptionForeground:(0,s.GuP)(s.$$0),inputActiveOptionBackground:(0,s.GuP)(s.c1f)},c=((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:c,toggleStyles:l},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)}},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:()=>ce,vV$:()=>ae,etE:()=>le,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:()=>c,EY1:()=>X,ZEf:()=>Z,Gj6:()=>J,ld8:()=>te,$BZ:()=>ie,GNm:()=>ee,Ztu:()=>I,YtV:()=>C,AN$:()=>L,Rbi:()=>w,f3U:()=>F,Ubg:()=>U,ECk:()=>B,p8Y:()=>H,S5J:()=>W,By2:()=>b,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:()=>R,Stt:()=>x,Hng:()=>T,CgL:()=>E,sIe:()=>y,FiB:()=>S,tAP:()=>l,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:()=>Et,VFX:()=>vt,efJ:()=>Ct,eMz:()=>Mt,p7Y:()=>bt,QI5:()=>Dt,lO1:()=>At,QRv:()=>Nt,CQ3:()=>xt,ijf:()=>kt,uNx:()=>Lt,f4y:()=>Rt,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:()=>Le,yr0:()=>we,Xp1:()=>ye,uMG:()=>Re,yLr:()=>s.yL,fAP:()=>_e,z5H:()=>ve,iwL:()=>ti,NBf:()=>ei,tYX:()=>Ce,bNw:()=>Ee,JPj:()=>be,BTi:()=>v,ELA:()=>Xt,HJZ:()=>Zt,AlL:()=>ri,nH:()=>si,c7i:()=>ni,er1:()=>Jt,Ukx:()=>rt,Ips:()=>ot,jOE:()=>nt,xWN:()=>lt,ZBU:()=>ct,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."))),l=(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.")),c=(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:l,hcLight:l},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",l,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)(c,.6),hcLight:(0,s.JO)(c,.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)(c,.8),hcLight:(0,s.JO)(c,.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:c,hcLight:c},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:c,hcLight:c},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.")),b=(0,s.x1)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:r.Q1.white,hcLight:o},n.kg("editorForeground","Editor default foreground color.")),E=((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:c,hcLight:c},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:c,hcLight:c},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."))),L=(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.")),R=(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",E,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:E,hcLight:E},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:c,hcLight:c},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:c,hcLight:c},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.")),le=(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.")),ce=(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",E,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.")),be=(0,s.x1)("problemsWarningIcon.foreground",T,n.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),Ee=(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),Le=(0,s.x1)("minimap.infoHighlight",{dark:k,light:k,hcDark:A,hcLight:A},n.kg("minimapInfo","Minimap marker color for infos.")),Re=(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:c,hcLight:c},n.kg("inputBoxBorder","Input box border.")),Oe=(0,s.x1)("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:c,hcLight:c},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)(l,.4),light:(0,s.JO)(l,.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:c,hcLight:c},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:c,hcLight:c},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:c,hcLight:c},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:c,hcLight:c},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",c,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.")),lt=(0,s.x1)("radio.inactiveBackground",null,n.kg("radioInactiveBackground","Background color of inactive radio option.")),ct=(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",E,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:c},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.")),bt=(0,s.x1)("list.focusOutline",{dark:l,light:l,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.")),Et=(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.")),Lt=(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.")),Rt=(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:l,hcLight:l},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$)(E,0),dark:(0,s.a)(E,0),hcDark:E,hcLight:E},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:c,hcLight:c},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:c,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",E,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:c,hcLight:c},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:c,hcLight:c},n.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),Xt=(0,s.x1)("quickInput.background",E,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."))},83844:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>h,Fd:()=>g,Gu:()=>d,HP:()=>u,Hz:()=>b,JO:()=>v,a:()=>_,e$:()=>f,oG:()=>E,x1:()=>m,yL:()=>C});var s=i(66782),n=i(90766),r=i(47661),o=i(41234),a=i(78748),l=i(46359),c=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=c.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:c.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 b(e,t,i){return{op:6,if:e,then:t,else:i}}function E(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}l.O.add(g.ColorContribution,p);const y="vscode://schemas/workbench-colors",w=l.O.as(a.F.JSONContribution);w.registerSchema(y,p.getColorSchema());const L=new n.uC((()=>w.notifySchemaChanged(y)),200);p.onDidChangeSchema((()=>{L.isScheduled()||L.schedule()}))},61394:(e,t,i)=>{"use strict";i.d(t,{$_:()=>E,HT:()=>_,pU:()=>f});var s=i(90766),n=i(10350),r=i(18956),o=i(25689),a=i(41234),l=i(631),c=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,l.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,l.Kg)(e.format)&&(0,l.Kg)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:c.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 b=new s.uC((()=>C.notifySchemaChanged(v)),200);m.onDidChange((()=>{b.isScheduled()||b.schedule()}));const E=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")},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={}))},47612:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>d,Gy:()=>l,Pz:()=>h,Yf:()=>c,lR:()=>p,zy:()=>g});var s=i(41234),n=i(5662),r=i(63591),o=i(46359),a=i(86723);const l=(0,r.u1)("themeService");function c(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(){}}},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}}},37227:(e,t,i)=>{"use strict";i.d(t,{A7:()=>l,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 l(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 c={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?c: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}},51465:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("workspaceTrustManagementService")},61850:(e,t,i)=>{"use strict";i.d(t,{IK:()=>h,bC:()=>u,RQ:()=>d,KV:()=>l});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 l(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&&c(t,e.completions)}))}function c(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()}(),c(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}},92727:(e,t,i)=>{"use strict";i.d(t,{EN:()=>s.editor,eo:()=>s.languages,vl:()=>s.Emitter});var s=i(80781)},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)},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()})))})},67796:e=>{"use strict";var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach((function(e){s[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},s)).join("")}catch(n){return!1}}()?Object.assign:function(e,n){for(var r,o,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))i.call(r,c)&&(a[c]=r[c]);if(t){o=t(r);for(var h=0;h<o.length;h++)s.call(r,o[h])&&(a[o[h]]=r[o[h]])}}return a}},67063:(e,t,i)=>{var s=i(59284),n=i(14538),r=i(13260),o=i(41470),a=s.createElement,l=i(52893),c=i(74073),h=i(46556),d=i(53753),u=i(53205),g=i(23909);e.exports=n({propTypes:{data:r.any.isRequired,search:r.oneOfType([r.func,r.bool]),searchOptions:r.shape({debounceTime:r.number}),onClick:r.func,validateQuery:r.func,isExpanded:r.func,filterOptions:r.shape({cacheResults:r.bool,ignoreCase:r.bool}),query:r.string,verboseShowOriginal:r.bool},getDefaultProps:function(){return{data:null,search:c,searchOptions:{debounceTime:0},className:"",id:"json-"+Date.now(),onClick:g,filterOptions:{cacheResults:!0,ignoreCase:!1},validateQuery:function(e){return e.length>=2},isExpanded:function(e,t){return!1},verboseShowOriginal:!1}},getInitialState:function(){return{query:this.props.query||""}},render:function(){var e=this.props,t=this.state,i=""!==t.query&&e.validateQuery(t.query),s=i?t.filterer(t.query):e.data,n=i&&d(s);return a("div",{className:"json-inspector "+e.className},this.renderToolbar(),n?a("div",{className:"json-inspector__not-found"},"Nothing found"):a(l,{data:s,onClick:e.onClick,id:e.id,getOriginal:this.getOriginal,query:i?new RegExp(t.query,e.filterOptions.ignoreCase?"i":""):null,label:"root",root:!0,isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal}))},renderToolbar:function(){var e=this.props.search;if(e)return a("div",{className:"json-inspector__toolbar"},a(e,{onChange:o(this.search,this.props.searchOptions.debounceTime),data:this.props.data,query:this.state.query}))},search:function(e){this.setState({query:e})},componentWillMount:function(){this.createFilterer(this.props.data,this.props.filterOptions)},componentWillReceiveProps:function(e){this.createFilterer(e.data,e.filterOptions),"string"===typeof e.query&&e.query!==this.state.query&&this.setState({query:e.query})},shouldComponentUpdate:function(e,t){return e.query!==this.props.query||t.query!==this.state.query||e.data!==this.props.data||e.onClick!==this.props.onClick},createFilterer:function(e,t){this.setState({filterer:h(e,t)})},getOriginal:function(e){return u(this.props.data,e)}})},46556:(e,t,i)=>{var s=i(40652),n=Object.keys,r=i(63817),o=i(53753);function a(e,t,i){return n(e).reduce((function(n,c){var h,d=e[c];return r(d)?(l(t,c,i)||l(t,d,i))&&(n[c]=d):l(t,c,i)?n[c]=d:(h=a(d,t,i),o(h)||s(n,function(e,t){var i={};return i[e]=t,i}(c,h))),n}),{})}function l(e,t,i){if(t){var s=String(t),n=e;return i.ignoreCase&&(s=s.toLowerCase(),n=n.toLowerCase()),-1!==s.indexOf(n)}}e.exports=function(e,t){t||(t={cacheResults:!0});var i={};return function(s){if(!t.cacheResults)return a(e,s,t);var n;if(!i[s])for(var r=s.length-1;r>0;r-=1)if(n=s.substr(0,r),i[n]){i[s]=a(i[n],s,t);break}return i[s]||(i[s]=a(e,s,t)),i[s]}}},49022:(e,t,i)=>{var s=i(59284),n=i(14538),r=s.createElement;e.exports=n({getDefaultProps:function(){return{string:"",highlight:""}},shouldComponentUpdate:function(e){return e.highlight!==this.props.highlight},render:function(){var e=this.props,t=e.string.search(e.highlight);if(!e.highlight||-1===t)return r("span",null,e.string);var i=e.highlight.source.length,s=e.string.substr(t,i);return r("span",null,e.string.split(e.highlight).map((function(e,t){return r("span",{key:t},t>0?r("span",{className:"json-inspector__hl"},s):null,e)})))}})},53753:e=>{e.exports=function(e){return 0===Object.keys(e).length}},63817:(e,t,i)=>{var s=i(67857);e.exports=function(e){var t=s(e);return"Object"!==t&&"Array"!==t}},52893:(e,t,i)=>{var s=i(59284),n=i(14538),r=i(1445),o=i(68155),a=i(67857),l=i(63817),c=i(49022),h=s.createElement,d=n({getInitialState:function(){return{expanded:this._isInitiallyExpanded(this.props)}},getDefaultProps:function(){return{root:!1,prefix:""}},render:function(){var e="id_"+o(),t=this.props,i={path:this.keypath(),key:t.label.toString(),value:t.data},s=this._onClick.bind(this,i);return h("div",{className:this.getClassName(),id:"leaf-"+this._rootPath()},h("input",{className:"json-inspector__radio",type:"radio",name:t.id,id:e,tabIndex:-1}),h("label",{className:"json-inspector__line",htmlFor:e,onClick:s},h("div",{className:"json-inspector__flatpath"},i.path),h("span",{className:"json-inspector__key"},this.format(i.key),":",this.renderInteractiveLabel(i.key,!0)),this.renderTitle(),this.renderShowOriginalButton()),this.renderChildren())},renderTitle:function(){var e=this.data(),t=a(e);switch(t){case"Array":return h("span",{className:"json-inspector__value json-inspector__value_helper"},"[] "+u(e.length));case"Object":return h("span",{className:"json-inspector__value json-inspector__value_helper"},"{} "+u(Object.keys(e).length));default:return h("span",{className:"json-inspector__value json-inspector__value_"+t.toLowerCase()},this.format(String(e)),this.renderInteractiveLabel(e,!1))}},renderChildren:function(){var e=this.props,t=this._rootPath(),i=this.data();return this.state.expanded&&!l(i)?Object.keys(i).map((function(s){var n=i[s],r=!this.state.original||!!e.verboseShowOriginal&&e.query;return h(d,{data:n,label:s,prefix:t,onClick:e.onClick,id:e.id,query:e.query,getOriginal:r?e.getOriginal:null,key:g(s,n),isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal})}),this):null},renderShowOriginalButton:function(){var e=this.props;return l(e.data)||this.state.original||!e.getOriginal||!e.query||p(this.keypath(),e.query)?null:h("span",{className:"json-inspector__show-original",onClick:this._onShowOriginalClick})},renderInteractiveLabel:function(e,t){return"function"===typeof this.props.interactiveLabel?h(this.props.interactiveLabel,{value:String(e),originalValue:e,isKey:t,keypath:this.keypath()}):null},componentWillReceiveProps:function(e){e.query&&this.setState({expanded:!p(e.label,e.query)}),this.props.query&&!e.query&&this.setState({expanded:this._isInitiallyExpanded(e)})},_rootPath:function(){return this.props.prefix+"."+this.props.label},keypath:function(){return this._rootPath().substr(6)},data:function(){return this.state.original||this.props.data},format:function(e){return h(c,{string:e,highlight:this.props.query})},getClassName:function(){var e="json-inspector__leaf";return this.props.root&&(e+=" json-inspector__leaf_root"),this.state.expanded&&(e+=" json-inspector__leaf_expanded"),l(this.props.data)||(e+=" json-inspector__leaf_composite"),e},toggle:function(){this.setState({expanded:!this.state.expanded})},_onClick:function(e,t){this.toggle(),this.props.onClick(e),t.stopPropagation()},_onShowOriginalClick:function(e){this.setState({original:this.props.getOriginal(this.keypath())}),e.stopPropagation()},_isInitiallyExpanded:function(e){var t=this.keypath();return!!e.root||(e.query?!p(t,e.query)&&"function"===typeof e.getOriginal:e.isExpanded(t,e.data))}});function u(e){return e+(1===e?" item":" items")}function g(e,t){return l(t)?e+":"+r(String(t)):e+"["+a(t)+"]"}function p(e,t){return-1!==e.indexOf(t)}e.exports=d},53205:(e,t,i)=>{var s=i(67857);function n(e){return parseInt(e,10)}e.exports=function e(t,i){var r=i.split("."),o=r.shift();if(!o)return t;var a=s(t);return"Array"===a&&t[n(o)]?e(t[n(o)],r.join(".")):"Object"===a&&t[o]?e(t[o],r.join(".")):void 0}},23909:e=>{e.exports=function(){}},74073:(e,t,i)=>{var s=i(59284),n=i(14538),r=s.createElement,o=i(23909);e.exports=n({getDefaultProps:function(){return{onChange:o}},render:function(){return r("input",{className:"json-inspector__search",type:"search",placeholder:"Search",onChange:this.onChange})},onChange:function(e){this.props.onChange(e.target.value)}})},67857:e=>{e.exports=function(e){return Object.prototype.toString.call(e).slice(8,-1)}},68155:e=>{var t=Math.ceil(10*Math.random());e.exports=function(){return++t}},40652:e=>{"use strict";e.exports=Object.assign||function(e,t){for(var i,s,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),r=1;r<arguments.length;r++){i=arguments[r],s=Object.keys(Object(i));for(var o=0;o<s.length;o++)n[s[o]]=i[s[o]]}return n}},6376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MonacoDiffEditor:()=>c,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 l(e){var t=e.width,i=e.height,o=e.value,l=e.defaultValue,c=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,b=e.modifiedUri,E=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=(0,n.useRef)(null),L=r(t),R=r(i),T=(0,n.useMemo)((function(){return{width:L,height:R}}),[L,R]);return(0,n.useEffect)((function(){E.current&&(g(s),S.current=s.editor.createDiffEditor(E.current,a(a(a({},_?{extraEditorClassName:_}:{}),d),h?{theme:h}:{}),u),function(){var e=null!=o?o:l,t=null===C||void 0===C?void 0:C(s),i=null===b||void 0===b?void 0:b(s),n=t&&s.editor.getModel(t),r=i&&s.editor.getModel(i);n?(n.setValue(v),s.editor.setModelLanguage(n,c)):n=s.editor.createModel(e,c,t),r?(n.setValue(e),s.editor.setModelLanguage(r,c)):r=s.editor.createModel(e,c,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,c),s.editor.setModelLanguage(i,c)}}),[c]),(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:E,style:T,className:"react-monaco-editor-container"})}l.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},l.displayName="MonacoDiffEditor";const c=l;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,l=e.language,c=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,b=(0,n.useRef)(null),E=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=r(t),L=r(i),R=(0,n.useRef)(_);R.current=_;var T=(0,n.useMemo)((function(){return{width:w,height:L}}),[w,L]);return(0,n.useEffect)((function(){var e=null!==o?o:a;if(b.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,l)):n=s.editor.createModel(e,l,i),E.current=s.editor.create(b.current,h(h(h({model:n},v?{extraEditorClassName:v}:{}),t),c?{theme:c}:{}),g),m(E.current,s),S.current=E.current.onDidChangeModelContent((function(e){var t;y.current||null===(t=R.current)||void 0===t||t.call(R,E.current.getValue(),e)}))}}),[]),(0,n.useEffect)((function(){if(E.current){if(o===E.current.getValue())return;var e=E.current.getModel();y.current=!0,E.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}],void 0),E.current.pushUndoStop(),y.current=!1}}),[o]),(0,n.useEffect)((function(){if(E.current){var e=E.current.getModel();s.editor.setModelLanguage(e,l)}}),[l]),(0,n.useEffect)((function(){if(E.current){u.model;var e=d(u,["model"]);E.current.updateOptions(h(h({},v?{extraEditorClassName:v}:{}),e))}}),[v,u]),(0,n.useEffect)((function(){E.current&&E.current.layout()}),[t,i]),(0,n.useEffect)((function(){s.editor.setTheme(c)}),[c]),(0,n.useEffect)((function(){return function(){E.current&&(f(E.current,s),E.current.dispose()),S.current&&S.current.dispose()}}),[]),n.createElement("div",{ref:b,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},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,l=a?void 0:o.document,c="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=l.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=l.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},b=function(e,t,i){var s=e[t];return void 0!==s?s:i},E=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=l.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 L=function(e,t){if(void 0===t&&(t={}),a)return{};var i,s,n,r,_,v,L=e;Array.from&&(L=Array.from(L));var R=C(L[0]).parentNode,T=getComputedStyle?getComputedStyle(R):null,x=T?T.flexDirection:null,k=b(t,"sizes")||L.map((function(){return 100/L.length})),A=b(t,"minSize",100),N=Array.isArray(A)?A:L.map((function(){return A})),I=b(t,"maxSize",1/0),O=Array.isArray(I)?I:L.map((function(){return I})),D=b(t,"expandToMin",!1),M=b(t,"gutterSize",10),P=b(t,"gutterAlign","center"),F=b(t,"snapOffset",30),U=Array.isArray(F)?F:L.map((function(){return F})),H=b(t,"dragInterval",1),B=b(t,"direction",m),W=b(t,"cursor",B===m?"col-resize":"row-resize"),V=b(t,"gutter",S),z=b(t,"elementStyle",y),G=b(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),b(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)}(R);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=E(M,0===r,r===e.length-1,P),l=N[r]+a;return o<l?(i+=l-o,s.push(0),l):(s.push(o-l),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&&b(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="",l.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||b(t,"onDragStart",f)(K()),e.preventDefault(),i.dragging=!0,i.move=$.bind(i),i.stop=Z.bind(i),o[c]("mouseup",i.stop),o[c]("touchend",i.stop),o[c]("touchcancel",i.stop),o[c]("mousemove",i.move),o[c]("touchmove",i.move),s[c]("selectstart",f),s[c]("dragstart",f),n[c]("selectstart",f),n[c]("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,l.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=L.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:R})[g]=E(M,t-1===0,!1,P),s[p]=E(M,!1,t===L.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[c]("mousedown",s[u]),o[c]("touchstart",s[u]),R.insertBefore(o,n.element),s.gutter=o}return j(n.element,n.size,E(M,0===t,t===L.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:R,pairs:ee}};function R(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=R(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=L(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=R(i,["children","minSize","sizes","collapsed"]),a=e.minSize,l=e.sizes,c=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=L(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!==l[t]})),u&&this.split.setSizes(this.props.sizes)}Number.isInteger(r)&&(r!==c||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=R(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},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=[],l=0;l<256;++l)a.push((l+256).toString(16).slice(1));function c(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 c(n)}},57949:(e,t,i)=>{"use strict";i.d(t,{F:()=>B});var s=i(60712),n=i(59284),r=i(56993),o=i.n(r),a=i(53302),l=i(63126),c=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,c.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)(l.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)(l.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)(l.G,{name:(0,s.jsx)("div",{className:v(),children:(0,s.jsx)(_.t,{size:"xs"})}),level:e})}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:"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 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:"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 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:"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 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:"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",{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 k(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 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)("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 N(e){return"status"in e}function I(e,t,i,s=0){const n=e[t];if(n&&(i(n,s,t,e),!n.collapsed))for(const r of n.children)I(e,`${t}/${r}`,i,s+1)}var O;function D(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 M(e={},t){var i,s;switch(t.type){case O.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 O.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 O.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,l=null!==(s=null===(i=e[o])||void 0===i?void 0:i.collapsed)&&void 0!==s?s:!a.startsWith(`${o}/`);n[o]=D(Object.assign(Object.assign({},r),{collapsed:l,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 O.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 O.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 P(e,t){const i=[];return I(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 F(e,t){switch(e){case"async_replication":return(0,s.jsx)(b,{height:16});case"database":return(0,s.jsx)(S,{height:14});case"directory":return t?(0,s.jsx)(L,{height:16}):(0,s.jsx)(R,{height:16});case"index":return(0,s.jsx)(T,{height:16});case"table":case"index_table":return(0,s.jsx)(x,{height:16});case"column_table":return(0,s.jsx)(E,{height:16});case"stream":case"topic":return(0,s.jsx)(k,{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)(A,{height:16});default:return null}}function U({path:e,fetchPath:t,activePath:i,state:r,level:o,dispatch:a,children:c,onActivate:h,getActions:d,onActionsOpenToggle:u,renderAdditionalNodeElements:g,cache:p}){const m=r[e];n.useEffect((()=>{m.collapsed?p||a({type:O.ResetNode,payload:{path:e}}):m.loaded||m.loading||(a({type:O.StartLoading,payload:{path:e}}),t(e).then((t=>{a({type:O.FinishLoading,payload:{path:e,activePath:i,data:t}})})).catch((t=>{a({type:O.ErrorLoading,payload:{path:e,error:t}})})))}),[m.collapsed]);const f=n.useCallback((()=>{h&&h(e)}),[e,h]),_=n.useCallback((()=>{a({type:O.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]),b=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)(l.G,{name:m.name,icon:F(m.type,m.collapsed),collapsed:m.collapsed,active:m.path===i,actions:C,additionalNodeElements:v,hasArrow:m.expandable,onClick:f,onArrowClick:_,onActionsOpenToggle:b,level:o,children:c})}!function(e){e.ToggleCollapsed="toggle-collapsed",e.StartLoading="start-loading",e.FinishLoading="finish-loading",e.ErrorLoading="error-loading",e.ResetNode="reset-node"}(O||(O={}));const H=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 B({rootState:e,fetchPath:t,getActions:i,renderAdditionalNodeElements:r,activePath:a,onActionsOpenToggle:l,onActivePathUpdate:c,cache:h=!0,virtualize:d=!1}){const[u,g]=n.useReducer(M,{[e.path]:D(e)}),p=n.useMemo((()=>P(u,e.path)),[e.path,u]),m=e=>(0,s.jsx)(U,{state:u,path:e.path,activePath:a,fetchPath:t,dispatch:g,onActivate:c,getActions:i,onActionsOpenToggle:l,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 N(t)?H(t):m(t)}}):(0,s.jsx)(n.Fragment,{children:p.map((e=>N(e)?H(e):m(e)))})}},63126:(e,t,i)=>{"use strict";i.d(t,{G:()=>c});var s=i(60712),n=i(59284),r=i(40569),o=i(53302);const a="--ydb-tree-view-level",l=(0,o.o)("ydb-tree-view");function c({children:e,name:t,title:i,icon:o,collapsed:c=!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 b="tree-view_arrow",E="tree-view_children";return c&&(b+=" tree-view_arrow-collapsed",E+=" tree-view_children-collapsed"),(0,s.jsx)("div",{className:l(),style:{[a]:_},children:(0,s.jsxs)("div",{className:"tree-view",children:[(0,s.jsxs)("div",{className:`tree-view_item ${l("item",{active:h})}`,onClick:v,children:[(0,s.jsx)("button",{type:"button",className:`${b} ${l("arrow",{collapsed:c,hidden:!p})}`,disabled:!C,onClick:C}),(0,s.jsxs)("div",{className:l("content"),children:[o&&(0,s.jsx)("div",{className:l("icon"),children:o}),(0,s.jsx)("div",{className:l("text"),title:i,children:t}),m&&m.length>0&&(0,s.jsxs)("div",{className:l("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:`${E} ${l("container",{collapsed:c})}`,children:c?null:e})]})})}},53302:(e,t,i)=>{"use strict";i.d(t,{o:()=>s});const s=(0,i(82435).withNaming)({e:"__",m:"_"})},62469:()=>{},10713:()=>{},48215:()=>{},53396:()=>{},82320:()=>{},91434:()=>{},41614:(e,t,i)=>{"use strict";i.d(t,{parseYqlQuery:()=>fu,kh:()=>mu});var s,n,r,o,a=Object.defineProperty,l=(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 c=l((e=>{const t=e;return void 0!==t.tokenSource&&void 0!==t.channel}),"isToken"),h=class{static{l(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:l((()=>{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{l(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{l(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{l(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{l(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{l(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{l(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{l(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,l=0;for(;a<r&&l<o;){const t=i[a],r=s[l];t.startsBeforeDisjoint(r)?a++:r.startsBeforeDisjoint(t)?l++:t.properlyContains(r)?(n||(n=new e),n.addInterval(t.intersection(r)),l++):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)?l++: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=l((e=>null===e?"null":e),"valueToString"),C=l((e=>Array.isArray(e)?"["+e.map(v).join(", ")+"]":"null"),"arrayToString"),b=l(((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"),E=l(((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=l(((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{l(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 L(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{l(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&&b(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("&&")}},L=class e extends y{static{l(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&&b(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{l(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{l(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 R,T=class e{static{l(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{l(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{l(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{l(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{l(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{l(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{l(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{l(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{l(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{l(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{l(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{l(this,"ErrorNode")}accept(e){return e.visitErrorNode(this)}},H=class e{static{l(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{l(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 c(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{l(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{l(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()&&(E(this.returnStates,t.returnStates)&&b(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=l(((e,t)=>t===k.EMPTY_RETURN_STATE&&null===e?N.instance:new A(e,t)),"createSingletonPredictionContext"),G=l(((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=l(((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=l(((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=l(((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),l=new Array(e.returnStates.length+t.returnStates.length).fill(null);for(;n<e.returnStates.length&&r<t.returnStates.length;){const c=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===c&&null===h||null!==c&&null!==h&&c===h?(l[o]=c,a[o]=t):(l[o]=K(c,h,i,s),a[o]=t),n+=1,r+=1}else e.returnStates[n]<t.returnStates[r]?(l[o]=c,a[o]=e.returnStates[n],n+=1):(l[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++)l[o]=e.parents[h],a[o]=e.returnStates[h],o+=1;else for(let h=r;h<t.returnStates.length;h++)l[o]=t.parents[h],a[o]=t.returnStates[h],o+=1;if(o<l.length){if(1===o){const i=z(l[0]??void 0,a[0]);return null!==s&&s.set(e,t,i),i}l=l.slice(0,o),a=a.slice(0,o)}const c=new V(l,a);return c.equals(e)?(null!==s&&s.set(e,t,e),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> a"),e):c.equals(t)?(null!==s&&s.set(e,t,t),t):(q(l),null!==s&&s.set(e,t,c),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> "+c),c)}),"mergeArrays"),q=l((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"),$=l(((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=l(((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{l(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,l,c){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()&&c)return void n.addOne(r.EOF)}if(t.constructor.stateType===x.RULE_STOP){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&c)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,l,c)}}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,l,c)}finally{a.clear(h.target.ruleIndex)}break}case I.PREDICATE:case I.PRECEDENCE:l?this.doLook(h.target,i,s,n,o,a,l,c):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,l,c);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{l(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{l(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{l(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||!b(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{l(this,"BasicState")}static stateType=x.BASIC},ie=class extends x{static{l(this,"DecisionState")}decision=-1;nonGreedy=!1},se=class extends ie{static{l(this,"BlockStartState")}endState},ne=class extends x{static{l(this,"BlockEndState")}static stateType=x.BLOCK_END;startState},re=class extends x{static{l(this,"LoopEndState")}static stateType=x.LOOP_END;loopBackState},oe=class extends x{static{l(this,"RuleStartState")}static stateType=x.RULE_START;stopState;isLeftRecursiveRule=!1},ae=class extends x{static{l(this,"RuleStopState")}static stateType=x.RULE_STOP},le=class extends ie{static{l(this,"TokensStartState")}static stateType=x.TOKEN_START},ce=class extends ie{static{l(this,"PlusLoopbackState")}static stateType=x.PLUS_LOOP_BACK},he=class extends x{static{l(this,"StarLoopbackState")}static stateType=x.STAR_LOOP_BACK},de=class extends ie{static{l(this,"StarLoopEntryState")}static stateType=x.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},ue=class extends se{static{l(this,"PlusBlockStartState")}static stateType=x.PLUS_BLOCK_START;loopBackState},ge=class extends se{static{l(this,"StarBlockStartState")}static stateType=x.STAR_BLOCK_START},pe=class extends se{static{l(this,"BasicBlockStartState")}static stateType=x.BLOCK_START},me=class extends I{static{l(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{l(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{l(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{l(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{l(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"}},be=class extends I{static{l(this,"WildcardTransition")}get transitionType(){return I.WILDCARD}matches(e,t,i){return e>=t&&e<=i}toString(){return"."}},Ee=class extends I{static{l(this,"AbstractPredicateTransition")}constructor(e){super(e)}},Se=class extends Ee{static{l(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 Ee{static{l(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,Le=1,Re=2,Te=3,xe=4,ke=5,Ae=6,Ne=7,Ie=class e{static{l(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{l(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{l(this,"LexerCustomAction")}ruleIndex;actionIndex;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=Le,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{l(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{l(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{l(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{l(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{l(this,"LexerModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Re,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{l(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,le],[x.RULE_STOP,ae],[x.BLOCK_END,ne],[x.STAR_LOOP_BACK,he],[x.STAR_LOOP_ENTRY,de],[x.PLUS_LOOP_BACK,ce],[x.LOOP_END,re]]);static lexerActionFactoryMapper=new Map([[we,e=>new Oe(e)],[Le,(e,t)=>new De(e,t)],[Re,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 l=0;l<r;l++){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++],l=this.data[this.pos++];r=this.edgeFactory(e,n,s,o,a,l,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 ce)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 l=e.ruleToStartState[t];for(;l.transitions.length>0;){const e=l.removeTransition(l.transitions.length-1);n.addTransition(e)}e.ruleToStartState[t].addTransition(new Ce(n)),a&&r.addTransition(new Ce(a));const c=new te;e.addState(c),c.addTransition(new me(r,e.ruleToTokenType[t])),n.addTransition(new Ce(c))}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 l=e.states[i];switch(t){case I.EPSILON:return new Ce(l);case I.RANGE:return new _e(l,0!==o?r.EOF:s,n);case I.RULE:return new fe(e.states[s],n,o,l);case I.PREDICATE:return new Se(l,s,n,0!==o);case I.PRECEDENCE:return new ye(l,s);case I.ATOM:return new me(l,0!==o?r.EOF:s);case I.ACTION:return new ve(l,s,n,0!==o);case I.SET:return new O(l,a[s]);case I.NOT_SET:return new D(l,a[s]);case I.WILDCARD:return new be(l);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{l(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:l((()=>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{l(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 Le:{const t=e.ruleIndex,i=e.actionIndex;this.data.push(t),this.data.push(i);break}case Re:{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,l=0,c=0;switch(o){case I.RULE:n=t.followState.stateNumber,a=t.target.stateNumber,l=t.ruleIndex,c=t.precedence;break;case I.PRECEDENCE:a=t.precedence;break;case I.PREDICATE:{const e=t;a=e.ruleIndex,l=e.predIndex,c=e.isCtxDependent?1:0;break}case I.RANGE:a=t.start,l=t.stop,a===r.EOF&&(a=0,c=1);break;case I.ATOM:a=t.labelValue,a===r.EOF&&(a=0,c=1);break;case I.ACTION:{const e=t;a=e.ruleIndex,l=e.actionIndex,c=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(l),this.data.push(c)}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{l(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{l(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{l(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{l(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{l(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{l(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{l(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{l(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{l(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{l(this,"CommonTokenFactory")}static DEFAULT=new e;copyText=!1;constructor(e){this.copyText=e??!1}create(e,t,i,s,n,r,o,a){const l=H.fromSource(e,t,s,n,r);return l.line=o,l.column=a,i?l.text=i:this.copyText&&null!==e[1]&&(l.text=e[1].getTextFromRange(n,r)),l}},Xe=class e extends Error{static{l(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{l(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{l(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{l(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{l(this,"LexerDFASerializer")}constructor(e){super(e,f.EMPTY_VOCABULARY)}getEdgeLabel=l((e=>"'"+String.fromCharCode(e)+"'"),"getEdgeLabel")},it=class{static{l(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=l((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=l(((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{l(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{l(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{l(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{l(this,"OrderedATNConfigSet")}constructor(){super(),this.configLookup=new rt}},at=class e extends ze{static{l(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 l=this.getReachableTarget(e,n);if(l){let e=a.lexerActionExecutor;e&&(e=e.fixOffsetBeforeMatch(t.index-this.startIndex));const c=n===r.EOF,h=je.createWithExecutor(a,l,e);this.closure(t,h,s,i,!0,c)&&(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 l=i.context.getParent(e),c=this.atn.states[i.context.getReturnState(e)];a=je.createWithConfig(c,i,l),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=l(((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}},lt=class{static{l(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}},ct=class extends Xe{static{l(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{l(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{l(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{l(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{l(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 l=i,c=s.LA(1);for(;;){let i=this.getExistingTargetState(l,c);if(i||(i=this.computeTargetState(t,l,c)),i===ze.ERROR){const e=this.noViableAlt(s,o,l.configs,n);if(s.seek(n),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l.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 l=!0,c=this.computeStartState(t.atnStartState,o,l);return this.reportAttemptingFullContext(t,r,i.configs,n,s.index),a=this.execATNWithFullContext(t,i,c,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)}l=i,c!==r.EOF&&(s.consume(),c=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 l,c=!1,h=s;n.seek(o);let d=n.LA(1),u=-1;for(;;){if(l=this.computeReachSet(h,d,true),null===l){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(l);if(e.debug&&console.log("LL altSubSets="+t+", predict="+ut.getUniqueAlt(t)+", resolvesToJustOneViableAlt="+ut.resolvesToJustOneViableAlt(t)),l.uniqueAlt=e.getUniqueAlt(l),l.uniqueAlt!==Z.INVALID_ALT_NUMBER){u=l.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)){c=!0,u=ut.getSingleViableAlt(t);break}h=l,d!==r.EOF&&(n.consume(),d=n.LA(1))}return l.uniqueAlt!==Z.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,u,l,o,n.index),u):(this.reportAmbiguity(t,i,o,n.index,c,l.getAlts(),l),u)}computeReachSet(t,i,s){e.debug&&console.log("in computeReachSet, starting closure: "+t);const n=new ee(s);let o=null;for(const l of t)if(e.debug&&console.log("testing "+this.getTokenName(i)+" at "+l),l.state instanceof ae)(s||i===r.EOF)&&(null===o&&(o=[]),o.push(l));else for(const t of l.state.transitions){const s=this.getReachableTarget(t,i);if(null!==s){const t=T.createWithConfig(s,l);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 l=0;l<t.context.length;l++){if(t.context.getReturnState(l)===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 c=this.atn.states[t.context.getReturnState(l)],h=t.context.getParent(l),d=T.createWithContext(c,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 l=t.state;l.epsilonOnlyTransitions||i.add(t,this.mergeCache);for(let c=0;c<l.transitions.length;c++){if(0===c&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const h=l.transitions[c],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 ct(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{l(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{l(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}};(R||(R={})).toString=l((e=>`(${e.pred}, ${e.alt})`),"toString");var ft,_t=class extends Error{static{l(this,"ParseCancellationException")}constructor(e){super(),this.cause=e}},vt=(class{static{l(this,"InterpreterDataReader")}static parseInterpreterData(e){const t=[],i=[],s=[],n=[],r=[],o=e.split("\n");let a=0,l=o[a++];if("token literal names:"!==l)throw new Error("Unexpected data entry");for(;;){if(l=o[a++],0===l.length)break;n.push("null"===l?null:l)}if(l=o[a++],"token symbolic names:"!==l)throw new Error("Unexpected data entry");for(;;){if(l=o[a++],0===l.length)break;r.push("null"===l?null:l)}if(l=o[a++],"rule names:"!==l)throw new Error("Unexpected data entry");for(;;){if(l=o[a++],0===l.length)break;t.push(l)}if(l=o[a++],"channel names:"===l){for(;;){if(l=o[a++],0===l.length)break;i.push(l)}if(l=o[a++],"mode names:"!==l)throw new Error("Unexpected data entry");for(;;){if(l=o[a++],0===l.length)break;s.push(l)}}if(l=o[a++],"atn:"!==l)throw new Error("Unexpected data entry");l=o[a++];const c=l.split(",");let h;const d=[];for(let u=0;u<c.length;++u){const e=c[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{l(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{l(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=l((e=>new Ct(e)),"fromString");var Ct=class{static{l(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}},bt=l((e=>void 0!==e.setText),"isWritableToken"),Et=class{static{l(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(bt(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 Et{static{l(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{l(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{l(this,"XPathLexerErrorListener")}syntaxError(e,t,i,s,n,r){}},Lt=class{static{l(this,"XPathElement")}invert;nodeName;constructor(e){this.nodeName=e,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},Rt=class extends Lt{static{l(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 Lt{static{l(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 Lt{static{l(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 Lt{static{l(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 Lt{static{l(this,"XPathWildcardAnywhereElement")}constructor(){super(It.WILDCARD)}evaluate(e){return this.invert?[]:B.descendants(e)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Nt=class extends Lt{static{l(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{l(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(l){if(l instanceof Ze){const i="Invalid tokens or characters at index "+t.column+" in path '"+e+"' -- "+l.message;throw new RangeError(i)}throw l}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 l=this.getXPathElement(t,i);l.invert=o,n.push(l),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 Rt(i,n):new Tt(i,n)}}},Ot=class{static{l(this,"Chunk")}},Dt=class{static{l(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{l(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{l(this,"InputMismatchException")}constructor(e){super({message:"",recognizer:e,input:e.inputStream,ctx:e.context}),this.offendingToken=e.getCurrentToken()}},Ft=class extends Xe{static{l(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=l(((e,t)=>null!==t?t:"failed predicate: {"+e+"}?"),"formatMessage"),Ht=class{static{l(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 ct?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{l(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{l(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{l(this,"InterpreterRuleContext")}#l;constructor(e,t,i){super(t,i),this.#l=e}get ruleIndex(){return this.#l}},zt=class{static{l(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{l(this,"Parser")}printer=null;buildParseTrees=!0;errorHandler=new Ht;context=null;precedenceStack=[];parseListeners=null;syntaxErrors=0;matchedEOF=!1;tracer=null;bypassAltsAtnCache=null;#c;constructor(e){super(),this.precedenceStack.push(0),this.syntaxErrors=0,this.#c=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.#c}set inputStream(e){this.tokenStream=e}get tokenStream(){return this.#c}set tokenStream(e){this.reset(!1),this.#c=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 lt(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{l(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{l(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{l(this,"CannotInvokeStartRuleError")}constructor(e){super(),this.cause=e}},qt=class{static{l(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{l(this,"StartRuleDoesNotConsumeFullPatternError")}},Qt=class extends Ot{static{l(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{l(this,"TextChunk")}text;constructor(e){super(),this.text=e}toString(){return"'"+this.text+"'"}},Zt=class extends H{static{l(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{l(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(l){throw l instanceof _t?l.cause:l instanceof Xe?l:l instanceof Error?new Yt(l):l}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,l=t;const c=t.indexOf(":");if(c>=0&&(i=t.substring(0,c),l=t.substring(c+1,t.length)),s.push(new Qt(i,l)),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{l(this,"DiagnosticErrorListener")}exactOnly;constructor(e){super(),this.exactOnly=e??!0}reportAmbiguity=l(((e,t,i,s,n,r,o)=>{if(this.exactOnly&&!n)return;const a=this.getDecisionDescription(e,t),l=this.getConflictingAlts(r,o),c=e.tokenStream?.getTextFromInterval(m.of(i,s)),h=`reportAmbiguity d=${a}: ambigAlts=${l}, input='${c}'`;e.notifyErrorListeners(h,null,null)}),"reportAmbiguity");reportAttemptingFullContext=l(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),l=`reportAttemptingFullContext d=${o}, input='${a}'`;e.notifyErrorListeners(l,null,null)}),"reportAttemptingFullContext");reportContextSensitivity=l(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),l=`reportContextSensitivity d=${o}, input='${a}'`;e.notifyErrorListeners(l,null,null)}),"reportContextSensitivity");getDecisionDescription=l(((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=l(((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{l(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{l(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{l(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 l=[],c=this.reduceToSingleOperationPerIndex(n);let h=o;for(;h<=a&&h<this.tokens.size;){const e=c.get(h);c.delete(h);const t=this.tokens.get(h);null==e?(t.type!==r.EOF&&l.push(String(t.text)),h++):h=e.execute(l)}if(a===this.tokens.size-1)for(const e of c.values())e&&e.index>=this.tokens.size-1&&l.push(String(e.text));return l.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{l(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{l(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{l(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{l(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{l(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),bt(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")}}),li=class e extends oi{static{ri(this,"ScopedSymbol")}#C=[];#b=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.#b.clear()}addSymbol(e){e.removeFromParent();const t=this.symbolTable,i=this.#b.get(e.name);if(t&&t.options.allowDuplicateSymbols)this.#b.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.#b.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.#b.get(e.name);void 0!==i&&(1===i?this.#b.delete(e.name):this.#b.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}},ci=(class extends li{static{ri(this,"BlockSymbol")}},class extends oi{static{ri(this,"TypedSymbol")}type;constructor(e,t){super(e),this.type=t}}),hi=class extends ci{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 li{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 li{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 li{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 ci{static{ri(this,"LiteralSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},class extends li{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 l=new Set;let c=e.followSetsByATN.get(this.parser.constructor.name);c||(c=new Map,e.followSetsByATN.set(this.parser.constructor.name,c));let h=c.get(t.stateNumber);if(!h){const e=this.atn.ruleToStopState[t.ruleIndex];h=this.determineFollowSets(t,e),c.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||l.add(i),s.pop(),l}{const e=this.tokens[i].type;if(h.isExhaustive&&!h.combined.contains(e))return s.pop(),l}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){l.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,l),l}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 l of i.transitions){let t="";const i=l.label?l.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[l.target.constructor.stateType];a+=`\n${r}\t(${t}) [${l.target.stateNumber} ${s}] in ${this.ruleNames[l.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>")}},bi=class extends li{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 li)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 li)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}},Ei=(Object.create,Object.defineProperty),Si=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty,(e,t)=>Ei(e,"name",{value:t,configurable:!0})),yi=/[\w]$/,wi=/\r\n|\n|\r/g;function Li(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 Ri(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:l,endColumn:c,endLine:h}=Li(o,i);if(h>t.line||l===t.line&&c>n)return s?r:r>0&&l===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(Li,"getTokenPosition"),Si(Ri,"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=Li(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 l=Di(t,i,e),{tokenStream:c}=l,h=new Fi(s);l.removeErrorListeners(),l.addErrorListener(h),a(l);let d=Wi(l,c,o,r);return d.length?{statementPositions:d,strategy:"autocomplete"}:{statementPositions:Bi(c,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 l=e.get(a),c=l.type===i,h=t.includes(l.type);if(n||!h)if(n||(n=!0,s=l.start),c&&s===l.start)n=!1;else{if(c||a===r){let e=l.text?.length||0,t={startIndex:s,endIndex:l.start+e};o.push(t)}c&&(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,l,c){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=Ri(d,l,i);if(void 0===p)throw new Error(`Could not find cursor token index for line: ${l.line}, column: ${l.column}`);let m=[],{tokens:f,rules:_}=g.collectCandidates(p,c);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,l,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,l,...c]=s.split("|");if(o.length>0||c.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===l)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 ci{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 ci{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,l=ss(e,i,r.tokenIndex,i.SELECT),c=l?{start:l.start,end:r.cursorIndex}:void 0;return{start:s.start,end:r.cursorIndex,type:"from",joinTableQueryPosition:a,selectTableQueryPosition:c}}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,l){let c=Ri(r,o,s.SPACE,!0);if(!c)throw new Error(`Could not find actualCursorTokenIndex at Ln ${o.line}, Col ${o.column}`);let h={},d=ts(r,c,s);if(d){let s=n(Di(e,t,a.slice(d.start,d.end)),d.type);if(i.visit(s),l&&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.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.PERCENT=22}static{this.SEMICOLON=23}static{this.DOT=24}static{this.COMMA=25}static{this.LPAREN=26}static{this.RPAREN=27}static{this.QUESTION=28}static{this.COLON=29}static{this.COMMAT=30}static{this.DOUBLE_COMMAT=31}static{this.DOLLAR=32}static{this.LBRACE_CURLY=33}static{this.RBRACE_CURLY=34}static{this.CARET=35}static{this.NAMESPACE=36}static{this.ARROW=37}static{this.RBRACE_SQUARE=38}static{this.LBRACE_SQUARE=39}static{this.ABORT=40}static{this.ACTION=41}static{this.ADD=42}static{this.AFTER=43}static{this.ALL=44}static{this.ALTER=45}static{this.ANALYZE=46}static{this.AND=47}static{this.ANSI=48}static{this.ANY=49}static{this.ARRAY=50}static{this.AS=51}static{this.ASC=52}static{this.ASSUME=53}static{this.ASYMMETRIC=54}static{this.ASYNC=55}static{this.AT=56}static{this.ATTACH=57}static{this.ATTRIBUTES=58}static{this.AUTOINCREMENT=59}static{this.AUTOMAP=60}static{this.BACKUP=61}static{this.COLLECTION=62}static{this.BEFORE=63}static{this.BEGIN=64}static{this.BERNOULLI=65}static{this.BETWEEN=66}static{this.BITCAST=67}static{this.BY=68}static{this.CALLABLE=69}static{this.CASCADE=70}static{this.CASE=71}static{this.CAST=72}static{this.CHANGEFEED=73}static{this.CHECK=74}static{this.CLASSIFIER=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=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.MANAGE=185}static{this.MATCH=186}static{this.MATCHES=187}static{this.MATCH_RECOGNIZE=188}static{this.MEASURES=189}static{this.MICROSECONDS=190}static{this.MILLISECONDS=191}static{this.MODIFY=192}static{this.NANOSECONDS=193}static{this.NATURAL=194}static{this.NEXT=195}static{this.NO=196}static{this.NOT=197}static{this.NOTNULL=198}static{this.NULL=199}static{this.NULLS=200}static{this.OBJECT=201}static{this.OF=202}static{this.OFFSET=203}static{this.OMIT=204}static{this.ON=205}static{this.ONE=206}static{this.ONLY=207}static{this.OPTION=208}static{this.OPTIONAL=209}static{this.OR=210}static{this.ORDER=211}static{this.OTHERS=212}static{this.OUTER=213}static{this.OVER=214}static{this.PARALLEL=215}static{this.PARTITION=216}static{this.PASSING=217}static{this.PASSWORD=218}static{this.PAST=219}static{this.PATTERN=220}static{this.PER=221}static{this.PERMUTE=222}static{this.PLAN=223}static{this.POOL=224}static{this.PRAGMA=225}static{this.PRECEDING=226}static{this.PRESORT=227}static{this.PRIMARY=228}static{this.PRIVILEGES=229}static{this.PROCESS=230}static{this.QUEUE=231}static{this.RAISE=232}static{this.RANGE=233}static{this.REDUCE=234}static{this.REFERENCES=235}static{this.REGEXP=236}static{this.REINDEX=237}static{this.RELEASE=238}static{this.REMOVE=239}static{this.RENAME=240}static{this.REPEATABLE=241}static{this.REPLACE=242}static{this.REPLICATION=243}static{this.RESET=244}static{this.RESOURCE=245}static{this.RESPECT=246}static{this.RESTORE=247}static{this.RESTRICT=248}static{this.RESULT=249}static{this.RETURN=250}static{this.RETURNING=251}static{this.REVERT=252}static{this.REVOKE=253}static{this.RIGHT=254}static{this.RLIKE=255}static{this.ROLLBACK=256}static{this.ROLLUP=257}static{this.ROW=258}static{this.ROWS=259}static{this.SAMPLE=260}static{this.SAVEPOINT=261}static{this.SCHEMA=262}static{this.SECONDS=263}static{this.SEEK=264}static{this.SELECT=265}static{this.SEMI=266}static{this.SET=267}static{this.SETS=268}static{this.SHOW=269}static{this.TSKIP=270}static{this.SOURCE=271}static{this.STREAM=272}static{this.STRUCT=273}static{this.SUBQUERY=274}static{this.SUBSET=275}static{this.SYMBOLS=276}static{this.SYMMETRIC=277}static{this.SYNC=278}static{this.SYSTEM=279}static{this.TABLE=280}static{this.TABLES=281}static{this.TABLESAMPLE=282}static{this.TABLESTORE=283}static{this.TAGGED=284}static{this.TEMP=285}static{this.TEMPORARY=286}static{this.THEN=287}static{this.TIES=288}static{this.TO=289}static{this.TOPIC=290}static{this.TRANSACTION=291}static{this.TRIGGER=292}static{this.TRUE=293}static{this.TUPLE=294}static{this.TYPE=295}static{this.UNBOUNDED=296}static{this.UNCONDITIONAL=297}static{this.UNION=298}static{this.UNIQUE=299}static{this.UNKNOWN=300}static{this.UNMATCHED=301}static{this.UPDATE=302}static{this.UPSERT=303}static{this.USE=304}static{this.USER=305}static{this.USING=306}static{this.VACUUM=307}static{this.VALUES=308}static{this.VARIANT=309}static{this.VIEW=310}static{this.VIRTUAL=311}static{this.WHEN=312}static{this.WHERE=313}static{this.WINDOW=314}static{this.WITH=315}static{this.WITHOUT=316}static{this.WRAPPER=317}static{this.XOR=318}static{this.STRING_VALUE=319}static{this.ID_PLAIN=320}static{this.ID_QUOTED=321}static{this.DIGITS=322}static{this.INTEGER_VALUE=323}static{this.REAL=324}static{this.BLOB=325}static{this.TQ=326}static{this.TU=327}static{this.TE=328}static{this.TR=329}static{this.TY=330}static{this.WS=331}static{this.COMMENT=332}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","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","DOUBLE_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","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","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","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","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","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","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","TQ","TU","TE","TR","TY","WS","COMMENT"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["QUERY","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","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","BACKSLASH","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","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","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","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","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","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","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","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","TQ","TU","TE","TR","TY","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,332,3149,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,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,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,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,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,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,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,81,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,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,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,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,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,89,1,90,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,189,1,189,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,191,1,191,1,192,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,194,1,194,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,196,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,197,1,198,1,198,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,200,1,200,1,200,1,201,1,201,1,201,1,201,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,203,1,203,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,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,207,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,209,1,209,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,213,1,214,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,216,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,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,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,220,1,220,1,220,1,220,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,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,223,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,229,1,229,1,230,1,230,1,230,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,1,232,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,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,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,242,1,242,1,242,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,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,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,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,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,253,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,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,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,257,1,258,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,261,1,261,1,261,1,261,1,261,1,261,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,263,1,264,1,264,1,264,1,264,1,264,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,265,1,266,1,266,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,267,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,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,272,1,272,1,272,1,272,1,272,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,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,277,1,277,1,277,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,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,280,1,280,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,283,1,283,1,283,1,283,1,283,1,283,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,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,289,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,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,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,296,1,296,1,296,1,296,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,300,1,300,1,300,1,300,1,300,1,300,1,300,1,301,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,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,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,306,1,306,1,306,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,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,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,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,312,1,312,1,312,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,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,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,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,323,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,325,1,325,1,325,1,325,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,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,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,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,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,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,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,343,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,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,348,1,348,1,348,1,348,3,348,2928,8,348,1,349,1,349,1,349,1,349,3,349,2934,8,349,1,350,1,350,5,350,2938,8,350,10,350,12,350,2941,9,350,1,350,1,350,1,351,1,351,5,351,2947,8,351,10,351,12,351,2950,9,351,1,351,1,351,1,352,1,352,5,352,2956,8,352,10,352,12,352,2959,9,352,1,352,1,352,4,352,2963,8,352,11,352,12,352,2964,1,352,3,352,2968,8,352,1,353,1,353,1,353,3,353,2973,8,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,3,353,2983,8,353,3,353,2985,8,353,1,354,1,354,1,354,5,354,2990,8,354,10,354,12,354,2993,9,354,1,355,1,355,1,355,1,355,1,355,3,355,3e3,8,355,1,356,1,356,5,356,3004,8,356,10,356,12,356,3007,9,356,1,356,1,356,1,357,1,357,1,358,1,358,1,359,1,359,1,359,4,359,3018,8,359,11,359,12,359,3019,1,360,1,360,1,360,4,360,3025,8,360,11,360,12,360,3026,1,361,1,361,1,361,4,361,3032,8,361,11,361,12,361,3033,1,362,4,362,3037,8,362,11,362,12,362,3038,1,363,1,363,1,363,1,363,3,363,3045,8,363,1,364,1,364,1,364,3,364,3050,8,364,1,364,1,364,1,364,1,364,1,364,1,364,3,364,3058,8,364,1,365,1,365,1,365,3,365,3063,8,365,1,365,1,365,1,366,1,366,1,366,5,366,3070,8,366,10,366,12,366,3073,9,366,1,366,3,366,3076,8,366,1,366,1,366,1,366,3,366,3081,8,366,1,366,1,366,1,366,1,366,1,366,1,366,3,366,3089,8,366,3,366,3091,8,366,1,367,1,367,1,367,4,367,3096,8,367,11,367,12,367,3097,1,367,1,367,1,368,1,368,1,369,1,369,1,370,1,370,1,371,1,371,1,372,1,372,1,373,1,373,1,373,1,373,5,373,3116,8,373,10,373,12,373,3119,9,373,1,373,1,373,1,373,1,374,1,374,1,374,1,374,5,374,3128,8,374,10,374,12,374,3131,9,374,1,374,1,374,3,374,3135,8,374,1,374,3,374,3138,8,374,1,375,1,375,1,375,1,375,1,376,1,376,3,376,3146,8,376,1,376,1,376,2,2957,3117,0,377,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,38,77,39,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,0,139,40,141,41,143,42,145,43,147,44,149,45,151,46,153,47,155,48,157,49,159,50,161,51,163,52,165,53,167,54,169,55,171,56,173,57,175,58,177,59,179,60,181,61,183,62,185,63,187,64,189,65,191,66,193,67,195,68,197,69,199,70,201,71,203,72,205,73,207,74,209,75,211,76,213,77,215,78,217,79,219,80,221,81,223,82,225,83,227,84,229,85,231,86,233,87,235,88,237,89,239,90,241,91,243,92,245,93,247,94,249,95,251,96,253,97,255,98,257,99,259,100,261,101,263,102,265,103,267,104,269,105,271,106,273,107,275,108,277,109,279,110,281,111,283,112,285,113,287,114,289,115,291,116,293,117,295,118,297,119,299,120,301,121,303,122,305,123,307,124,309,125,311,126,313,127,315,128,317,129,319,130,321,131,323,132,325,133,327,134,329,135,331,136,333,137,335,138,337,139,339,140,341,141,343,142,345,143,347,144,349,145,351,146,353,147,355,148,357,149,359,150,361,151,363,152,365,153,367,154,369,155,371,156,373,157,375,158,377,159,379,160,381,161,383,162,385,163,387,164,389,165,391,166,393,167,395,168,397,169,399,170,401,171,403,172,405,173,407,174,409,175,411,176,413,177,415,178,417,179,419,180,421,181,423,182,425,183,427,184,429,185,431,186,433,187,435,188,437,189,439,190,441,191,443,192,445,193,447,194,449,195,451,196,453,197,455,198,457,199,459,200,461,201,463,202,465,203,467,204,469,205,471,206,473,207,475,208,477,209,479,210,481,211,483,212,485,213,487,214,489,215,491,216,493,217,495,218,497,219,499,220,501,221,503,222,505,223,507,224,509,225,511,226,513,227,515,228,517,229,519,230,521,231,523,232,525,233,527,234,529,235,531,236,533,237,535,238,537,239,539,240,541,241,543,242,545,243,547,244,549,245,551,246,553,247,555,248,557,249,559,250,561,251,563,252,565,253,567,254,569,255,571,256,573,257,575,258,577,259,579,260,581,261,583,262,585,263,587,264,589,265,591,266,593,267,595,268,597,269,599,270,601,271,603,272,605,273,607,274,609,275,611,276,613,277,615,278,617,279,619,280,621,281,623,282,625,283,627,284,629,285,631,286,633,287,635,288,637,289,639,290,641,291,643,292,645,293,647,294,649,295,651,296,653,297,655,298,657,299,659,300,661,301,663,302,665,303,667,304,669,305,671,306,673,307,675,308,677,309,679,310,681,311,683,312,685,313,687,314,689,315,691,316,693,317,695,318,697,0,699,0,701,0,703,0,705,0,707,319,709,320,711,0,713,321,715,0,717,0,719,0,721,0,723,0,725,0,727,322,729,323,731,0,733,324,735,325,737,326,739,327,741,328,743,329,745,330,747,0,749,0,751,331,753,332,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,3155,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,75,1,0,0,0,0,77,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,707,1,0,0,0,0,709,1,0,0,0,0,713,1,0,0,0,0,727,1,0,0,0,0,729,1,0,0,0,0,733,1,0,0,0,0,735,1,0,0,0,0,737,1,0,0,0,0,739,1,0,0,0,0,741,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,751,1,0,0,0,0,753,1,0,0,0,1,755,1,0,0,0,3,761,1,0,0,0,5,763,1,0,0,0,7,766,1,0,0,0,9,769,1,0,0,0,11,772,1,0,0,0,13,774,1,0,0,0,15,777,1,0,0,0,17,779,1,0,0,0,19,782,1,0,0,0,21,785,1,0,0,0,23,789,1,0,0,0,25,791,1,0,0,0,27,793,1,0,0,0,29,796,1,0,0,0,31,799,1,0,0,0,33,802,1,0,0,0,35,804,1,0,0,0,37,806,1,0,0,0,39,808,1,0,0,0,41,810,1,0,0,0,43,812,1,0,0,0,45,814,1,0,0,0,47,816,1,0,0,0,49,818,1,0,0,0,51,820,1,0,0,0,53,822,1,0,0,0,55,824,1,0,0,0,57,826,1,0,0,0,59,828,1,0,0,0,61,830,1,0,0,0,63,833,1,0,0,0,65,835,1,0,0,0,67,837,1,0,0,0,69,839,1,0,0,0,71,841,1,0,0,0,73,844,1,0,0,0,75,847,1,0,0,0,77,849,1,0,0,0,79,851,1,0,0,0,81,853,1,0,0,0,83,855,1,0,0,0,85,857,1,0,0,0,87,859,1,0,0,0,89,861,1,0,0,0,91,863,1,0,0,0,93,865,1,0,0,0,95,867,1,0,0,0,97,869,1,0,0,0,99,871,1,0,0,0,101,873,1,0,0,0,103,875,1,0,0,0,105,877,1,0,0,0,107,879,1,0,0,0,109,881,1,0,0,0,111,883,1,0,0,0,113,885,1,0,0,0,115,887,1,0,0,0,117,889,1,0,0,0,119,891,1,0,0,0,121,893,1,0,0,0,123,895,1,0,0,0,125,897,1,0,0,0,127,899,1,0,0,0,129,901,1,0,0,0,131,903,1,0,0,0,133,905,1,0,0,0,135,907,1,0,0,0,137,909,1,0,0,0,139,911,1,0,0,0,141,917,1,0,0,0,143,924,1,0,0,0,145,928,1,0,0,0,147,934,1,0,0,0,149,938,1,0,0,0,151,944,1,0,0,0,153,952,1,0,0,0,155,956,1,0,0,0,157,961,1,0,0,0,159,965,1,0,0,0,161,971,1,0,0,0,163,974,1,0,0,0,165,978,1,0,0,0,167,985,1,0,0,0,169,996,1,0,0,0,171,1002,1,0,0,0,173,1005,1,0,0,0,175,1012,1,0,0,0,177,1023,1,0,0,0,179,1037,1,0,0,0,181,1045,1,0,0,0,183,1052,1,0,0,0,185,1063,1,0,0,0,187,1070,1,0,0,0,189,1076,1,0,0,0,191,1086,1,0,0,0,193,1094,1,0,0,0,195,1102,1,0,0,0,197,1105,1,0,0,0,199,1114,1,0,0,0,201,1122,1,0,0,0,203,1127,1,0,0,0,205,1132,1,0,0,0,207,1143,1,0,0,0,209,1149,1,0,0,0,211,1160,1,0,0,0,213,1168,1,0,0,0,215,1175,1,0,0,0,217,1183,1,0,0,0,219,1190,1,0,0,0,221,1198,1,0,0,0,223,1210,1,0,0,0,225,1219,1,0,0,0,227,1227,1,0,0,0,229,1238,1,0,0,0,231,1247,1,0,0,0,233,1253,1,0,0,0,235,1260,1,0,0,0,237,1266,1,0,0,0,239,1271,1,0,0,0,241,1279,1,0,0,0,243,1292,1,0,0,0,245,1305,1,0,0,0,247,1323,1,0,0,0,249,1328,1,0,0,0,251,1337,1,0,0,0,253,1345,1,0,0,0,255,1353,1,0,0,0,257,1361,1,0,0,0,259,1372,1,0,0,0,261,1381,1,0,0,0,263,1388,1,0,0,0,265,1395,1,0,0,0,267,1400,1,0,0,0,269,1409,1,0,0,0,271,1416,1,0,0,0,273,1421,1,0,0,0,275,1431,1,0,0,0,277,1439,1,0,0,0,279,1447,1,0,0,0,281,1456,1,0,0,0,283,1459,1,0,0,0,285,1464,1,0,0,0,287,1469,1,0,0,0,289,1474,1,0,0,0,291,1480,1,0,0,0,293,1493,1,0,0,0,295,1503,1,0,0,0,297,1507,1,0,0,0,299,1512,1,0,0,0,301,1518,1,0,0,0,303,1524,1,0,0,0,305,1531,1,0,0,0,307,1540,1,0,0,0,309,1547,1,0,0,0,311,1555,1,0,0,0,313,1565,1,0,0,0,315,1575,1,0,0,0,317,1582,1,0,0,0,319,1590,1,0,0,0,321,1597,1,0,0,0,323,1606,1,0,0,0,325,1611,1,0,0,0,327,1617,1,0,0,0,329,1624,1,0,0,0,331,1631,1,0,0,0,333,1637,1,0,0,0,335,1645,1,0,0,0,337,1650,1,0,0,0,339,1660,1,0,0,0,341,1664,1,0,0,0,343,1672,1,0,0,0,345,1677,1,0,0,0,347,1682,1,0,0,0,349,1691,1,0,0,0,351,1696,1,0,0,0,353,1703,1,0,0,0,355,1709,1,0,0,0,357,1715,1,0,0,0,359,1724,1,0,0,0,361,1731,1,0,0,0,363,1736,1,0,0,0,365,1743,1,0,0,0,367,1747,1,0,0,0,369,1750,1,0,0,0,371,1757,1,0,0,0,373,1763,1,0,0,0,375,1773,1,0,0,0,377,1780,1,0,0,0,379,1783,1,0,0,0,381,1795,1,0,0,0,383,1801,1,0,0,0,385,1809,1,0,0,0,387,1818,1,0,0,0,389,1826,1,0,0,0,391,1836,1,0,0,0,393,1842,1,0,0,0,395,1849,1,0,0,0,397,1857,1,0,0,0,399,1867,1,0,0,0,401,1872,1,0,0,0,403,1875,1,0,0,0,405,1882,1,0,0,0,407,1887,1,0,0,0,409,1899,1,0,0,0,411,1910,1,0,0,0,413,1921,1,0,0,0,415,1925,1,0,0,0,417,1930,1,0,0,0,419,1935,1,0,0,0,421,1942,1,0,0,0,423,1947,1,0,0,0,425,1953,1,0,0,0,427,1958,1,0,0,0,429,1964,1,0,0,0,431,1971,1,0,0,0,433,1977,1,0,0,0,435,1985,1,0,0,0,437,2001,1,0,0,0,439,2010,1,0,0,0,441,2023,1,0,0,0,443,2036,1,0,0,0,445,2043,1,0,0,0,447,2055,1,0,0,0,449,2063,1,0,0,0,451,2068,1,0,0,0,453,2071,1,0,0,0,455,2075,1,0,0,0,457,2083,1,0,0,0,459,2088,1,0,0,0,461,2094,1,0,0,0,463,2101,1,0,0,0,465,2104,1,0,0,0,467,2111,1,0,0,0,469,2116,1,0,0,0,471,2119,1,0,0,0,473,2123,1,0,0,0,475,2128,1,0,0,0,477,2135,1,0,0,0,479,2144,1,0,0,0,481,2147,1,0,0,0,483,2153,1,0,0,0,485,2160,1,0,0,0,487,2166,1,0,0,0,489,2171,1,0,0,0,491,2180,1,0,0,0,493,2190,1,0,0,0,495,2198,1,0,0,0,497,2207,1,0,0,0,499,2212,1,0,0,0,501,2220,1,0,0,0,503,2224,1,0,0,0,505,2232,1,0,0,0,507,2237,1,0,0,0,509,2242,1,0,0,0,511,2249,1,0,0,0,513,2259,1,0,0,0,515,2267,1,0,0,0,517,2275,1,0,0,0,519,2286,1,0,0,0,521,2294,1,0,0,0,523,2300,1,0,0,0,525,2306,1,0,0,0,527,2312,1,0,0,0,529,2319,1,0,0,0,531,2330,1,0,0,0,533,2337,1,0,0,0,535,2345,1,0,0,0,537,2353,1,0,0,0,539,2360,1,0,0,0,541,2367,1,0,0,0,543,2378,1,0,0,0,545,2386,1,0,0,0,547,2398,1,0,0,0,549,2404,1,0,0,0,551,2413,1,0,0,0,553,2421,1,0,0,0,555,2429,1,0,0,0,557,2438,1,0,0,0,559,2445,1,0,0,0,561,2452,1,0,0,0,563,2462,1,0,0,0,565,2469,1,0,0,0,567,2476,1,0,0,0,569,2482,1,0,0,0,571,2488,1,0,0,0,573,2497,1,0,0,0,575,2504,1,0,0,0,577,2508,1,0,0,0,579,2513,1,0,0,0,581,2520,1,0,0,0,583,2530,1,0,0,0,585,2537,1,0,0,0,587,2545,1,0,0,0,589,2550,1,0,0,0,591,2557,1,0,0,0,593,2562,1,0,0,0,595,2566,1,0,0,0,597,2571,1,0,0,0,599,2576,1,0,0,0,601,2581,1,0,0,0,603,2588,1,0,0,0,605,2595,1,0,0,0,607,2602,1,0,0,0,609,2611,1,0,0,0,611,2618,1,0,0,0,613,2626,1,0,0,0,615,2636,1,0,0,0,617,2641,1,0,0,0,619,2648,1,0,0,0,621,2654,1,0,0,0,623,2661,1,0,0,0,625,2673,1,0,0,0,627,2684,1,0,0,0,629,2691,1,0,0,0,631,2696,1,0,0,0,633,2706,1,0,0,0,635,2711,1,0,0,0,637,2716,1,0,0,0,639,2719,1,0,0,0,641,2725,1,0,0,0,643,2737,1,0,0,0,645,2745,1,0,0,0,647,2750,1,0,0,0,649,2756,1,0,0,0,651,2761,1,0,0,0,653,2771,1,0,0,0,655,2785,1,0,0,0,657,2791,1,0,0,0,659,2798,1,0,0,0,661,2806,1,0,0,0,663,2816,1,0,0,0,665,2823,1,0,0,0,667,2830,1,0,0,0,669,2834,1,0,0,0,671,2839,1,0,0,0,673,2845,1,0,0,0,675,2852,1,0,0,0,677,2859,1,0,0,0,679,2867,1,0,0,0,681,2872,1,0,0,0,683,2880,1,0,0,0,685,2885,1,0,0,0,687,2891,1,0,0,0,689,2898,1,0,0,0,691,2903,1,0,0,0,693,2911,1,0,0,0,695,2919,1,0,0,0,697,2927,1,0,0,0,699,2933,1,0,0,0,701,2935,1,0,0,0,703,2944,1,0,0,0,705,2962,1,0,0,0,707,2972,1,0,0,0,709,2986,1,0,0,0,711,2999,1,0,0,0,713,3001,1,0,0,0,715,3010,1,0,0,0,717,3012,1,0,0,0,719,3014,1,0,0,0,721,3021,1,0,0,0,723,3028,1,0,0,0,725,3036,1,0,0,0,727,3044,1,0,0,0,729,3046,1,0,0,0,731,3059,1,0,0,0,733,3080,1,0,0,0,735,3092,1,0,0,0,737,3101,1,0,0,0,739,3103,1,0,0,0,741,3105,1,0,0,0,743,3107,1,0,0,0,745,3109,1,0,0,0,747,3111,1,0,0,0,749,3123,1,0,0,0,751,3139,1,0,0,0,753,3145,1,0,0,0,755,756,3,119,59,0,756,757,3,127,63,0,757,758,3,95,47,0,758,759,3,121,60,0,759,760,3,135,67,0,760,2,1,0,0,0,761,762,5,61,0,0,762,4,1,0,0,0,763,764,5,61,0,0,764,765,5,61,0,0,765,6,1,0,0,0,766,767,5,33,0,0,767,768,5,61,0,0,768,8,1,0,0,0,769,770,5,60,0,0,770,771,5,62,0,0,771,10,1,0,0,0,772,773,5,60,0,0,773,12,1,0,0,0,774,775,5,60,0,0,775,776,5,61,0,0,776,14,1,0,0,0,777,778,5,62,0,0,778,16,1,0,0,0,779,780,5,62,0,0,780,781,5,61,0,0,781,18,1,0,0,0,782,783,5,60,0,0,783,784,5,60,0,0,784,20,1,0,0,0,785,786,5,124,0,0,786,787,5,60,0,0,787,788,5,60,0,0,788,22,1,0,0,0,789,790,5,38,0,0,790,24,1,0,0,0,791,792,5,124,0,0,792,26,1,0,0,0,793,794,5,124,0,0,794,795,5,124,0,0,795,28,1,0,0,0,796,797,5,60,0,0,797,798,5,124,0,0,798,30,1,0,0,0,799,800,5,124,0,0,800,801,5,62,0,0,801,32,1,0,0,0,802,803,5,43,0,0,803,34,1,0,0,0,804,805,5,45,0,0,805,36,1,0,0,0,806,807,5,126,0,0,807,38,1,0,0,0,808,809,5,42,0,0,809,40,1,0,0,0,810,811,5,47,0,0,811,42,1,0,0,0,812,813,5,37,0,0,813,44,1,0,0,0,814,815,5,59,0,0,815,46,1,0,0,0,816,817,5,46,0,0,817,48,1,0,0,0,818,819,5,44,0,0,819,50,1,0,0,0,820,821,5,40,0,0,821,52,1,0,0,0,822,823,5,41,0,0,823,54,1,0,0,0,824,825,5,63,0,0,825,56,1,0,0,0,826,827,5,58,0,0,827,58,1,0,0,0,828,829,5,64,0,0,829,60,1,0,0,0,830,831,5,64,0,0,831,832,5,64,0,0,832,62,1,0,0,0,833,834,5,36,0,0,834,64,1,0,0,0,835,836,5,123,0,0,836,66,1,0,0,0,837,838,5,125,0,0,838,68,1,0,0,0,839,840,5,94,0,0,840,70,1,0,0,0,841,842,5,58,0,0,842,843,5,58,0,0,843,72,1,0,0,0,844,845,5,45,0,0,845,846,5,62,0,0,846,74,1,0,0,0,847,848,5,93,0,0,848,76,1,0,0,0,849,850,5,91,0,0,850,78,1,0,0,0,851,852,5,92,0,0,852,80,1,0,0,0,853,854,5,34,0,0,854,82,1,0,0,0,855,856,5,39,0,0,856,84,1,0,0,0,857,858,5,96,0,0,858,86,1,0,0,0,859,860,7,0,0,0,860,88,1,0,0,0,861,862,7,1,0,0,862,90,1,0,0,0,863,864,7,2,0,0,864,92,1,0,0,0,865,866,7,3,0,0,866,94,1,0,0,0,867,868,7,4,0,0,868,96,1,0,0,0,869,870,7,5,0,0,870,98,1,0,0,0,871,872,7,6,0,0,872,100,1,0,0,0,873,874,7,7,0,0,874,102,1,0,0,0,875,876,7,8,0,0,876,104,1,0,0,0,877,878,7,9,0,0,878,106,1,0,0,0,879,880,7,10,0,0,880,108,1,0,0,0,881,882,7,11,0,0,882,110,1,0,0,0,883,884,7,12,0,0,884,112,1,0,0,0,885,886,7,13,0,0,886,114,1,0,0,0,887,888,7,14,0,0,888,116,1,0,0,0,889,890,7,15,0,0,890,118,1,0,0,0,891,892,7,16,0,0,892,120,1,0,0,0,893,894,7,17,0,0,894,122,1,0,0,0,895,896,7,18,0,0,896,124,1,0,0,0,897,898,7,19,0,0,898,126,1,0,0,0,899,900,7,20,0,0,900,128,1,0,0,0,901,902,7,21,0,0,902,130,1,0,0,0,903,904,7,22,0,0,904,132,1,0,0,0,905,906,7,23,0,0,906,134,1,0,0,0,907,908,7,24,0,0,908,136,1,0,0,0,909,910,7,25,0,0,910,138,1,0,0,0,911,912,3,87,43,0,912,913,3,89,44,0,913,914,3,115,57,0,914,915,3,121,60,0,915,916,3,125,62,0,916,140,1,0,0,0,917,918,3,87,43,0,918,919,3,91,45,0,919,920,3,125,62,0,920,921,3,103,51,0,921,922,3,115,57,0,922,923,3,113,56,0,923,142,1,0,0,0,924,925,3,87,43,0,925,926,3,93,46,0,926,927,3,93,46,0,927,144,1,0,0,0,928,929,3,87,43,0,929,930,3,97,48,0,930,931,3,125,62,0,931,932,3,95,47,0,932,933,3,121,60,0,933,146,1,0,0,0,934,935,3,87,43,0,935,936,3,109,54,0,936,937,3,109,54,0,937,148,1,0,0,0,938,939,3,87,43,0,939,940,3,109,54,0,940,941,3,125,62,0,941,942,3,95,47,0,942,943,3,121,60,0,943,150,1,0,0,0,944,945,3,87,43,0,945,946,3,113,56,0,946,947,3,87,43,0,947,948,3,109,54,0,948,949,3,135,67,0,949,950,3,137,68,0,950,951,3,95,47,0,951,152,1,0,0,0,952,953,3,87,43,0,953,954,3,113,56,0,954,955,3,93,46,0,955,154,1,0,0,0,956,957,3,87,43,0,957,958,3,113,56,0,958,959,3,123,61,0,959,960,3,103,51,0,960,156,1,0,0,0,961,962,3,87,43,0,962,963,3,113,56,0,963,964,3,135,67,0,964,158,1,0,0,0,965,966,3,87,43,0,966,967,3,121,60,0,967,968,3,121,60,0,968,969,3,87,43,0,969,970,3,135,67,0,970,160,1,0,0,0,971,972,3,87,43,0,972,973,3,123,61,0,973,162,1,0,0,0,974,975,3,87,43,0,975,976,3,123,61,0,976,977,3,91,45,0,977,164,1,0,0,0,978,979,3,87,43,0,979,980,3,123,61,0,980,981,3,123,61,0,981,982,3,127,63,0,982,983,3,111,55,0,983,984,3,95,47,0,984,166,1,0,0,0,985,986,3,87,43,0,986,987,3,123,61,0,987,988,3,135,67,0,988,989,3,111,55,0,989,990,3,111,55,0,990,991,3,95,47,0,991,992,3,125,62,0,992,993,3,121,60,0,993,994,3,103,51,0,994,995,3,91,45,0,995,168,1,0,0,0,996,997,3,87,43,0,997,998,3,123,61,0,998,999,3,135,67,0,999,1e3,3,113,56,0,1e3,1001,3,91,45,0,1001,170,1,0,0,0,1002,1003,3,87,43,0,1003,1004,3,125,62,0,1004,172,1,0,0,0,1005,1006,3,87,43,0,1006,1007,3,125,62,0,1007,1008,3,125,62,0,1008,1009,3,87,43,0,1009,1010,3,91,45,0,1010,1011,3,101,50,0,1011,174,1,0,0,0,1012,1013,3,87,43,0,1013,1014,3,125,62,0,1014,1015,3,125,62,0,1015,1016,3,121,60,0,1016,1017,3,103,51,0,1017,1018,3,89,44,0,1018,1019,3,127,63,0,1019,1020,3,125,62,0,1020,1021,3,95,47,0,1021,1022,3,123,61,0,1022,176,1,0,0,0,1023,1024,3,87,43,0,1024,1025,3,127,63,0,1025,1026,3,125,62,0,1026,1027,3,115,57,0,1027,1028,3,103,51,0,1028,1029,3,113,56,0,1029,1030,3,91,45,0,1030,1031,3,121,60,0,1031,1032,3,95,47,0,1032,1033,3,111,55,0,1033,1034,3,95,47,0,1034,1035,3,113,56,0,1035,1036,3,125,62,0,1036,178,1,0,0,0,1037,1038,3,87,43,0,1038,1039,3,127,63,0,1039,1040,3,125,62,0,1040,1041,3,115,57,0,1041,1042,3,111,55,0,1042,1043,3,87,43,0,1043,1044,3,117,58,0,1044,180,1,0,0,0,1045,1046,3,89,44,0,1046,1047,3,87,43,0,1047,1048,3,91,45,0,1048,1049,3,107,53,0,1049,1050,3,127,63,0,1050,1051,3,117,58,0,1051,182,1,0,0,0,1052,1053,3,91,45,0,1053,1054,3,115,57,0,1054,1055,3,109,54,0,1055,1056,3,109,54,0,1056,1057,3,95,47,0,1057,1058,3,91,45,0,1058,1059,3,125,62,0,1059,1060,3,103,51,0,1060,1061,3,115,57,0,1061,1062,3,113,56,0,1062,184,1,0,0,0,1063,1064,3,89,44,0,1064,1065,3,95,47,0,1065,1066,3,97,48,0,1066,1067,3,115,57,0,1067,1068,3,121,60,0,1068,1069,3,95,47,0,1069,186,1,0,0,0,1070,1071,3,89,44,0,1071,1072,3,95,47,0,1072,1073,3,99,49,0,1073,1074,3,103,51,0,1074,1075,3,113,56,0,1075,188,1,0,0,0,1076,1077,3,89,44,0,1077,1078,3,95,47,0,1078,1079,3,121,60,0,1079,1080,3,113,56,0,1080,1081,3,115,57,0,1081,1082,3,127,63,0,1082,1083,3,109,54,0,1083,1084,3,109,54,0,1084,1085,3,103,51,0,1085,190,1,0,0,0,1086,1087,3,89,44,0,1087,1088,3,95,47,0,1088,1089,3,125,62,0,1089,1090,3,131,65,0,1090,1091,3,95,47,0,1091,1092,3,95,47,0,1092,1093,3,113,56,0,1093,192,1,0,0,0,1094,1095,3,89,44,0,1095,1096,3,103,51,0,1096,1097,3,125,62,0,1097,1098,3,91,45,0,1098,1099,3,87,43,0,1099,1100,3,123,61,0,1100,1101,3,125,62,0,1101,194,1,0,0,0,1102,1103,3,89,44,0,1103,1104,3,135,67,0,1104,196,1,0,0,0,1105,1106,3,91,45,0,1106,1107,3,87,43,0,1107,1108,3,109,54,0,1108,1109,3,109,54,0,1109,1110,3,87,43,0,1110,1111,3,89,44,0,1111,1112,3,109,54,0,1112,1113,3,95,47,0,1113,198,1,0,0,0,1114,1115,3,91,45,0,1115,1116,3,87,43,0,1116,1117,3,123,61,0,1117,1118,3,91,45,0,1118,1119,3,87,43,0,1119,1120,3,93,46,0,1120,1121,3,95,47,0,1121,200,1,0,0,0,1122,1123,3,91,45,0,1123,1124,3,87,43,0,1124,1125,3,123,61,0,1125,1126,3,95,47,0,1126,202,1,0,0,0,1127,1128,3,91,45,0,1128,1129,3,87,43,0,1129,1130,3,123,61,0,1130,1131,3,125,62,0,1131,204,1,0,0,0,1132,1133,3,91,45,0,1133,1134,3,101,50,0,1134,1135,3,87,43,0,1135,1136,3,113,56,0,1136,1137,3,99,49,0,1137,1138,3,95,47,0,1138,1139,3,97,48,0,1139,1140,3,95,47,0,1140,1141,3,95,47,0,1141,1142,3,93,46,0,1142,206,1,0,0,0,1143,1144,3,91,45,0,1144,1145,3,101,50,0,1145,1146,3,95,47,0,1146,1147,3,91,45,0,1147,1148,3,107,53,0,1148,208,1,0,0,0,1149,1150,3,91,45,0,1150,1151,3,109,54,0,1151,1152,3,87,43,0,1152,1153,3,123,61,0,1153,1154,3,123,61,0,1154,1155,3,103,51,0,1155,1156,3,97,48,0,1156,1157,3,103,51,0,1157,1158,3,95,47,0,1158,1159,3,121,60,0,1159,210,1,0,0,0,1160,1161,3,91,45,0,1161,1162,3,115,57,0,1162,1163,3,109,54,0,1163,1164,3,109,54,0,1164,1165,3,87,43,0,1165,1166,3,125,62,0,1166,1167,3,95,47,0,1167,212,1,0,0,0,1168,1169,3,91,45,0,1169,1170,3,115,57,0,1170,1171,3,109,54,0,1171,1172,3,127,63,0,1172,1173,3,111,55,0,1173,1174,3,113,56,0,1174,214,1,0,0,0,1175,1176,3,91,45,0,1176,1177,3,115,57,0,1177,1178,3,109,54,0,1178,1179,3,127,63,0,1179,1180,3,111,55,0,1180,1181,3,113,56,0,1181,1182,3,123,61,0,1182,216,1,0,0,0,1183,1184,3,91,45,0,1184,1185,3,115,57,0,1185,1186,3,111,55,0,1186,1187,3,111,55,0,1187,1188,3,103,51,0,1188,1189,3,125,62,0,1189,218,1,0,0,0,1190,1191,3,91,45,0,1191,1192,3,115,57,0,1192,1193,3,111,55,0,1193,1194,3,117,58,0,1194,1195,3,87,43,0,1195,1196,3,91,45,0,1196,1197,3,125,62,0,1197,220,1,0,0,0,1198,1199,3,91,45,0,1199,1200,3,115,57,0,1200,1201,3,113,56,0,1201,1202,3,93,46,0,1202,1203,3,103,51,0,1203,1204,3,125,62,0,1204,1205,3,103,51,0,1205,1206,3,115,57,0,1206,1207,3,113,56,0,1207,1208,3,87,43,0,1208,1209,3,109,54,0,1209,222,1,0,0,0,1210,1211,3,91,45,0,1211,1212,3,115,57,0,1212,1213,3,113,56,0,1213,1214,3,97,48,0,1214,1215,3,109,54,0,1215,1216,3,103,51,0,1216,1217,3,91,45,0,1217,1218,3,125,62,0,1218,224,1,0,0,0,1219,1220,3,91,45,0,1220,1221,3,115,57,0,1221,1222,3,113,56,0,1222,1223,3,113,56,0,1223,1224,3,95,47,0,1224,1225,3,91,45,0,1225,1226,3,125,62,0,1226,226,1,0,0,0,1227,1228,3,91,45,0,1228,1229,3,115,57,0,1229,1230,3,113,56,0,1230,1231,3,123,61,0,1231,1232,3,125,62,0,1232,1233,3,121,60,0,1233,1234,3,87,43,0,1234,1235,3,103,51,0,1235,1236,3,113,56,0,1236,1237,3,125,62,0,1237,228,1,0,0,0,1238,1239,3,91,45,0,1239,1240,3,115,57,0,1240,1241,3,113,56,0,1241,1242,3,123,61,0,1242,1243,3,127,63,0,1243,1244,3,111,55,0,1244,1245,3,95,47,0,1245,1246,3,121,60,0,1246,230,1,0,0,0,1247,1248,3,91,45,0,1248,1249,3,115,57,0,1249,1250,3,129,64,0,1250,1251,3,95,47,0,1251,1252,3,121,60,0,1252,232,1,0,0,0,1253,1254,3,91,45,0,1254,1255,3,121,60,0,1255,1256,3,95,47,0,1256,1257,3,87,43,0,1257,1258,3,125,62,0,1258,1259,3,95,47,0,1259,234,1,0,0,0,1260,1261,3,91,45,0,1261,1262,3,121,60,0,1262,1263,3,115,57,0,1263,1264,3,123,61,0,1264,1265,3,123,61,0,1265,236,1,0,0,0,1266,1267,3,91,45,0,1267,1268,3,127,63,0,1268,1269,3,89,44,0,1269,1270,3,95,47,0,1270,238,1,0,0,0,1271,1272,3,91,45,0,1272,1273,3,127,63,0,1273,1274,3,121,60,0,1274,1275,3,121,60,0,1275,1276,3,95,47,0,1276,1277,3,113,56,0,1277,1278,3,125,62,0,1278,240,1,0,0,0,1279,1280,3,91,45,0,1280,1281,3,127,63,0,1281,1282,3,121,60,0,1282,1283,3,121,60,0,1283,1284,3,95,47,0,1284,1285,3,113,56,0,1285,1286,3,125,62,0,1286,1287,5,95,0,0,1287,1288,3,93,46,0,1288,1289,3,87,43,0,1289,1290,3,125,62,0,1290,1291,3,95,47,0,1291,242,1,0,0,0,1292,1293,3,91,45,0,1293,1294,3,127,63,0,1294,1295,3,121,60,0,1295,1296,3,121,60,0,1296,1297,3,95,47,0,1297,1298,3,113,56,0,1298,1299,3,125,62,0,1299,1300,5,95,0,0,1300,1301,3,125,62,0,1301,1302,3,103,51,0,1302,1303,3,111,55,0,1303,1304,3,95,47,0,1304,244,1,0,0,0,1305,1306,3,91,45,0,1306,1307,3,127,63,0,1307,1308,3,121,60,0,1308,1309,3,121,60,0,1309,1310,3,95,47,0,1310,1311,3,113,56,0,1311,1312,3,125,62,0,1312,1313,5,95,0,0,1313,1314,3,125,62,0,1314,1315,3,103,51,0,1315,1316,3,111,55,0,1316,1317,3,95,47,0,1317,1318,3,123,61,0,1318,1319,3,125,62,0,1319,1320,3,87,43,0,1320,1321,3,111,55,0,1321,1322,3,117,58,0,1322,246,1,0,0,0,1323,1324,3,93,46,0,1324,1325,3,87,43,0,1325,1326,3,125,62,0,1326,1327,3,87,43,0,1327,248,1,0,0,0,1328,1329,3,93,46,0,1329,1330,3,87,43,0,1330,1331,3,125,62,0,1331,1332,3,87,43,0,1332,1333,3,89,44,0,1333,1334,3,87,43,0,1334,1335,3,123,61,0,1335,1336,3,95,47,0,1336,250,1,0,0,0,1337,1338,3,93,46,0,1338,1339,3,95,47,0,1339,1340,3,91,45,0,1340,1341,3,103,51,0,1341,1342,3,111,55,0,1342,1343,3,87,43,0,1343,1344,3,109,54,0,1344,252,1,0,0,0,1345,1346,3,93,46,0,1346,1347,3,95,47,0,1347,1348,3,91,45,0,1348,1349,3,109,54,0,1349,1350,3,87,43,0,1350,1351,3,121,60,0,1351,1352,3,95,47,0,1352,254,1,0,0,0,1353,1354,3,93,46,0,1354,1355,3,95,47,0,1355,1356,3,97,48,0,1356,1357,3,87,43,0,1357,1358,3,127,63,0,1358,1359,3,109,54,0,1359,1360,3,125,62,0,1360,256,1,0,0,0,1361,1362,3,93,46,0,1362,1363,3,95,47,0,1363,1364,3,97,48,0,1364,1365,3,95,47,0,1365,1366,3,121,60,0,1366,1367,3,121,60,0,1367,1368,3,87,43,0,1368,1369,3,89,44,0,1369,1370,3,109,54,0,1370,1371,3,95,47,0,1371,258,1,0,0,0,1372,1373,3,93,46,0,1373,1374,3,95,47,0,1374,1375,3,97,48,0,1375,1376,3,95,47,0,1376,1377,3,121,60,0,1377,1378,3,121,60,0,1378,1379,3,95,47,0,1379,1380,3,93,46,0,1380,260,1,0,0,0,1381,1382,3,93,46,0,1382,1383,3,95,47,0,1383,1384,3,97,48,0,1384,1385,3,103,51,0,1385,1386,3,113,56,0,1386,1387,3,95,47,0,1387,262,1,0,0,0,1388,1389,3,93,46,0,1389,1390,3,95,47,0,1390,1391,3,109,54,0,1391,1392,3,95,47,0,1392,1393,3,125,62,0,1393,1394,3,95,47,0,1394,264,1,0,0,0,1395,1396,3,93,46,0,1396,1397,3,95,47,0,1397,1398,3,123,61,0,1398,1399,3,91,45,0,1399,266,1,0,0,0,1400,1401,3,93,46,0,1401,1402,3,95,47,0,1402,1403,3,123,61,0,1403,1404,3,91,45,0,1404,1405,3,121,60,0,1405,1406,3,103,51,0,1406,1407,3,89,44,0,1407,1408,3,95,47,0,1408,268,1,0,0,0,1409,1410,3,93,46,0,1410,1411,3,95,47,0,1411,1412,3,125,62,0,1412,1413,3,87,43,0,1413,1414,3,91,45,0,1414,1415,3,101,50,0,1415,270,1,0,0,0,1416,1417,3,93,46,0,1417,1418,3,103,51,0,1418,1419,3,91,45,0,1419,1420,3,125,62,0,1420,272,1,0,0,0,1421,1422,3,93,46,0,1422,1423,3,103,51,0,1423,1424,3,121,60,0,1424,1425,3,95,47,0,1425,1426,3,91,45,0,1426,1427,3,125,62,0,1427,1428,3,115,57,0,1428,1429,3,121,60,0,1429,1430,3,135,67,0,1430,274,1,0,0,0,1431,1432,3,93,46,0,1432,1433,3,103,51,0,1433,1434,3,123,61,0,1434,1435,3,87,43,0,1435,1436,3,89,44,0,1436,1437,3,109,54,0,1437,1438,3,95,47,0,1438,276,1,0,0,0,1439,1440,3,93,46,0,1440,1441,3,103,51,0,1441,1442,3,123,61,0,1442,1443,3,91,45,0,1443,1444,3,87,43,0,1444,1445,3,121,60,0,1445,1446,3,93,46,0,1446,278,1,0,0,0,1447,1448,3,93,46,0,1448,1449,3,103,51,0,1449,1450,3,123,61,0,1450,1451,3,125,62,0,1451,1452,3,103,51,0,1452,1453,3,113,56,0,1453,1454,3,91,45,0,1454,1455,3,125,62,0,1455,280,1,0,0,0,1456,1457,3,93,46,0,1457,1458,3,115,57,0,1458,282,1,0,0,0,1459,1460,3,93,46,0,1460,1461,3,121,60,0,1461,1462,3,115,57,0,1462,1463,3,117,58,0,1463,284,1,0,0,0,1464,1465,3,95,47,0,1465,1466,3,87,43,0,1466,1467,3,91,45,0,1467,1468,3,101,50,0,1468,286,1,0,0,0,1469,1470,3,95,47,0,1470,1471,3,109,54,0,1471,1472,3,123,61,0,1472,1473,3,95,47,0,1473,288,1,0,0,0,1474,1475,3,95,47,0,1475,1476,3,111,55,0,1476,1477,3,117,58,0,1477,1478,3,125,62,0,1478,1479,3,135,67,0,1479,290,1,0,0,0,1480,1481,3,95,47,0,1481,1482,3,111,55,0,1482,1483,3,117,58,0,1483,1484,3,125,62,0,1484,1485,3,135,67,0,1485,1486,5,95,0,0,1486,1487,3,87,43,0,1487,1488,3,91,45,0,1488,1489,3,125,62,0,1489,1490,3,103,51,0,1490,1491,3,115,57,0,1491,1492,3,113,56,0,1492,292,1,0,0,0,1493,1494,3,95,47,0,1494,1495,3,113,56,0,1495,1496,3,91,45,0,1496,1497,3,121,60,0,1497,1498,3,135,67,0,1498,1499,3,117,58,0,1499,1500,3,125,62,0,1500,1501,3,95,47,0,1501,1502,3,93,46,0,1502,294,1,0,0,0,1503,1504,3,95,47,0,1504,1505,3,113,56,0,1505,1506,3,93,46,0,1506,296,1,0,0,0,1507,1508,3,95,47,0,1508,1509,3,113,56,0,1509,1510,3,127,63,0,1510,1511,3,111,55,0,1511,298,1,0,0,0,1512,1513,3,95,47,0,1513,1514,3,121,60,0,1514,1515,3,87,43,0,1515,1516,3,123,61,0,1516,1517,3,95,47,0,1517,300,1,0,0,0,1518,1519,3,95,47,0,1519,1520,3,121,60,0,1520,1521,3,121,60,0,1521,1522,3,115,57,0,1522,1523,3,121,60,0,1523,302,1,0,0,0,1524,1525,3,95,47,0,1525,1526,3,123,61,0,1526,1527,3,91,45,0,1527,1528,3,87,43,0,1528,1529,3,117,58,0,1529,1530,3,95,47,0,1530,304,1,0,0,0,1531,1532,3,95,47,0,1532,1533,3,129,64,0,1533,1534,3,87,43,0,1534,1535,3,109,54,0,1535,1536,3,127,63,0,1536,1537,3,87,43,0,1537,1538,3,125,62,0,1538,1539,3,95,47,0,1539,306,1,0,0,0,1540,1541,3,95,47,0,1541,1542,3,133,66,0,1542,1543,3,91,45,0,1543,1544,3,95,47,0,1544,1545,3,117,58,0,1545,1546,3,125,62,0,1546,308,1,0,0,0,1547,1548,3,95,47,0,1548,1549,3,133,66,0,1549,1550,3,91,45,0,1550,1551,3,109,54,0,1551,1552,3,127,63,0,1552,1553,3,93,46,0,1553,1554,3,95,47,0,1554,310,1,0,0,0,1555,1556,3,95,47,0,1556,1557,3,133,66,0,1557,1558,3,91,45,0,1558,1559,3,109,54,0,1559,1560,3,127,63,0,1560,1561,3,123,61,0,1561,1562,3,103,51,0,1562,1563,3,115,57,0,1563,1564,3,113,56,0,1564,312,1,0,0,0,1565,1566,3,95,47,0,1566,1567,3,133,66,0,1567,1568,3,91,45,0,1568,1569,3,109,54,0,1569,1570,3,127,63,0,1570,1571,3,123,61,0,1571,1572,3,103,51,0,1572,1573,3,129,64,0,1573,1574,3,95,47,0,1574,314,1,0,0,0,1575,1576,3,95,47,0,1576,1577,3,133,66,0,1577,1578,3,103,51,0,1578,1579,3,123,61,0,1579,1580,3,125,62,0,1580,1581,3,123,61,0,1581,316,1,0,0,0,1582,1583,3,95,47,0,1583,1584,3,133,66,0,1584,1585,3,117,58,0,1585,1586,3,109,54,0,1586,1587,3,87,43,0,1587,1588,3,103,51,0,1588,1589,3,113,56,0,1589,318,1,0,0,0,1590,1591,3,95,47,0,1591,1592,3,133,66,0,1592,1593,3,117,58,0,1593,1594,3,115,57,0,1594,1595,3,121,60,0,1595,1596,3,125,62,0,1596,320,1,0,0,0,1597,1598,3,95,47,0,1598,1599,3,133,66,0,1599,1600,3,125,62,0,1600,1601,3,95,47,0,1601,1602,3,121,60,0,1602,1603,3,113,56,0,1603,1604,3,87,43,0,1604,1605,3,109,54,0,1605,322,1,0,0,0,1606,1607,3,97,48,0,1607,1608,3,87,43,0,1608,1609,3,103,51,0,1609,1610,3,109,54,0,1610,324,1,0,0,0,1611,1612,3,97,48,0,1612,1613,3,87,43,0,1613,1614,3,109,54,0,1614,1615,3,123,61,0,1615,1616,3,95,47,0,1616,326,1,0,0,0,1617,1618,3,97,48,0,1618,1619,3,87,43,0,1619,1620,3,111,55,0,1620,1621,3,103,51,0,1621,1622,3,109,54,0,1622,1623,3,135,67,0,1623,328,1,0,0,0,1624,1625,3,97,48,0,1625,1626,3,103,51,0,1626,1627,3,109,54,0,1627,1628,3,125,62,0,1628,1629,3,95,47,0,1629,1630,3,121,60,0,1630,330,1,0,0,0,1631,1632,3,97,48,0,1632,1633,3,103,51,0,1633,1634,3,121,60,0,1634,1635,3,123,61,0,1635,1636,3,125,62,0,1636,332,1,0,0,0,1637,1638,3,97,48,0,1638,1639,3,109,54,0,1639,1640,3,87,43,0,1640,1641,3,125,62,0,1641,1642,3,125,62,0,1642,1643,3,95,47,0,1643,1644,3,113,56,0,1644,334,1,0,0,0,1645,1646,3,97,48,0,1646,1647,3,109,54,0,1647,1648,3,115,57,0,1648,1649,3,131,65,0,1649,336,1,0,0,0,1650,1651,3,97,48,0,1651,1652,3,115,57,0,1652,1653,3,109,54,0,1653,1654,3,109,54,0,1654,1655,3,115,57,0,1655,1656,3,131,65,0,1656,1657,3,103,51,0,1657,1658,3,113,56,0,1658,1659,3,99,49,0,1659,338,1,0,0,0,1660,1661,3,97,48,0,1661,1662,3,115,57,0,1662,1663,3,121,60,0,1663,340,1,0,0,0,1664,1665,3,97,48,0,1665,1666,3,115,57,0,1666,1667,3,121,60,0,1667,1668,3,95,47,0,1668,1669,3,103,51,0,1669,1670,3,99,49,0,1670,1671,3,113,56,0,1671,342,1,0,0,0,1672,1673,3,97,48,0,1673,1674,3,121,60,0,1674,1675,3,115,57,0,1675,1676,3,111,55,0,1676,344,1,0,0,0,1677,1678,3,97,48,0,1678,1679,3,127,63,0,1679,1680,3,109,54,0,1680,1681,3,109,54,0,1681,346,1,0,0,0,1682,1683,3,97,48,0,1683,1684,3,127,63,0,1684,1685,3,113,56,0,1685,1686,3,91,45,0,1686,1687,3,125,62,0,1687,1688,3,103,51,0,1688,1689,3,115,57,0,1689,1690,3,113,56,0,1690,348,1,0,0,0,1691,1692,3,99,49,0,1692,1693,3,109,54,0,1693,1694,3,115,57,0,1694,1695,3,89,44,0,1695,350,1,0,0,0,1696,1697,3,99,49,0,1697,1698,3,109,54,0,1698,1699,3,115,57,0,1699,1700,3,89,44,0,1700,1701,3,87,43,0,1701,1702,3,109,54,0,1702,352,1,0,0,0,1703,1704,3,99,49,0,1704,1705,3,121,60,0,1705,1706,3,87,43,0,1706,1707,3,113,56,0,1707,1708,3,125,62,0,1708,354,1,0,0,0,1709,1710,3,99,49,0,1710,1711,3,121,60,0,1711,1712,3,115,57,0,1712,1713,3,127,63,0,1713,1714,3,117,58,0,1714,356,1,0,0,0,1715,1716,3,99,49,0,1716,1717,3,121,60,0,1717,1718,3,115,57,0,1718,1719,3,127,63,0,1719,1720,3,117,58,0,1720,1721,3,103,51,0,1721,1722,3,113,56,0,1722,1723,3,99,49,0,1723,358,1,0,0,0,1724,1725,3,99,49,0,1725,1726,3,121,60,0,1726,1727,3,115,57,0,1727,1728,3,127,63,0,1728,1729,3,117,58,0,1729,1730,3,123,61,0,1730,360,1,0,0,0,1731,1732,3,101,50,0,1732,1733,3,87,43,0,1733,1734,3,123,61,0,1734,1735,3,101,50,0,1735,362,1,0,0,0,1736,1737,3,101,50,0,1737,1738,3,87,43,0,1738,1739,3,129,64,0,1739,1740,3,103,51,0,1740,1741,3,113,56,0,1741,1742,3,99,49,0,1742,364,1,0,0,0,1743,1744,3,101,50,0,1744,1745,3,115,57,0,1745,1746,3,117,58,0,1746,366,1,0,0,0,1747,1748,3,103,51,0,1748,1749,3,97,48,0,1749,368,1,0,0,0,1750,1751,3,103,51,0,1751,1752,3,99,49,0,1752,1753,3,113,56,0,1753,1754,3,115,57,0,1754,1755,3,121,60,0,1755,1756,3,95,47,0,1756,370,1,0,0,0,1757,1758,3,103,51,0,1758,1759,3,109,54,0,1759,1760,3,103,51,0,1760,1761,3,107,53,0,1761,1762,3,95,47,0,1762,372,1,0,0,0,1763,1764,3,103,51,0,1764,1765,3,111,55,0,1765,1766,3,111,55,0,1766,1767,3,95,47,0,1767,1768,3,93,46,0,1768,1769,3,103,51,0,1769,1770,3,87,43,0,1770,1771,3,125,62,0,1771,1772,3,95,47,0,1772,374,1,0,0,0,1773,1774,3,103,51,0,1774,1775,3,111,55,0,1775,1776,3,117,58,0,1776,1777,3,115,57,0,1777,1778,3,121,60,0,1778,1779,3,125,62,0,1779,376,1,0,0,0,1780,1781,3,103,51,0,1781,1782,3,113,56,0,1782,378,1,0,0,0,1783,1784,3,103,51,0,1784,1785,3,113,56,0,1785,1786,3,91,45,0,1786,1787,3,121,60,0,1787,1788,3,95,47,0,1788,1789,3,111,55,0,1789,1790,3,95,47,0,1790,1791,3,113,56,0,1791,1792,3,125,62,0,1792,1793,3,87,43,0,1793,1794,3,109,54,0,1794,380,1,0,0,0,1795,1796,3,103,51,0,1796,1797,3,113,56,0,1797,1798,3,93,46,0,1798,1799,3,95,47,0,1799,1800,3,133,66,0,1800,382,1,0,0,0,1801,1802,3,103,51,0,1802,1803,3,113,56,0,1803,1804,3,93,46,0,1804,1805,3,95,47,0,1805,1806,3,133,66,0,1806,1807,3,95,47,0,1807,1808,3,93,46,0,1808,384,1,0,0,0,1809,1810,3,103,51,0,1810,1811,3,113,56,0,1811,1812,3,101,50,0,1812,1813,3,95,47,0,1813,1814,3,121,60,0,1814,1815,3,103,51,0,1815,1816,3,125,62,0,1816,1817,3,123,61,0,1817,386,1,0,0,0,1818,1819,3,103,51,0,1819,1820,3,113,56,0,1820,1821,3,103,51,0,1821,1822,3,125,62,0,1822,1823,3,103,51,0,1823,1824,3,87,43,0,1824,1825,3,109,54,0,1825,388,1,0,0,0,1826,1827,3,103,51,0,1827,1828,3,113,56,0,1828,1829,3,103,51,0,1829,1830,3,125,62,0,1830,1831,3,103,51,0,1831,1832,3,87,43,0,1832,1833,3,109,54,0,1833,1834,3,109,54,0,1834,1835,3,135,67,0,1835,390,1,0,0,0,1836,1837,3,103,51,0,1837,1838,3,113,56,0,1838,1839,3,113,56,0,1839,1840,3,95,47,0,1840,1841,3,121,60,0,1841,392,1,0,0,0,1842,1843,3,103,51,0,1843,1844,3,113,56,0,1844,1845,3,123,61,0,1845,1846,3,95,47,0,1846,1847,3,121,60,0,1847,1848,3,125,62,0,1848,394,1,0,0,0,1849,1850,3,103,51,0,1850,1851,3,113,56,0,1851,1852,3,123,61,0,1852,1853,3,125,62,0,1853,1854,3,95,47,0,1854,1855,3,87,43,0,1855,1856,3,93,46,0,1856,396,1,0,0,0,1857,1858,3,103,51,0,1858,1859,3,113,56,0,1859,1860,3,125,62,0,1860,1861,3,95,47,0,1861,1862,3,121,60,0,1862,1863,3,123,61,0,1863,1864,3,95,47,0,1864,1865,3,91,45,0,1865,1866,3,125,62,0,1866,398,1,0,0,0,1867,1868,3,103,51,0,1868,1869,3,113,56,0,1869,1870,3,125,62,0,1870,1871,3,115,57,0,1871,400,1,0,0,0,1872,1873,3,103,51,0,1873,1874,3,123,61,0,1874,402,1,0,0,0,1875,1876,3,103,51,0,1876,1877,3,123,61,0,1877,1878,3,113,56,0,1878,1879,3,127,63,0,1879,1880,3,109,54,0,1880,1881,3,109,54,0,1881,404,1,0,0,0,1882,1883,3,105,52,0,1883,1884,3,115,57,0,1884,1885,3,103,51,0,1885,1886,3,113,56,0,1886,406,1,0,0,0,1887,1888,3,105,52,0,1888,1889,3,123,61,0,1889,1890,3,115,57,0,1890,1891,3,113,56,0,1891,1892,5,95,0,0,1892,1893,3,95,47,0,1893,1894,3,133,66,0,1894,1895,3,103,51,0,1895,1896,3,123,61,0,1896,1897,3,125,62,0,1897,1898,3,123,61,0,1898,408,1,0,0,0,1899,1900,3,105,52,0,1900,1901,3,123,61,0,1901,1902,3,115,57,0,1902,1903,3,113,56,0,1903,1904,5,95,0,0,1904,1905,3,119,59,0,1905,1906,3,127,63,0,1906,1907,3,95,47,0,1907,1908,3,121,60,0,1908,1909,3,135,67,0,1909,410,1,0,0,0,1910,1911,3,105,52,0,1911,1912,3,123,61,0,1912,1913,3,115,57,0,1913,1914,3,113,56,0,1914,1915,5,95,0,0,1915,1916,3,129,64,0,1916,1917,3,87,43,0,1917,1918,3,109,54,0,1918,1919,3,127,63,0,1919,1920,3,95,47,0,1920,412,1,0,0,0,1921,1922,3,107,53,0,1922,1923,3,95,47,0,1923,1924,3,135,67,0,1924,414,1,0,0,0,1925,1926,3,109,54,0,1926,1927,3,87,43,0,1927,1928,3,123,61,0,1928,1929,3,125,62,0,1929,416,1,0,0,0,1930,1931,3,109,54,0,1931,1932,3,95,47,0,1932,1933,3,97,48,0,1933,1934,3,125,62,0,1934,418,1,0,0,0,1935,1936,3,109,54,0,1936,1937,3,95,47,0,1937,1938,3,99,49,0,1938,1939,3,87,43,0,1939,1940,3,91,45,0,1940,1941,3,135,67,0,1941,420,1,0,0,0,1942,1943,3,109,54,0,1943,1944,3,103,51,0,1944,1945,3,107,53,0,1945,1946,3,95,47,0,1946,422,1,0,0,0,1947,1948,3,109,54,0,1948,1949,3,103,51,0,1949,1950,3,111,55,0,1950,1951,3,103,51,0,1951,1952,3,125,62,0,1952,424,1,0,0,0,1953,1954,3,109,54,0,1954,1955,3,103,51,0,1955,1956,3,123,61,0,1956,1957,3,125,62,0,1957,426,1,0,0,0,1958,1959,3,109,54,0,1959,1960,3,115,57,0,1960,1961,3,91,45,0,1961,1962,3,87,43,0,1962,1963,3,109,54,0,1963,428,1,0,0,0,1964,1965,3,111,55,0,1965,1966,3,87,43,0,1966,1967,3,113,56,0,1967,1968,3,87,43,0,1968,1969,3,99,49,0,1969,1970,3,95,47,0,1970,430,1,0,0,0,1971,1972,3,111,55,0,1972,1973,3,87,43,0,1973,1974,3,125,62,0,1974,1975,3,91,45,0,1975,1976,3,101,50,0,1976,432,1,0,0,0,1977,1978,3,111,55,0,1978,1979,3,87,43,0,1979,1980,3,125,62,0,1980,1981,3,91,45,0,1981,1982,3,101,50,0,1982,1983,3,95,47,0,1983,1984,3,123,61,0,1984,434,1,0,0,0,1985,1986,3,111,55,0,1986,1987,3,87,43,0,1987,1988,3,125,62,0,1988,1989,3,91,45,0,1989,1990,3,101,50,0,1990,1991,5,95,0,0,1991,1992,3,121,60,0,1992,1993,3,95,47,0,1993,1994,3,91,45,0,1994,1995,3,115,57,0,1995,1996,3,99,49,0,1996,1997,3,113,56,0,1997,1998,3,103,51,0,1998,1999,3,137,68,0,1999,2e3,3,95,47,0,2e3,436,1,0,0,0,2001,2002,3,111,55,0,2002,2003,3,95,47,0,2003,2004,3,87,43,0,2004,2005,3,123,61,0,2005,2006,3,127,63,0,2006,2007,3,121,60,0,2007,2008,3,95,47,0,2008,2009,3,123,61,0,2009,438,1,0,0,0,2010,2011,3,111,55,0,2011,2012,3,103,51,0,2012,2013,3,91,45,0,2013,2014,3,121,60,0,2014,2015,3,115,57,0,2015,2016,3,123,61,0,2016,2017,3,95,47,0,2017,2018,3,91,45,0,2018,2019,3,115,57,0,2019,2020,3,113,56,0,2020,2021,3,93,46,0,2021,2022,3,123,61,0,2022,440,1,0,0,0,2023,2024,3,111,55,0,2024,2025,3,103,51,0,2025,2026,3,109,54,0,2026,2027,3,109,54,0,2027,2028,3,103,51,0,2028,2029,3,123,61,0,2029,2030,3,95,47,0,2030,2031,3,91,45,0,2031,2032,3,115,57,0,2032,2033,3,113,56,0,2033,2034,3,93,46,0,2034,2035,3,123,61,0,2035,442,1,0,0,0,2036,2037,3,111,55,0,2037,2038,3,115,57,0,2038,2039,3,93,46,0,2039,2040,3,103,51,0,2040,2041,3,97,48,0,2041,2042,3,135,67,0,2042,444,1,0,0,0,2043,2044,3,113,56,0,2044,2045,3,87,43,0,2045,2046,3,113,56,0,2046,2047,3,115,57,0,2047,2048,3,123,61,0,2048,2049,3,95,47,0,2049,2050,3,91,45,0,2050,2051,3,115,57,0,2051,2052,3,113,56,0,2052,2053,3,93,46,0,2053,2054,3,123,61,0,2054,446,1,0,0,0,2055,2056,3,113,56,0,2056,2057,3,87,43,0,2057,2058,3,125,62,0,2058,2059,3,127,63,0,2059,2060,3,121,60,0,2060,2061,3,87,43,0,2061,2062,3,109,54,0,2062,448,1,0,0,0,2063,2064,3,113,56,0,2064,2065,3,95,47,0,2065,2066,3,133,66,0,2066,2067,3,125,62,0,2067,450,1,0,0,0,2068,2069,3,113,56,0,2069,2070,3,115,57,0,2070,452,1,0,0,0,2071,2072,3,113,56,0,2072,2073,3,115,57,0,2073,2074,3,125,62,0,2074,454,1,0,0,0,2075,2076,3,113,56,0,2076,2077,3,115,57,0,2077,2078,3,125,62,0,2078,2079,3,113,56,0,2079,2080,3,127,63,0,2080,2081,3,109,54,0,2081,2082,3,109,54,0,2082,456,1,0,0,0,2083,2084,3,113,56,0,2084,2085,3,127,63,0,2085,2086,3,109,54,0,2086,2087,3,109,54,0,2087,458,1,0,0,0,2088,2089,3,113,56,0,2089,2090,3,127,63,0,2090,2091,3,109,54,0,2091,2092,3,109,54,0,2092,2093,3,123,61,0,2093,460,1,0,0,0,2094,2095,3,115,57,0,2095,2096,3,89,44,0,2096,2097,3,105,52,0,2097,2098,3,95,47,0,2098,2099,3,91,45,0,2099,2100,3,125,62,0,2100,462,1,0,0,0,2101,2102,3,115,57,0,2102,2103,3,97,48,0,2103,464,1,0,0,0,2104,2105,3,115,57,0,2105,2106,3,97,48,0,2106,2107,3,97,48,0,2107,2108,3,123,61,0,2108,2109,3,95,47,0,2109,2110,3,125,62,0,2110,466,1,0,0,0,2111,2112,3,115,57,0,2112,2113,3,111,55,0,2113,2114,3,103,51,0,2114,2115,3,125,62,0,2115,468,1,0,0,0,2116,2117,3,115,57,0,2117,2118,3,113,56,0,2118,470,1,0,0,0,2119,2120,3,115,57,0,2120,2121,3,113,56,0,2121,2122,3,95,47,0,2122,472,1,0,0,0,2123,2124,3,115,57,0,2124,2125,3,113,56,0,2125,2126,3,109,54,0,2126,2127,3,135,67,0,2127,474,1,0,0,0,2128,2129,3,115,57,0,2129,2130,3,117,58,0,2130,2131,3,125,62,0,2131,2132,3,103,51,0,2132,2133,3,115,57,0,2133,2134,3,113,56,0,2134,476,1,0,0,0,2135,2136,3,115,57,0,2136,2137,3,117,58,0,2137,2138,3,125,62,0,2138,2139,3,103,51,0,2139,2140,3,115,57,0,2140,2141,3,113,56,0,2141,2142,3,87,43,0,2142,2143,3,109,54,0,2143,478,1,0,0,0,2144,2145,3,115,57,0,2145,2146,3,121,60,0,2146,480,1,0,0,0,2147,2148,3,115,57,0,2148,2149,3,121,60,0,2149,2150,3,93,46,0,2150,2151,3,95,47,0,2151,2152,3,121,60,0,2152,482,1,0,0,0,2153,2154,3,115,57,0,2154,2155,3,125,62,0,2155,2156,3,101,50,0,2156,2157,3,95,47,0,2157,2158,3,121,60,0,2158,2159,3,123,61,0,2159,484,1,0,0,0,2160,2161,3,115,57,0,2161,2162,3,127,63,0,2162,2163,3,125,62,0,2163,2164,3,95,47,0,2164,2165,3,121,60,0,2165,486,1,0,0,0,2166,2167,3,115,57,0,2167,2168,3,129,64,0,2168,2169,3,95,47,0,2169,2170,3,121,60,0,2170,488,1,0,0,0,2171,2172,3,117,58,0,2172,2173,3,87,43,0,2173,2174,3,121,60,0,2174,2175,3,87,43,0,2175,2176,3,109,54,0,2176,2177,3,109,54,0,2177,2178,3,95,47,0,2178,2179,3,109,54,0,2179,490,1,0,0,0,2180,2181,3,117,58,0,2181,2182,3,87,43,0,2182,2183,3,121,60,0,2183,2184,3,125,62,0,2184,2185,3,103,51,0,2185,2186,3,125,62,0,2186,2187,3,103,51,0,2187,2188,3,115,57,0,2188,2189,3,113,56,0,2189,492,1,0,0,0,2190,2191,3,117,58,0,2191,2192,3,87,43,0,2192,2193,3,123,61,0,2193,2194,3,123,61,0,2194,2195,3,103,51,0,2195,2196,3,113,56,0,2196,2197,3,99,49,0,2197,494,1,0,0,0,2198,2199,3,117,58,0,2199,2200,3,87,43,0,2200,2201,3,123,61,0,2201,2202,3,123,61,0,2202,2203,3,131,65,0,2203,2204,3,115,57,0,2204,2205,3,121,60,0,2205,2206,3,93,46,0,2206,496,1,0,0,0,2207,2208,3,117,58,0,2208,2209,3,87,43,0,2209,2210,3,123,61,0,2210,2211,3,125,62,0,2211,498,1,0,0,0,2212,2213,3,117,58,0,2213,2214,3,87,43,0,2214,2215,3,125,62,0,2215,2216,3,125,62,0,2216,2217,3,95,47,0,2217,2218,3,121,60,0,2218,2219,3,113,56,0,2219,500,1,0,0,0,2220,2221,3,117,58,0,2221,2222,3,95,47,0,2222,2223,3,121,60,0,2223,502,1,0,0,0,2224,2225,3,117,58,0,2225,2226,3,95,47,0,2226,2227,3,121,60,0,2227,2228,3,111,55,0,2228,2229,3,127,63,0,2229,2230,3,125,62,0,2230,2231,3,95,47,0,2231,504,1,0,0,0,2232,2233,3,117,58,0,2233,2234,3,109,54,0,2234,2235,3,87,43,0,2235,2236,3,113,56,0,2236,506,1,0,0,0,2237,2238,3,117,58,0,2238,2239,3,115,57,0,2239,2240,3,115,57,0,2240,2241,3,109,54,0,2241,508,1,0,0,0,2242,2243,3,117,58,0,2243,2244,3,121,60,0,2244,2245,3,87,43,0,2245,2246,3,99,49,0,2246,2247,3,111,55,0,2247,2248,3,87,43,0,2248,510,1,0,0,0,2249,2250,3,117,58,0,2250,2251,3,121,60,0,2251,2252,3,95,47,0,2252,2253,3,91,45,0,2253,2254,3,95,47,0,2254,2255,3,93,46,0,2255,2256,3,103,51,0,2256,2257,3,113,56,0,2257,2258,3,99,49,0,2258,512,1,0,0,0,2259,2260,3,117,58,0,2260,2261,3,121,60,0,2261,2262,3,95,47,0,2262,2263,3,123,61,0,2263,2264,3,115,57,0,2264,2265,3,121,60,0,2265,2266,3,125,62,0,2266,514,1,0,0,0,2267,2268,3,117,58,0,2268,2269,3,121,60,0,2269,2270,3,103,51,0,2270,2271,3,111,55,0,2271,2272,3,87,43,0,2272,2273,3,121,60,0,2273,2274,3,135,67,0,2274,516,1,0,0,0,2275,2276,3,117,58,0,2276,2277,3,121,60,0,2277,2278,3,103,51,0,2278,2279,3,129,64,0,2279,2280,3,103,51,0,2280,2281,3,109,54,0,2281,2282,3,95,47,0,2282,2283,3,99,49,0,2283,2284,3,95,47,0,2284,2285,3,123,61,0,2285,518,1,0,0,0,2286,2287,3,117,58,0,2287,2288,3,121,60,0,2288,2289,3,115,57,0,2289,2290,3,91,45,0,2290,2291,3,95,47,0,2291,2292,3,123,61,0,2292,2293,3,123,61,0,2293,520,1,0,0,0,2294,2295,3,119,59,0,2295,2296,3,127,63,0,2296,2297,3,95,47,0,2297,2298,3,127,63,0,2298,2299,3,95,47,0,2299,522,1,0,0,0,2300,2301,3,121,60,0,2301,2302,3,87,43,0,2302,2303,3,103,51,0,2303,2304,3,123,61,0,2304,2305,3,95,47,0,2305,524,1,0,0,0,2306,2307,3,121,60,0,2307,2308,3,87,43,0,2308,2309,3,113,56,0,2309,2310,3,99,49,0,2310,2311,3,95,47,0,2311,526,1,0,0,0,2312,2313,3,121,60,0,2313,2314,3,95,47,0,2314,2315,3,93,46,0,2315,2316,3,127,63,0,2316,2317,3,91,45,0,2317,2318,3,95,47,0,2318,528,1,0,0,0,2319,2320,3,121,60,0,2320,2321,3,95,47,0,2321,2322,3,97,48,0,2322,2323,3,95,47,0,2323,2324,3,121,60,0,2324,2325,3,95,47,0,2325,2326,3,113,56,0,2326,2327,3,91,45,0,2327,2328,3,95,47,0,2328,2329,3,123,61,0,2329,530,1,0,0,0,2330,2331,3,121,60,0,2331,2332,3,95,47,0,2332,2333,3,99,49,0,2333,2334,3,95,47,0,2334,2335,3,133,66,0,2335,2336,3,117,58,0,2336,532,1,0,0,0,2337,2338,3,121,60,0,2338,2339,3,95,47,0,2339,2340,3,103,51,0,2340,2341,3,113,56,0,2341,2342,3,93,46,0,2342,2343,3,95,47,0,2343,2344,3,133,66,0,2344,534,1,0,0,0,2345,2346,3,121,60,0,2346,2347,3,95,47,0,2347,2348,3,109,54,0,2348,2349,3,95,47,0,2349,2350,3,87,43,0,2350,2351,3,123,61,0,2351,2352,3,95,47,0,2352,536,1,0,0,0,2353,2354,3,121,60,0,2354,2355,3,95,47,0,2355,2356,3,111,55,0,2356,2357,3,115,57,0,2357,2358,3,129,64,0,2358,2359,3,95,47,0,2359,538,1,0,0,0,2360,2361,3,121,60,0,2361,2362,3,95,47,0,2362,2363,3,113,56,0,2363,2364,3,87,43,0,2364,2365,3,111,55,0,2365,2366,3,95,47,0,2366,540,1,0,0,0,2367,2368,3,121,60,0,2368,2369,3,95,47,0,2369,2370,3,117,58,0,2370,2371,3,95,47,0,2371,2372,3,87,43,0,2372,2373,3,125,62,0,2373,2374,3,87,43,0,2374,2375,3,89,44,0,2375,2376,3,109,54,0,2376,2377,3,95,47,0,2377,542,1,0,0,0,2378,2379,3,121,60,0,2379,2380,3,95,47,0,2380,2381,3,117,58,0,2381,2382,3,109,54,0,2382,2383,3,87,43,0,2383,2384,3,91,45,0,2384,2385,3,95,47,0,2385,544,1,0,0,0,2386,2387,3,121,60,0,2387,2388,3,95,47,0,2388,2389,3,117,58,0,2389,2390,3,109,54,0,2390,2391,3,103,51,0,2391,2392,3,91,45,0,2392,2393,3,87,43,0,2393,2394,3,125,62,0,2394,2395,3,103,51,0,2395,2396,3,115,57,0,2396,2397,3,113,56,0,2397,546,1,0,0,0,2398,2399,3,121,60,0,2399,2400,3,95,47,0,2400,2401,3,123,61,0,2401,2402,3,95,47,0,2402,2403,3,125,62,0,2403,548,1,0,0,0,2404,2405,3,121,60,0,2405,2406,3,95,47,0,2406,2407,3,123,61,0,2407,2408,3,115,57,0,2408,2409,3,127,63,0,2409,2410,3,121,60,0,2410,2411,3,91,45,0,2411,2412,3,95,47,0,2412,550,1,0,0,0,2413,2414,3,121,60,0,2414,2415,3,95,47,0,2415,2416,3,123,61,0,2416,2417,3,117,58,0,2417,2418,3,95,47,0,2418,2419,3,91,45,0,2419,2420,3,125,62,0,2420,552,1,0,0,0,2421,2422,3,121,60,0,2422,2423,3,95,47,0,2423,2424,3,123,61,0,2424,2425,3,125,62,0,2425,2426,3,115,57,0,2426,2427,3,121,60,0,2427,2428,3,95,47,0,2428,554,1,0,0,0,2429,2430,3,121,60,0,2430,2431,3,95,47,0,2431,2432,3,123,61,0,2432,2433,3,125,62,0,2433,2434,3,121,60,0,2434,2435,3,103,51,0,2435,2436,3,91,45,0,2436,2437,3,125,62,0,2437,556,1,0,0,0,2438,2439,3,121,60,0,2439,2440,3,95,47,0,2440,2441,3,123,61,0,2441,2442,3,127,63,0,2442,2443,3,109,54,0,2443,2444,3,125,62,0,2444,558,1,0,0,0,2445,2446,3,121,60,0,2446,2447,3,95,47,0,2447,2448,3,125,62,0,2448,2449,3,127,63,0,2449,2450,3,121,60,0,2450,2451,3,113,56,0,2451,560,1,0,0,0,2452,2453,3,121,60,0,2453,2454,3,95,47,0,2454,2455,3,125,62,0,2455,2456,3,127,63,0,2456,2457,3,121,60,0,2457,2458,3,113,56,0,2458,2459,3,103,51,0,2459,2460,3,113,56,0,2460,2461,3,99,49,0,2461,562,1,0,0,0,2462,2463,3,121,60,0,2463,2464,3,95,47,0,2464,2465,3,129,64,0,2465,2466,3,95,47,0,2466,2467,3,121,60,0,2467,2468,3,125,62,0,2468,564,1,0,0,0,2469,2470,3,121,60,0,2470,2471,3,95,47,0,2471,2472,3,129,64,0,2472,2473,3,115,57,0,2473,2474,3,107,53,0,2474,2475,3,95,47,0,2475,566,1,0,0,0,2476,2477,3,121,60,0,2477,2478,3,103,51,0,2478,2479,3,99,49,0,2479,2480,3,101,50,0,2480,2481,3,125,62,0,2481,568,1,0,0,0,2482,2483,3,121,60,0,2483,2484,3,109,54,0,2484,2485,3,103,51,0,2485,2486,3,107,53,0,2486,2487,3,95,47,0,2487,570,1,0,0,0,2488,2489,3,121,60,0,2489,2490,3,115,57,0,2490,2491,3,109,54,0,2491,2492,3,109,54,0,2492,2493,3,89,44,0,2493,2494,3,87,43,0,2494,2495,3,91,45,0,2495,2496,3,107,53,0,2496,572,1,0,0,0,2497,2498,3,121,60,0,2498,2499,3,115,57,0,2499,2500,3,109,54,0,2500,2501,3,109,54,0,2501,2502,3,127,63,0,2502,2503,3,117,58,0,2503,574,1,0,0,0,2504,2505,3,121,60,0,2505,2506,3,115,57,0,2506,2507,3,131,65,0,2507,576,1,0,0,0,2508,2509,3,121,60,0,2509,2510,3,115,57,0,2510,2511,3,131,65,0,2511,2512,3,123,61,0,2512,578,1,0,0,0,2513,2514,3,123,61,0,2514,2515,3,87,43,0,2515,2516,3,111,55,0,2516,2517,3,117,58,0,2517,2518,3,109,54,0,2518,2519,3,95,47,0,2519,580,1,0,0,0,2520,2521,3,123,61,0,2521,2522,3,87,43,0,2522,2523,3,129,64,0,2523,2524,3,95,47,0,2524,2525,3,117,58,0,2525,2526,3,115,57,0,2526,2527,3,103,51,0,2527,2528,3,113,56,0,2528,2529,3,125,62,0,2529,582,1,0,0,0,2530,2531,3,123,61,0,2531,2532,3,91,45,0,2532,2533,3,101,50,0,2533,2534,3,95,47,0,2534,2535,3,111,55,0,2535,2536,3,87,43,0,2536,584,1,0,0,0,2537,2538,3,123,61,0,2538,2539,3,95,47,0,2539,2540,3,91,45,0,2540,2541,3,115,57,0,2541,2542,3,113,56,0,2542,2543,3,93,46,0,2543,2544,3,123,61,0,2544,586,1,0,0,0,2545,2546,3,123,61,0,2546,2547,3,95,47,0,2547,2548,3,95,47,0,2548,2549,3,107,53,0,2549,588,1,0,0,0,2550,2551,3,123,61,0,2551,2552,3,95,47,0,2552,2553,3,109,54,0,2553,2554,3,95,47,0,2554,2555,3,91,45,0,2555,2556,3,125,62,0,2556,590,1,0,0,0,2557,2558,3,123,61,0,2558,2559,3,95,47,0,2559,2560,3,111,55,0,2560,2561,3,103,51,0,2561,592,1,0,0,0,2562,2563,3,123,61,0,2563,2564,3,95,47,0,2564,2565,3,125,62,0,2565,594,1,0,0,0,2566,2567,3,123,61,0,2567,2568,3,95,47,0,2568,2569,3,125,62,0,2569,2570,3,123,61,0,2570,596,1,0,0,0,2571,2572,3,123,61,0,2572,2573,3,101,50,0,2573,2574,3,115,57,0,2574,2575,3,131,65,0,2575,598,1,0,0,0,2576,2577,3,123,61,0,2577,2578,3,107,53,0,2578,2579,3,103,51,0,2579,2580,3,117,58,0,2580,600,1,0,0,0,2581,2582,3,123,61,0,2582,2583,3,115,57,0,2583,2584,3,127,63,0,2584,2585,3,121,60,0,2585,2586,3,91,45,0,2586,2587,3,95,47,0,2587,602,1,0,0,0,2588,2589,3,123,61,0,2589,2590,3,125,62,0,2590,2591,3,121,60,0,2591,2592,3,95,47,0,2592,2593,3,87,43,0,2593,2594,3,111,55,0,2594,604,1,0,0,0,2595,2596,3,123,61,0,2596,2597,3,125,62,0,2597,2598,3,121,60,0,2598,2599,3,127,63,0,2599,2600,3,91,45,0,2600,2601,3,125,62,0,2601,606,1,0,0,0,2602,2603,3,123,61,0,2603,2604,3,127,63,0,2604,2605,3,89,44,0,2605,2606,3,119,59,0,2606,2607,3,127,63,0,2607,2608,3,95,47,0,2608,2609,3,121,60,0,2609,2610,3,135,67,0,2610,608,1,0,0,0,2611,2612,3,123,61,0,2612,2613,3,127,63,0,2613,2614,3,89,44,0,2614,2615,3,123,61,0,2615,2616,3,95,47,0,2616,2617,3,125,62,0,2617,610,1,0,0,0,2618,2619,3,123,61,0,2619,2620,3,135,67,0,2620,2621,3,111,55,0,2621,2622,3,89,44,0,2622,2623,3,115,57,0,2623,2624,3,109,54,0,2624,2625,3,123,61,0,2625,612,1,0,0,0,2626,2627,3,123,61,0,2627,2628,3,135,67,0,2628,2629,3,111,55,0,2629,2630,3,111,55,0,2630,2631,3,95,47,0,2631,2632,3,125,62,0,2632,2633,3,121,60,0,2633,2634,3,103,51,0,2634,2635,3,91,45,0,2635,614,1,0,0,0,2636,2637,3,123,61,0,2637,2638,3,135,67,0,2638,2639,3,113,56,0,2639,2640,3,91,45,0,2640,616,1,0,0,0,2641,2642,3,123,61,0,2642,2643,3,135,67,0,2643,2644,3,123,61,0,2644,2645,3,125,62,0,2645,2646,3,95,47,0,2646,2647,3,111,55,0,2647,618,1,0,0,0,2648,2649,3,125,62,0,2649,2650,3,87,43,0,2650,2651,3,89,44,0,2651,2652,3,109,54,0,2652,2653,3,95,47,0,2653,620,1,0,0,0,2654,2655,3,125,62,0,2655,2656,3,87,43,0,2656,2657,3,89,44,0,2657,2658,3,109,54,0,2658,2659,3,95,47,0,2659,2660,3,123,61,0,2660,622,1,0,0,0,2661,2662,3,125,62,0,2662,2663,3,87,43,0,2663,2664,3,89,44,0,2664,2665,3,109,54,0,2665,2666,3,95,47,0,2666,2667,3,123,61,0,2667,2668,3,87,43,0,2668,2669,3,111,55,0,2669,2670,3,117,58,0,2670,2671,3,109,54,0,2671,2672,3,95,47,0,2672,624,1,0,0,0,2673,2674,3,125,62,0,2674,2675,3,87,43,0,2675,2676,3,89,44,0,2676,2677,3,109,54,0,2677,2678,3,95,47,0,2678,2679,3,123,61,0,2679,2680,3,125,62,0,2680,2681,3,115,57,0,2681,2682,3,121,60,0,2682,2683,3,95,47,0,2683,626,1,0,0,0,2684,2685,3,125,62,0,2685,2686,3,87,43,0,2686,2687,3,99,49,0,2687,2688,3,99,49,0,2688,2689,3,95,47,0,2689,2690,3,93,46,0,2690,628,1,0,0,0,2691,2692,3,125,62,0,2692,2693,3,95,47,0,2693,2694,3,111,55,0,2694,2695,3,117,58,0,2695,630,1,0,0,0,2696,2697,3,125,62,0,2697,2698,3,95,47,0,2698,2699,3,111,55,0,2699,2700,3,117,58,0,2700,2701,3,115,57,0,2701,2702,3,121,60,0,2702,2703,3,87,43,0,2703,2704,3,121,60,0,2704,2705,3,135,67,0,2705,632,1,0,0,0,2706,2707,3,125,62,0,2707,2708,3,101,50,0,2708,2709,3,95,47,0,2709,2710,3,113,56,0,2710,634,1,0,0,0,2711,2712,3,125,62,0,2712,2713,3,103,51,0,2713,2714,3,95,47,0,2714,2715,3,123,61,0,2715,636,1,0,0,0,2716,2717,3,125,62,0,2717,2718,3,115,57,0,2718,638,1,0,0,0,2719,2720,3,125,62,0,2720,2721,3,115,57,0,2721,2722,3,117,58,0,2722,2723,3,103,51,0,2723,2724,3,91,45,0,2724,640,1,0,0,0,2725,2726,3,125,62,0,2726,2727,3,121,60,0,2727,2728,3,87,43,0,2728,2729,3,113,56,0,2729,2730,3,123,61,0,2730,2731,3,87,43,0,2731,2732,3,91,45,0,2732,2733,3,125,62,0,2733,2734,3,103,51,0,2734,2735,3,115,57,0,2735,2736,3,113,56,0,2736,642,1,0,0,0,2737,2738,3,125,62,0,2738,2739,3,121,60,0,2739,2740,3,103,51,0,2740,2741,3,99,49,0,2741,2742,3,99,49,0,2742,2743,3,95,47,0,2743,2744,3,121,60,0,2744,644,1,0,0,0,2745,2746,3,125,62,0,2746,2747,3,121,60,0,2747,2748,3,127,63,0,2748,2749,3,95,47,0,2749,646,1,0,0,0,2750,2751,3,125,62,0,2751,2752,3,127,63,0,2752,2753,3,117,58,0,2753,2754,3,109,54,0,2754,2755,3,95,47,0,2755,648,1,0,0,0,2756,2757,3,125,62,0,2757,2758,3,135,67,0,2758,2759,3,117,58,0,2759,2760,3,95,47,0,2760,650,1,0,0,0,2761,2762,3,127,63,0,2762,2763,3,113,56,0,2763,2764,3,89,44,0,2764,2765,3,115,57,0,2765,2766,3,127,63,0,2766,2767,3,113,56,0,2767,2768,3,93,46,0,2768,2769,3,95,47,0,2769,2770,3,93,46,0,2770,652,1,0,0,0,2771,2772,3,127,63,0,2772,2773,3,113,56,0,2773,2774,3,91,45,0,2774,2775,3,115,57,0,2775,2776,3,113,56,0,2776,2777,3,93,46,0,2777,2778,3,103,51,0,2778,2779,3,125,62,0,2779,2780,3,103,51,0,2780,2781,3,115,57,0,2781,2782,3,113,56,0,2782,2783,3,87,43,0,2783,2784,3,109,54,0,2784,654,1,0,0,0,2785,2786,3,127,63,0,2786,2787,3,113,56,0,2787,2788,3,103,51,0,2788,2789,3,115,57,0,2789,2790,3,113,56,0,2790,656,1,0,0,0,2791,2792,3,127,63,0,2792,2793,3,113,56,0,2793,2794,3,103,51,0,2794,2795,3,119,59,0,2795,2796,3,127,63,0,2796,2797,3,95,47,0,2797,658,1,0,0,0,2798,2799,3,127,63,0,2799,2800,3,113,56,0,2800,2801,3,107,53,0,2801,2802,3,113,56,0,2802,2803,3,115,57,0,2803,2804,3,131,65,0,2804,2805,3,113,56,0,2805,660,1,0,0,0,2806,2807,3,127,63,0,2807,2808,3,113,56,0,2808,2809,3,111,55,0,2809,2810,3,87,43,0,2810,2811,3,125,62,0,2811,2812,3,91,45,0,2812,2813,3,101,50,0,2813,2814,3,95,47,0,2814,2815,3,93,46,0,2815,662,1,0,0,0,2816,2817,3,127,63,0,2817,2818,3,117,58,0,2818,2819,3,93,46,0,2819,2820,3,87,43,0,2820,2821,3,125,62,0,2821,2822,3,95,47,0,2822,664,1,0,0,0,2823,2824,3,127,63,0,2824,2825,3,117,58,0,2825,2826,3,123,61,0,2826,2827,3,95,47,0,2827,2828,3,121,60,0,2828,2829,3,125,62,0,2829,666,1,0,0,0,2830,2831,3,127,63,0,2831,2832,3,123,61,0,2832,2833,3,95,47,0,2833,668,1,0,0,0,2834,2835,3,127,63,0,2835,2836,3,123,61,0,2836,2837,3,95,47,0,2837,2838,3,121,60,0,2838,670,1,0,0,0,2839,2840,3,127,63,0,2840,2841,3,123,61,0,2841,2842,3,103,51,0,2842,2843,3,113,56,0,2843,2844,3,99,49,0,2844,672,1,0,0,0,2845,2846,3,129,64,0,2846,2847,3,87,43,0,2847,2848,3,91,45,0,2848,2849,3,127,63,0,2849,2850,3,127,63,0,2850,2851,3,111,55,0,2851,674,1,0,0,0,2852,2853,3,129,64,0,2853,2854,3,87,43,0,2854,2855,3,109,54,0,2855,2856,3,127,63,0,2856,2857,3,95,47,0,2857,2858,3,123,61,0,2858,676,1,0,0,0,2859,2860,3,129,64,0,2860,2861,3,87,43,0,2861,2862,3,121,60,0,2862,2863,3,103,51,0,2863,2864,3,87,43,0,2864,2865,3,113,56,0,2865,2866,3,125,62,0,2866,678,1,0,0,0,2867,2868,3,129,64,0,2868,2869,3,103,51,0,2869,2870,3,95,47,0,2870,2871,3,131,65,0,2871,680,1,0,0,0,2872,2873,3,129,64,0,2873,2874,3,103,51,0,2874,2875,3,121,60,0,2875,2876,3,125,62,0,2876,2877,3,127,63,0,2877,2878,3,87,43,0,2878,2879,3,109,54,0,2879,682,1,0,0,0,2880,2881,3,131,65,0,2881,2882,3,101,50,0,2882,2883,3,95,47,0,2883,2884,3,113,56,0,2884,684,1,0,0,0,2885,2886,3,131,65,0,2886,2887,3,101,50,0,2887,2888,3,95,47,0,2888,2889,3,121,60,0,2889,2890,3,95,47,0,2890,686,1,0,0,0,2891,2892,3,131,65,0,2892,2893,3,103,51,0,2893,2894,3,113,56,0,2894,2895,3,93,46,0,2895,2896,3,115,57,0,2896,2897,3,131,65,0,2897,688,1,0,0,0,2898,2899,3,131,65,0,2899,2900,3,103,51,0,2900,2901,3,125,62,0,2901,2902,3,101,50,0,2902,690,1,0,0,0,2903,2904,3,131,65,0,2904,2905,3,103,51,0,2905,2906,3,125,62,0,2906,2907,3,101,50,0,2907,2908,3,115,57,0,2908,2909,3,127,63,0,2909,2910,3,125,62,0,2910,692,1,0,0,0,2911,2912,3,131,65,0,2912,2913,3,121,60,0,2913,2914,3,87,43,0,2914,2915,3,117,58,0,2915,2916,3,117,58,0,2916,2917,3,95,47,0,2917,2918,3,121,60,0,2918,694,1,0,0,0,2919,2920,3,133,66,0,2920,2921,3,115,57,0,2921,2922,3,121,60,0,2922,696,1,0,0,0,2923,2928,8,26,0,0,2924,2925,3,79,39,0,2925,2926,9,0,0,0,2926,2928,1,0,0,0,2927,2923,1,0,0,0,2927,2924,1,0,0,0,2928,698,1,0,0,0,2929,2934,8,27,0,0,2930,2931,3,79,39,0,2931,2932,9,0,0,0,2932,2934,1,0,0,0,2933,2929,1,0,0,0,2933,2930,1,0,0,0,2934,700,1,0,0,0,2935,2939,3,83,41,0,2936,2938,3,697,348,0,2937,2936,1,0,0,0,2938,2941,1,0,0,0,2939,2937,1,0,0,0,2939,2940,1,0,0,0,2940,2942,1,0,0,0,2941,2939,1,0,0,0,2942,2943,3,83,41,0,2943,702,1,0,0,0,2944,2948,3,81,40,0,2945,2947,3,699,349,0,2946,2945,1,0,0,0,2947,2950,1,0,0,0,2948,2946,1,0,0,0,2948,2949,1,0,0,0,2949,2951,1,0,0,0,2950,2948,1,0,0,0,2951,2952,3,81,40,0,2952,704,1,0,0,0,2953,2957,3,61,30,0,2954,2956,9,0,0,0,2955,2954,1,0,0,0,2956,2959,1,0,0,0,2957,2958,1,0,0,0,2957,2955,1,0,0,0,2958,2960,1,0,0,0,2959,2957,1,0,0,0,2960,2961,3,61,30,0,2961,2963,1,0,0,0,2962,2953,1,0,0,0,2963,2964,1,0,0,0,2964,2962,1,0,0,0,2964,2965,1,0,0,0,2965,2967,1,0,0,0,2966,2968,3,59,29,0,2967,2966,1,0,0,0,2967,2968,1,0,0,0,2968,706,1,0,0,0,2969,2973,3,701,350,0,2970,2973,3,703,351,0,2971,2973,3,705,352,0,2972,2969,1,0,0,0,2972,2970,1,0,0,0,2972,2971,1,0,0,0,2973,2984,1,0,0,0,2974,2985,3,123,61,0,2975,2985,3,127,63,0,2976,2985,3,135,67,0,2977,2985,3,105,52,0,2978,2982,3,117,58,0,2979,2983,3,125,62,0,2980,2983,3,89,44,0,2981,2983,3,129,64,0,2982,2979,1,0,0,0,2982,2980,1,0,0,0,2982,2981,1,0,0,0,2982,2983,1,0,0,0,2983,2985,1,0,0,0,2984,2974,1,0,0,0,2984,2975,1,0,0,0,2984,2976,1,0,0,0,2984,2977,1,0,0,0,2984,2978,1,0,0,0,2984,2985,1,0,0,0,2985,708,1,0,0,0,2986,2991,7,28,0,0,2987,2990,7,28,0,0,2988,2990,3,715,357,0,2989,2987,1,0,0,0,2989,2988,1,0,0,0,2990,2993,1,0,0,0,2991,2989,1,0,0,0,2991,2992,1,0,0,0,2992,710,1,0,0,0,2993,2991,1,0,0,0,2994,2995,5,92,0,0,2995,3e3,9,0,0,0,2996,2997,5,96,0,0,2997,3e3,5,96,0,0,2998,3e3,8,29,0,0,2999,2994,1,0,0,0,2999,2996,1,0,0,0,2999,2998,1,0,0,0,3e3,712,1,0,0,0,3001,3005,3,85,42,0,3002,3004,3,711,355,0,3003,3002,1,0,0,0,3004,3007,1,0,0,0,3005,3003,1,0,0,0,3005,3006,1,0,0,0,3006,3008,1,0,0,0,3007,3005,1,0,0,0,3008,3009,3,85,42,0,3009,714,1,0,0,0,3010,3011,2,48,57,0,3011,716,1,0,0,0,3012,3013,7,30,0,0,3013,718,1,0,0,0,3014,3015,5,48,0,0,3015,3017,3,133,66,0,3016,3018,3,717,358,0,3017,3016,1,0,0,0,3018,3019,1,0,0,0,3019,3017,1,0,0,0,3019,3020,1,0,0,0,3020,720,1,0,0,0,3021,3022,5,48,0,0,3022,3024,3,115,57,0,3023,3025,2,48,56,0,3024,3023,1,0,0,0,3025,3026,1,0,0,0,3026,3024,1,0,0,0,3026,3027,1,0,0,0,3027,722,1,0,0,0,3028,3029,5,48,0,0,3029,3031,3,89,44,0,3030,3032,2,48,49,0,3031,3030,1,0,0,0,3032,3033,1,0,0,0,3033,3031,1,0,0,0,3033,3034,1,0,0,0,3034,724,1,0,0,0,3035,3037,3,715,357,0,3036,3035,1,0,0,0,3037,3038,1,0,0,0,3038,3036,1,0,0,0,3038,3039,1,0,0,0,3039,726,1,0,0,0,3040,3045,3,725,362,0,3041,3045,3,719,359,0,3042,3045,3,721,360,0,3043,3045,3,723,361,0,3044,3040,1,0,0,0,3044,3041,1,0,0,0,3044,3042,1,0,0,0,3044,3043,1,0,0,0,3045,728,1,0,0,0,3046,3049,3,727,363,0,3047,3050,3,117,58,0,3048,3050,3,127,63,0,3049,3047,1,0,0,0,3049,3048,1,0,0,0,3049,3050,1,0,0,0,3050,3057,1,0,0,0,3051,3058,3,109,54,0,3052,3058,3,123,61,0,3053,3058,3,125,62,0,3054,3058,3,103,51,0,3055,3058,3,89,44,0,3056,3058,3,113,56,0,3057,3051,1,0,0,0,3057,3052,1,0,0,0,3057,3053,1,0,0,0,3057,3054,1,0,0,0,3057,3055,1,0,0,0,3057,3056,1,0,0,0,3057,3058,1,0,0,0,3058,730,1,0,0,0,3059,3062,3,95,47,0,3060,3063,3,33,16,0,3061,3063,3,35,17,0,3062,3060,1,0,0,0,3062,3061,1,0,0,0,3062,3063,1,0,0,0,3063,3064,1,0,0,0,3064,3065,3,725,362,0,3065,732,1,0,0,0,3066,3067,3,725,362,0,3067,3071,3,47,23,0,3068,3070,3,715,357,0,3069,3068,1,0,0,0,3070,3073,1,0,0,0,3071,3069,1,0,0,0,3071,3072,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3074,3076,3,731,365,0,3075,3074,1,0,0,0,3075,3076,1,0,0,0,3076,3081,1,0,0,0,3077,3078,3,725,362,0,3078,3079,3,731,365,0,3079,3081,1,0,0,0,3080,3066,1,0,0,0,3080,3077,1,0,0,0,3081,3090,1,0,0,0,3082,3091,3,97,48,0,3083,3088,3,117,58,0,3084,3085,3,97,48,0,3085,3086,7,31,0,0,3086,3089,1,0,0,0,3087,3089,3,113,56,0,3088,3084,1,0,0,0,3088,3087,1,0,0,0,3088,3089,1,0,0,0,3089,3091,1,0,0,0,3090,3082,1,0,0,0,3090,3083,1,0,0,0,3090,3091,1,0,0,0,3091,734,1,0,0,0,3092,3093,3,133,66,0,3093,3095,3,83,41,0,3094,3096,3,717,358,0,3095,3094,1,0,0,0,3096,3097,1,0,0,0,3097,3095,1,0,0,0,3097,3098,1,0,0,0,3098,3099,1,0,0,0,3099,3100,3,83,41,0,3100,736,1,0,0,0,3101,3102,7,16,0,0,3102,738,1,0,0,0,3103,3104,7,20,0,0,3104,740,1,0,0,0,3105,3106,7,4,0,0,3106,742,1,0,0,0,3107,3108,7,17,0,0,3108,744,1,0,0,0,3109,3110,7,24,0,0,3110,746,1,0,0,0,3111,3112,5,47,0,0,3112,3113,5,42,0,0,3113,3117,1,0,0,0,3114,3116,9,0,0,0,3115,3114,1,0,0,0,3116,3119,1,0,0,0,3117,3118,1,0,0,0,3117,3115,1,0,0,0,3118,3120,1,0,0,0,3119,3117,1,0,0,0,3120,3121,5,42,0,0,3121,3122,5,47,0,0,3122,748,1,0,0,0,3123,3124,5,45,0,0,3124,3125,5,45,0,0,3125,3129,1,0,0,0,3126,3128,8,32,0,0,3127,3126,1,0,0,0,3128,3131,1,0,0,0,3129,3127,1,0,0,0,3129,3130,1,0,0,0,3130,3137,1,0,0,0,3131,3129,1,0,0,0,3132,3134,5,13,0,0,3133,3135,5,10,0,0,3134,3133,1,0,0,0,3134,3135,1,0,0,0,3135,3138,1,0,0,0,3136,3138,7,33,0,0,3137,3132,1,0,0,0,3137,3136,1,0,0,0,3138,750,1,0,0,0,3139,3140,7,34,0,0,3140,3141,1,0,0,0,3141,3142,6,375,0,0,3142,752,1,0,0,0,3143,3146,3,747,373,0,3144,3146,3,749,374,0,3145,3143,1,0,0,0,3145,3144,1,0,0,0,3146,3147,1,0,0,0,3147,3148,6,376,1,0,3148,754,1,0,0,0,34,0,2927,2933,2939,2948,2957,2964,2967,2972,2982,2984,2989,2991,2999,3005,3019,3026,3033,3038,3044,3049,3057,3062,3071,3075,3080,3088,3090,3097,3117,3129,3134,3137,3145,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.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.PERCENT=22}static{this.SEMICOLON=23}static{this.DOT=24}static{this.COMMA=25}static{this.LPAREN=26}static{this.RPAREN=27}static{this.QUESTION=28}static{this.COLON=29}static{this.COMMAT=30}static{this.DOUBLE_COMMAT=31}static{this.DOLLAR=32}static{this.LBRACE_CURLY=33}static{this.RBRACE_CURLY=34}static{this.CARET=35}static{this.NAMESPACE=36}static{this.ARROW=37}static{this.RBRACE_SQUARE=38}static{this.LBRACE_SQUARE=39}static{this.ABORT=40}static{this.ACTION=41}static{this.ADD=42}static{this.AFTER=43}static{this.ALL=44}static{this.ALTER=45}static{this.ANALYZE=46}static{this.AND=47}static{this.ANSI=48}static{this.ANY=49}static{this.ARRAY=50}static{this.AS=51}static{this.ASC=52}static{this.ASSUME=53}static{this.ASYMMETRIC=54}static{this.ASYNC=55}static{this.AT=56}static{this.ATTACH=57}static{this.ATTRIBUTES=58}static{this.AUTOINCREMENT=59}static{this.AUTOMAP=60}static{this.BACKUP=61}static{this.COLLECTION=62}static{this.BEFORE=63}static{this.BEGIN=64}static{this.BERNOULLI=65}static{this.BETWEEN=66}static{this.BITCAST=67}static{this.BY=68}static{this.CALLABLE=69}static{this.CASCADE=70}static{this.CASE=71}static{this.CAST=72}static{this.CHANGEFEED=73}static{this.CHECK=74}static{this.CLASSIFIER=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=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.MANAGE=185}static{this.MATCH=186}static{this.MATCHES=187}static{this.MATCH_RECOGNIZE=188}static{this.MEASURES=189}static{this.MICROSECONDS=190}static{this.MILLISECONDS=191}static{this.MODIFY=192}static{this.NANOSECONDS=193}static{this.NATURAL=194}static{this.NEXT=195}static{this.NO=196}static{this.NOT=197}static{this.NOTNULL=198}static{this.NULL=199}static{this.NULLS=200}static{this.OBJECT=201}static{this.OF=202}static{this.OFFSET=203}static{this.OMIT=204}static{this.ON=205}static{this.ONE=206}static{this.ONLY=207}static{this.OPTION=208}static{this.OPTIONAL=209}static{this.OR=210}static{this.ORDER=211}static{this.OTHERS=212}static{this.OUTER=213}static{this.OVER=214}static{this.PARALLEL=215}static{this.PARTITION=216}static{this.PASSING=217}static{this.PASSWORD=218}static{this.PAST=219}static{this.PATTERN=220}static{this.PER=221}static{this.PERMUTE=222}static{this.PLAN=223}static{this.POOL=224}static{this.PRAGMA=225}static{this.PRECEDING=226}static{this.PRESORT=227}static{this.PRIMARY=228}static{this.PRIVILEGES=229}static{this.PROCESS=230}static{this.QUEUE=231}static{this.RAISE=232}static{this.RANGE=233}static{this.REDUCE=234}static{this.REFERENCES=235}static{this.REGEXP=236}static{this.REINDEX=237}static{this.RELEASE=238}static{this.REMOVE=239}static{this.RENAME=240}static{this.REPEATABLE=241}static{this.REPLACE=242}static{this.REPLICATION=243}static{this.RESET=244}static{this.RESOURCE=245}static{this.RESPECT=246}static{this.RESTORE=247}static{this.RESTRICT=248}static{this.RESULT=249}static{this.RETURN=250}static{this.RETURNING=251}static{this.REVERT=252}static{this.REVOKE=253}static{this.RIGHT=254}static{this.RLIKE=255}static{this.ROLLBACK=256}static{this.ROLLUP=257}static{this.ROW=258}static{this.ROWS=259}static{this.SAMPLE=260}static{this.SAVEPOINT=261}static{this.SCHEMA=262}static{this.SECONDS=263}static{this.SEEK=264}static{this.SELECT=265}static{this.SEMI=266}static{this.SET=267}static{this.SETS=268}static{this.SHOW=269}static{this.TSKIP=270}static{this.SOURCE=271}static{this.STREAM=272}static{this.STRUCT=273}static{this.SUBQUERY=274}static{this.SUBSET=275}static{this.SYMBOLS=276}static{this.SYMMETRIC=277}static{this.SYNC=278}static{this.SYSTEM=279}static{this.TABLE=280}static{this.TABLES=281}static{this.TABLESAMPLE=282}static{this.TABLESTORE=283}static{this.TAGGED=284}static{this.TEMP=285}static{this.TEMPORARY=286}static{this.THEN=287}static{this.TIES=288}static{this.TO=289}static{this.TOPIC=290}static{this.TRANSACTION=291}static{this.TRIGGER=292}static{this.TRUE=293}static{this.TUPLE=294}static{this.TYPE=295}static{this.UNBOUNDED=296}static{this.UNCONDITIONAL=297}static{this.UNION=298}static{this.UNIQUE=299}static{this.UNKNOWN=300}static{this.UNMATCHED=301}static{this.UPDATE=302}static{this.UPSERT=303}static{this.USE=304}static{this.USER=305}static{this.USING=306}static{this.VACUUM=307}static{this.VALUES=308}static{this.VARIANT=309}static{this.VIEW=310}static{this.VIRTUAL=311}static{this.WHEN=312}static{this.WHERE=313}static{this.WINDOW=314}static{this.WITH=315}static{this.WITHOUT=316}static{this.WRAPPER=317}static{this.XOR=318}static{this.STRING_VALUE=319}static{this.ID_PLAIN=320}static{this.ID_QUOTED=321}static{this.DIGITS=322}static{this.INTEGER_VALUE=323}static{this.REAL=324}static{this.BLOB=325}static{this.TQ=326}static{this.TU=327}static{this.TE=328}static{this.TR=329}static{this.TY=330}static{this.WS=331}static{this.COMMENT=332}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_family_entry=275}static{this.RULE_family_settings=276}static{this.RULE_family_settings_entry=277}static{this.RULE_family_setting_value=278}static{this.RULE_split_boundaries=279}static{this.RULE_literal_value_list=280}static{this.RULE_alter_table_alter_index_action=281}static{this.RULE_drop_table_stmt=282}static{this.RULE_create_user_stmt=283}static{this.RULE_alter_user_stmt=284}static{this.RULE_create_group_stmt=285}static{this.RULE_alter_group_stmt=286}static{this.RULE_drop_role_stmt=287}static{this.RULE_role_name=288}static{this.RULE_create_user_option=289}static{this.RULE_grant_permissions_stmt=290}static{this.RULE_revoke_permissions_stmt=291}static{this.RULE_permission_id=292}static{this.RULE_permission_name=293}static{this.RULE_permission_name_target=294}static{this.RULE_create_resource_pool_stmt=295}static{this.RULE_alter_resource_pool_stmt=296}static{this.RULE_alter_resource_pool_action=297}static{this.RULE_drop_resource_pool_stmt=298}static{this.RULE_create_resource_pool_classifier_stmt=299}static{this.RULE_alter_resource_pool_classifier_stmt=300}static{this.RULE_alter_resource_pool_classifier_action=301}static{this.RULE_drop_resource_pool_classifier_stmt=302}static{this.RULE_create_replication_stmt=303}static{this.RULE_replication_target=304}static{this.RULE_replication_settings=305}static{this.RULE_replication_settings_entry=306}static{this.RULE_alter_replication_stmt=307}static{this.RULE_alter_replication_action=308}static{this.RULE_alter_replication_set_setting=309}static{this.RULE_drop_replication_stmt=310}static{this.RULE_action_or_subquery_args=311}static{this.RULE_define_action_or_subquery_stmt=312}static{this.RULE_define_action_or_subquery_body=313}static{this.RULE_if_stmt=314}static{this.RULE_for_stmt=315}static{this.RULE_table_ref=316}static{this.RULE_table_key=317}static{this.RULE_table_arg=318}static{this.RULE_table_hints=319}static{this.RULE_table_hint=320}static{this.RULE_object_ref=321}static{this.RULE_simple_table_ref_core=322}static{this.RULE_simple_table_ref=323}static{this.RULE_into_simple_table_ref=324}static{this.RULE_delete_stmt=325}static{this.RULE_update_stmt=326}static{this.RULE_set_clause_choice=327}static{this.RULE_set_clause_list=328}static{this.RULE_set_clause=329}static{this.RULE_set_target=330}static{this.RULE_multiple_column_assignment=331}static{this.RULE_set_target_list=332}static{this.RULE_create_topic_stmt=333}static{this.RULE_create_topic_entries=334}static{this.RULE_create_topic_entry=335}static{this.RULE_with_topic_settings=336}static{this.RULE_alter_topic_stmt=337}static{this.RULE_alter_topic_action=338}static{this.RULE_alter_topic_add_consumer=339}static{this.RULE_topic_create_consumer_entry=340}static{this.RULE_alter_topic_alter_consumer=341}static{this.RULE_alter_topic_alter_consumer_entry=342}static{this.RULE_alter_topic_drop_consumer=343}static{this.RULE_topic_alter_consumer_set=344}static{this.RULE_topic_alter_consumer_reset=345}static{this.RULE_alter_topic_set_settings=346}static{this.RULE_alter_topic_reset_settings=347}static{this.RULE_drop_topic_stmt=348}static{this.RULE_topic_settings=349}static{this.RULE_topic_settings_entry=350}static{this.RULE_topic_setting_value=351}static{this.RULE_topic_consumer_with_settings=352}static{this.RULE_topic_consumer_settings=353}static{this.RULE_topic_consumer_settings_entry=354}static{this.RULE_topic_consumer_setting_value=355}static{this.RULE_topic_ref=356}static{this.RULE_topic_consumer_ref=357}static{this.RULE_null_treatment=358}static{this.RULE_filter_clause=359}static{this.RULE_window_name_or_specification=360}static{this.RULE_window_name=361}static{this.RULE_window_clause=362}static{this.RULE_window_definition_list=363}static{this.RULE_window_definition=364}static{this.RULE_new_window_name=365}static{this.RULE_window_specification=366}static{this.RULE_window_specification_details=367}static{this.RULE_existing_window_name=368}static{this.RULE_window_partition_clause=369}static{this.RULE_window_order_clause=370}static{this.RULE_window_frame_clause=371}static{this.RULE_window_frame_units=372}static{this.RULE_window_frame_extent=373}static{this.RULE_window_frame_between=374}static{this.RULE_window_frame_bound=375}static{this.RULE_window_frame_exclusion=376}static{this.RULE_use_stmt=377}static{this.RULE_subselect_stmt=378}static{this.RULE_named_nodes_stmt=379}static{this.RULE_commit_stmt=380}static{this.RULE_rollback_stmt=381}static{this.RULE_analyze_table=382}static{this.RULE_analyze_table_list=383}static{this.RULE_analyze_stmt=384}static{this.RULE_identifier=385}static{this.RULE_id=386}static{this.RULE_id_schema=387}static{this.RULE_id_expr=388}static{this.RULE_id_expr_in=389}static{this.RULE_id_window=390}static{this.RULE_id_table=391}static{this.RULE_id_without=392}static{this.RULE_id_hint=393}static{this.RULE_id_as_compat=394}static{this.RULE_an_id=395}static{this.RULE_an_id_or_type=396}static{this.RULE_an_id_schema=397}static{this.RULE_an_id_expr=398}static{this.RULE_an_id_expr_in=399}static{this.RULE_an_id_window=400}static{this.RULE_an_id_table=401}static{this.RULE_an_id_without=402}static{this.RULE_an_id_hint=403}static{this.RULE_an_id_pure=404}static{this.RULE_an_id_as_compat=405}static{this.RULE_view_name=406}static{this.RULE_opt_id_prefix=407}static{this.RULE_cluster_expr=408}static{this.RULE_id_or_type=409}static{this.RULE_opt_id_prefix_or_type=410}static{this.RULE_id_or_at=411}static{this.RULE_id_table_or_type=412}static{this.RULE_id_table_or_at=413}static{this.RULE_keyword=414}static{this.RULE_keyword_expr_uncompat=415}static{this.RULE_keyword_table_uncompat=416}static{this.RULE_keyword_select_uncompat=417}static{this.RULE_keyword_alter_uncompat=418}static{this.RULE_keyword_in_uncompat=419}static{this.RULE_keyword_window_uncompat=420}static{this.RULE_keyword_hint_uncompat=421}static{this.RULE_keyword_as_compat=422}static{this.RULE_keyword_compat=423}static{this.RULE_type_id=424}static{this.RULE_bool_value=425}static{this.RULE_real=426}static{this.RULE_integer=427}static{this.RULE_sql_query_yq=428}static{this.RULE_sql_stmt_list_yq=429}static{this.RULE_sql_stmt_yq=430}static{this.RULE_sql_stmt_core_yq=431}static{this.RULE_replication_name=432}static{this.RULE_where_expr=433}static{this.RULE_from_stmt=434}static{this.RULE_alter_table_for_autocomplete=435}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","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","DOUBLE_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","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","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","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","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","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","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","TQ","TU","TE","TR","TY","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","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","create_user_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","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","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","from_stmt","alter_table_for_autocomplete"]}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=877,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,0,this.context)){case 1:this.enterOuterAlt(t,1),this.state=872,this.sql_stmt_list();break;case 2:this.enterOuterAlt(t,2),this.state=873,this.match(e.PRAGMA),this.state=874,this.match(e.ANSI),this.state=875,this.match(e.DIGITS),this.state=876,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=882,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=879,this.match(e.SEMICOLON),this.state=884,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=885,this.sql_stmt(),this.state=894,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=887,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=886,this.match(e.SEMICOLON),this.state=889,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(23===t);this.state=891,this.sql_stmt()}this.state=896,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context)}for(this.state=900,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=897,this.match(e.SEMICOLON),this.state=902,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=903,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 ls(this.context,this.state);this.enterRule(i,4,e.RULE_ansi_sql_stmt_list);try{for(this.enterOuterAlt(i,1),this.state=908,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=905,this.match(e.SEMICOLON),this.state=910,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=911,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 cs(this.context,this.state);this.enterRule(i,6,e.RULE_lambda_body);try{for(this.enterOuterAlt(i,1),this.state=916,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=913,this.match(e.SEMICOLON),this.state=918,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=927,this.errorHandler.sync(this),t=this.tokenStream.LA(1);32===t||158===t;){this.state=919,this.lambda_stmt(),this.state=921,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=920,this.match(e.SEMICOLON),this.state=923,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(23===t);this.state=929,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}for(this.state=930,this.match(e.RETURN),this.state=931,this.expr(),this.state=935,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=932,this.match(e.SEMICOLON),this.state=937,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=940,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=938,this.named_nodes_stmt();break;case e.IMPORT:this.enterOuterAlt(t,2),this.state=939,this.import_stmt();break;default:throw new ct(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=947,this.errorHandler.sync(this),t=this.tokenStream.LA(1),129===t&&(this.state=942,this.match(e.EXPLAIN),this.state=945,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=943,this.match(e.QUERY),this.state=944,this.match(e.PLAN))),this.state=949,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=1007,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,13,this.context)){case 1:this.enterOuterAlt(t,1),this.state=951,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=952,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=953,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=954,this.create_table_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=955,this.drop_table_stmt();break;case 6:this.enterOuterAlt(t,6),this.state=956,this.use_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=957,this.into_table_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=958,this.commit_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=959,this.update_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=960,this.delete_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=961,this.rollback_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=962,this.declare_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=963,this.import_stmt();break;case 14:this.enterOuterAlt(t,14),this.state=964,this.export_stmt();break;case 15:this.enterOuterAlt(t,15),this.state=965,this.alter_table_stmt();break;case 16:this.enterOuterAlt(t,16),this.state=966,this.alter_external_table_stmt();break;case 17:this.enterOuterAlt(t,17),this.state=967,this.do_stmt();break;case 18:this.enterOuterAlt(t,18),this.state=968,this.define_action_or_subquery_stmt();break;case 19:this.enterOuterAlt(t,19),this.state=969,this.if_stmt();break;case 20:this.enterOuterAlt(t,20),this.state=970,this.for_stmt();break;case 21:this.enterOuterAlt(t,21),this.state=971,this.values_stmt();break;case 22:this.enterOuterAlt(t,22),this.state=972,this.create_user_stmt();break;case 23:this.enterOuterAlt(t,23),this.state=973,this.alter_user_stmt();break;case 24:this.enterOuterAlt(t,24),this.state=974,this.create_group_stmt();break;case 25:this.enterOuterAlt(t,25),this.state=975,this.alter_group_stmt();break;case 26:this.enterOuterAlt(t,26),this.state=976,this.drop_role_stmt();break;case 27:this.enterOuterAlt(t,27),this.state=977,this.create_object_stmt();break;case 28:this.enterOuterAlt(t,28),this.state=978,this.alter_object_stmt();break;case 29:this.enterOuterAlt(t,29),this.state=979,this.drop_object_stmt();break;case 30:this.enterOuterAlt(t,30),this.state=980,this.create_external_data_source_stmt();break;case 31:this.enterOuterAlt(t,31),this.state=981,this.alter_external_data_source_stmt();break;case 32:this.enterOuterAlt(t,32),this.state=982,this.drop_external_data_source_stmt();break;case 33:this.enterOuterAlt(t,33),this.state=983,this.create_replication_stmt();break;case 34:this.enterOuterAlt(t,34),this.state=984,this.drop_replication_stmt();break;case 35:this.enterOuterAlt(t,35),this.state=985,this.create_topic_stmt();break;case 36:this.enterOuterAlt(t,36),this.state=986,this.alter_topic_stmt();break;case 37:this.enterOuterAlt(t,37),this.state=987,this.drop_topic_stmt();break;case 38:this.enterOuterAlt(t,38),this.state=988,this.grant_permissions_stmt();break;case 39:this.enterOuterAlt(t,39),this.state=989,this.revoke_permissions_stmt();break;case 40:this.enterOuterAlt(t,40),this.state=990,this.alter_table_store_stmt();break;case 41:this.enterOuterAlt(t,41),this.state=991,this.upsert_object_stmt();break;case 42:this.enterOuterAlt(t,42),this.state=992,this.create_view_stmt();break;case 43:this.enterOuterAlt(t,43),this.state=993,this.drop_view_stmt();break;case 44:this.enterOuterAlt(t,44),this.state=994,this.alter_replication_stmt();break;case 45:this.enterOuterAlt(t,45),this.state=995,this.create_resource_pool_stmt();break;case 46:this.enterOuterAlt(t,46),this.state=996,this.alter_resource_pool_stmt();break;case 47:this.enterOuterAlt(t,47),this.state=997,this.drop_resource_pool_stmt();break;case 48:this.enterOuterAlt(t,48),this.state=998,this.create_backup_collection_stmt();break;case 49:this.enterOuterAlt(t,49),this.state=999,this.alter_backup_collection_stmt();break;case 50:this.enterOuterAlt(t,50),this.state=1e3,this.drop_backup_collection_stmt();break;case 51:this.enterOuterAlt(t,51),this.state=1001,this.analyze_stmt();break;case 52:this.enterOuterAlt(t,52),this.state=1002,this.create_resource_pool_classifier_stmt();break;case 53:this.enterOuterAlt(t,53),this.state=1003,this.alter_resource_pool_classifier_stmt();break;case 54:this.enterOuterAlt(t,54),this.state=1004,this.drop_resource_pool_classifier_stmt();break;case 55:this.enterOuterAlt(t,55),this.state=1005,this.backup_stmt();break;case 56:this.enterOuterAlt(t,56),this.state=1006,this.restore_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=1018,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)){case 1:for(this.enterOuterAlt(t,1),this.state=1009,this.or_subexpr(),this.state=1014,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1010,this.match(e.OR),this.state=1011,this.or_subexpr()),this.state=1016,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);break;case 2:this.enterOuterAlt(t,2),this.state=1017,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=1020,this.and_subexpr(),this.state=1025,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1021,this.match(e.AND),this.state=1022,this.and_subexpr()),this.state=1027,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=1028,this.xor_subexpr(),this.state=1033,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1029,this.match(e.XOR),this.state=1030,this.xor_subexpr()),this.state=1035,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=1036,this.eq_subexpr(),this.state=1038,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,18,this.context)))this.state=1037,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=1040,this.match(e.IS),this.state=1042,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1041,this.match(e.NOT)),this.state=1044,this.match(e.DISTINCT),this.state=1045,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=1098,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)){case 1:if(1===(this.enterOuterAlt(i,1),this.state=1048,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1047,this.match(e.NOT)),this.state=1050,this.match_op(),this.state=1051,this.eq_subexpr(),this.state=1054,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)))this.state=1052,this.match(e.ESCAPE),this.state=1053,this.eq_subexpr();break;case 2:if(this.enterOuterAlt(i,2),1===(this.state=1057,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1056,this.match(e.NOT)),this.state=1059,this.match(e.IN),this.state=1061,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=1060,this.match(e.COMPACT);this.state=1063,this.in_expr();break;case 3:switch(this.enterOuterAlt(i,3),this.state=1073,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)){case 1:this.state=1064,this.match(e.ISNULL);break;case 2:this.state=1065,this.match(e.NOTNULL);break;case 3:this.state=1066,this.match(e.IS),this.state=1067,this.match(e.NULL);break;case 4:this.state=1069,this.errorHandler.sync(this),t=this.tokenStream.LA(1),171===t&&(this.state=1068,this.match(e.IS)),this.state=1071,this.match(e.NOT),this.state=1072,this.match(e.NULL)}break;case 4:if(this.enterOuterAlt(i,4),1===(this.state=1076,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1075,this.match(e.NOT)),this.state=1078,this.match(e.BETWEEN),this.state=1080,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=1079,t=this.tokenStream.LA(1),54===t||277===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1082,this.eq_subexpr(),this.state=1083,this.match(e.AND),this.state=1084,this.eq_subexpr();break;case 5:this.enterOuterAlt(i,5),this.state=1094,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new ct(this);switch(this.state=1091,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1086,this.match(e.EQUALS);break;case e.EQUALS2:this.state=1087,this.match(e.EQUALS2);break;case e.NOT_EQUALS:this.state=1088,this.match(e.NOT_EQUALS);break;case e.NOT_EQUALS2:this.state=1089,this.match(e.NOT_EQUALS2);break;case e.IS:this.state=1090,this.distinct_from_op();break;default:throw new ct(this)}this.state=1093,this.eq_subexpr(),this.state=1096,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=1100,t=this.tokenStream.LA(1),145===t||156===t||181===t||186===t||236===t||255===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 bs(this.context,this.state);this.enterRule(i,28,e.RULE_eq_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1102,this.neq_subexpr(),this.state=1107,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&960;)this.state=1103,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&960?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1104,this.neq_subexpr(),this.state=1109,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 Es(this.context,this.state);this.enterRule(t,30,e.RULE_shift_right);try{this.enterOuterAlt(t,1),this.state=1110,this.match(e.GREATER),this.state=1111,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=1113,this.match(e.GREATER),this.state=1114,this.match(e.GREATER),this.state=1115,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=1117,this.match(e.QUESTION),this.state=1118,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=1120,this.bit_subexpr(),this.state=1133,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=1128,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)){case 1:this.state=1121,this.match(e.SHIFT_LEFT);break;case 2:this.state=1122,this.shift_right();break;case 3:this.state=1123,this.match(e.ROT_LEFT);break;case 4:this.state=1124,this.rot_right();break;case 5:this.state=1125,this.match(e.AMPERSAND);break;case 6:this.state=1126,this.match(e.PIPE);break;case 7:this.state=1127,this.match(e.CARET)}this.state=1130,this.bit_subexpr()}this.state=1135,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context)}switch(this.state=1144,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1136,this.double_question(),this.state=1137,this.neq_subexpr();break;case 2:this.state=1140,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1139,this.match(e.QUESTION),this.state=1142,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(28===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 Ls(this.context,this.state);this.enterRule(i,38,e.RULE_bit_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1146,this.add_subexpr(),this.state=1151,this.errorHandler.sync(this),t=this.tokenStream.LA(1);17===t||18===t;)this.state=1147,t=this.tokenStream.LA(1),17===t||18===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1148,this.add_subexpr(),this.state=1153,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 Rs(this.context,this.state);this.enterRule(i,40,e.RULE_add_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1154,this.mul_subexpr(),this.state=1159,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&7340032;)this.state=1155,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&7340032?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1156,this.mul_subexpr(),this.state=1161,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=1162,this.con_subexpr(),this.state=1167,this.errorHandler.sync(this),t=this.tokenStream.LA(1);14===t;)this.state=1163,this.match(e.DOUBLE_PIPE),this.state=1164,this.con_subexpr(),this.state=1169,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=1174,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1170,this.unary_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1171,this.unary_op(),this.state=1172,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=1176,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&917504||197===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=1190,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(t-24&-32)&&1<<t-24&32773;){switch(this.state=1186,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LBRACE_SQUARE:this.state=1178,this.key_expr();break;case e.LPAREN:this.state=1179,this.invoke_expr();break;case e.DOT:switch(this.state=1180,this.match(e.DOT),this.state=1184,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1181,this.bind_parameter();break;case e.DIGITS:this.state=1182,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.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.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.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.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.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.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.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.SOURCE: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.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=1183,this.an_id_or_type();break;default:throw new ct(this)}break;default:throw new ct(this)}this.state=1192,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}this.state=1195,this.errorHandler.sync(this),t=this.tokenStream.LA(1),76===t&&(this.state=1193,this.match(e.COLLATE),this.state=1194,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=1199,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.state=1197,this.id_expr();break;case 2:this.state=1198,this.atom_expr()}this.state=1201,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=1205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,45,this.context)){case 1:this.state=1203,this.id_expr_in();break;case 2:this.state=1204,this.in_atom_expr()}this.state=1207,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=1211,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1209,this.unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1210,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=1215,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1213,this.in_unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1214,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=1217,this.match(e.LBRACE_SQUARE),this.state=1219,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1218,this.expr_list()),this.state=1222,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1221,this.match(e.COMMA)),this.state=1224,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=1226,this.expr(),this.state=1229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=1227,this.match(e.COLON),this.state=1228,this.expr()),this.state=1239,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1231,this.match(e.COMMA),this.state=1232,this.expr(),this.state=1235,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=1233,this.match(e.COLON),this.state=1234,this.expr())),this.state=1241,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=1242,this.match(e.LBRACE_CURLY),this.state=1244,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1243,this.expr_dict_list()),this.state=1247,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1246,this.match(e.COMMA)),this.state=1249,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=1251,this.expr(),this.state=1252,this.match(e.COLON),this.state=1253,this.expr(),this.state=1261,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1254,this.match(e.COMMA),this.state=1255,this.expr(),this.state=1256,this.match(e.COLON),this.state=1257,this.expr()),this.state=1263,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=1264,this.match(e.STRUCT_OPEN),this.state=1266,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1265,this.expr_struct_list()),this.state=1269,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1268,this.match(e.COMMA)),this.state=1271,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=1290,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,59,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1273,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1274,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1275,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1276,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1277,this.exists_expr();break;case 6:this.enterOuterAlt(t,6),this.state=1278,this.case_expr();break;case 7:switch(this.enterOuterAlt(t,7),this.state=1279,this.an_id_or_type(),this.state=1280,this.match(e.NAMESPACE),this.state=1283,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.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.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.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.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.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.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.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.SOURCE: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.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=1281,this.id_or_type();break;case e.STRING_VALUE:this.state=1282,this.match(e.STRING_VALUE);break;default:throw new ct(this)}break;case 8:this.enterOuterAlt(t,8),this.state=1285,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1286,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1287,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1288,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1289,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=1312,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,61,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1292,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1293,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1294,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1295,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1296,this.case_expr();break;case 6:switch(this.enterOuterAlt(t,6),this.state=1297,this.an_id_or_type(),this.state=1298,this.match(e.NAMESPACE),this.state=1301,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.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.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.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.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.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.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.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.SOURCE: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.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=1299,this.id_or_type();break;case e.STRING_VALUE:this.state=1300,this.match(e.STRING_VALUE);break;default:throw new ct(this)}break;case 7:this.enterOuterAlt(t,7),this.state=1303,this.match(e.LPAREN),this.state=1304,this.select_stmt(),this.state=1305,this.match(e.RPAREN);break;case 8:this.enterOuterAlt(t,8),this.state=1307,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1308,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1309,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1310,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1311,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=1314,this.match(e.CAST),this.state=1315,this.match(e.LPAREN),this.state=1316,this.expr(),this.state=1317,this.match(e.AS),this.state=1318,this.type_name_or_bind(),this.state=1319,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=1321,this.match(e.BITCAST),this.state=1322,this.match(e.LPAREN),this.state=1323,this.expr(),this.state=1324,this.match(e.AS),this.state=1325,this.type_name_simple(),this.state=1326,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=1328,this.match(e.EXISTS),this.state=1329,this.match(e.LPAREN),this.state=1332,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=1330,this.select_stmt();break;case e.VALUES:this.state=1331,this.values_stmt();break;default:throw new ct(this)}this.state=1334,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=1336,this.match(e.CASE),this.state=1338,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,63,this.context)))this.state=1337,this.expr();this.state=1341,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1340,this.when_expr(),this.state=1343,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(312===t);this.state=1347,this.errorHandler.sync(this),t=this.tokenStream.LA(1),114===t&&(this.state=1345,this.match(e.ELSE),this.state=1346,this.expr()),this.state=1349,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=1351,this.smart_parenthesis(),this.state=1363,this.errorHandler.sync(this),t=this.tokenStream.LA(1),37===t)switch(this.state=1352,this.match(e.ARROW),this.state=1361,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=1353,this.match(e.LPAREN),this.state=1354,this.expr(),this.state=1355,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.state=1357,this.match(e.LBRACE_CURLY),this.state=1358,this.lambda_body(),this.state=1359,this.match(e.RBRACE_CURLY);break;default:throw new ct(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=1365,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=1370,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.JSON_VALUE:this.enterOuterAlt(t,1),this.state=1367,this.json_value();break;case e.JSON_EXISTS:this.enterOuterAlt(t,2),this.state=1368,this.json_exists();break;case e.JSON_QUERY:this.enterOuterAlt(t,3),this.state=1369,this.json_query();break;default:throw new ct(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=1372,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=1376,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.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.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.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.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.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.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.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.SOURCE: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.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=1374,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1375,this.match(e.STRING_VALUE);break;default:throw new ct(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=1378,this.expr(),this.state=1379,this.match(e.AS),this.state=1380,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=1382,this.json_variable(),this.state=1387,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1383,this.match(e.COMMA),this.state=1384,this.json_variable(),this.state=1389,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=1390,this.expr(),this.state=1391,this.match(e.COMMA),this.state=1392,this.jsonpath_spec(),this.state=1395,this.errorHandler.sync(this),t=this.tokenStream.LA(1),217===t&&(this.state=1393,this.match(e.PASSING),this.state=1394,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=1401,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ERROR:this.enterOuterAlt(t,1),this.state=1397,this.match(e.ERROR);break;case e.NULL:this.enterOuterAlt(t,2),this.state=1398,this.match(e.NULL);break;case e.DEFAULT:this.enterOuterAlt(t,3),this.state=1399,this.match(e.DEFAULT),this.state=1400,this.expr();break;default:throw new ct(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=1403,this.match(e.JSON_VALUE),this.state=1404,this.match(e.LPAREN),this.state=1405,this.json_common_args(),this.state=1408,this.errorHandler.sync(this),t=this.tokenStream.LA(1),251===t&&(this.state=1406,this.match(e.RETURNING),this.state=1407,this.type_name_simple()),this.state=1416,this.errorHandler.sync(this),t=this.tokenStream.LA(1);98===t||121===t||199===t;)this.state=1410,this.json_case_handler(),this.state=1411,this.match(e.ON),this.state=1412,t=this.tokenStream.LA(1),115===t||121===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1418,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1419,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=1421,t=this.tokenStream.LA(1),121===t||133===t||293===t||300===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1422,this.match(e.ON),this.state=1423,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=1425,this.match(e.JSON_EXISTS),this.state=1426,this.match(e.LPAREN),this.state=1427,this.json_common_args(),this.state=1429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(121===t||133===t||293===t||300===t)&&(this.state=1428,this.json_exists_handler()),this.state=1431,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=1444,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WITHOUT:this.enterOuterAlt(i,1),this.state=1433,this.match(e.WITHOUT),this.state=1435,this.errorHandler.sync(this),t=this.tokenStream.LA(1),50===t&&(this.state=1434,this.match(e.ARRAY));break;case e.WITH:this.enterOuterAlt(i,2),this.state=1437,this.match(e.WITH),this.state=1439,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(81===t||297===t)&&(this.state=1438,t=this.tokenStream.LA(1),81===t||297===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),50===t&&(this.state=1441,this.match(e.ARRAY));break;default:throw new ct(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=1452,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1446,this.match(e.ERROR);break;case 2:this.enterOuterAlt(t,2),this.state=1447,this.match(e.NULL);break;case 3:this.enterOuterAlt(t,3),this.state=1448,this.match(e.EMPTY),this.state=1449,this.match(e.ARRAY);break;case 4:this.enterOuterAlt(t,4),this.state=1450,this.match(e.EMPTY),this.state=1451,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=1454,this.match(e.JSON_QUERY),this.state=1455,this.match(e.LPAREN),this.state=1456,this.json_common_args(),this.state=1460,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(315===t||316===t)&&(this.state=1457,this.json_query_wrapper(),this.state=1458,this.match(e.WRAPPER)),this.state=1466,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=1462,this.json_query_handler(),this.state=1463,this.match(e.ON),this.state=1464,this.match(e.EMPTY);this.state=1472,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(115===t||121===t||199===t)&&(this.state=1468,this.json_query_handler(),this.state=1469,this.match(e.ON),this.state=1470,this.match(e.ERROR)),this.state=1474,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 ln(this.context,this.state);this.enterRule(i,110,e.RULE_smart_parenthesis);try{this.enterOuterAlt(i,1),this.state=1476,this.match(e.LPAREN),this.state=1478,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1477,this.named_expr_list()),this.state=1481,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1480,this.match(e.COMMA)),this.state=1483,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 cn(this.context,this.state);this.enterRule(t,112,e.RULE_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1485,this.expr(),this.state=1490,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1486,this.match(e.COMMA),this.state=1487,this.expr()),this.state=1492,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=1493,this.match(e.LPAREN),this.state=1494,this.an_id(),this.state=1499,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1495,this.match(e.COMMA),this.state=1496,this.an_id(),this.state=1501,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1502,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=1506,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=1504,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.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.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.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.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.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.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.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.SOURCE: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.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=1505,this.an_id();break;default:throw new ct(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=1508,this.match(e.LPAREN),this.state=1509,this.pure_column_or_named(),this.state=1514,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1510,this.match(e.COMMA),this.state=1511,this.pure_column_or_named(),this.state=1516,this.errorHandler.sync(this),t=this.tokenStream.LA(1);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}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=1519,this.opt_id_prefix(),this.state=1520,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=1527,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1522,this.an_id(),this.state=1523,this.match(e.DOT),this.state=1524,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=1526,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=1529,this.column_name(),this.state=1534,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1530,this.match(e.COMMA),this.state=1531,this.column_name()),this.state=1536,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);this.state=1538,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1537,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=1540,this.without_column_name(),this.state=1545,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1541,this.match(e.COMMA),this.state=1542,this.without_column_name()),this.state=1547,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);this.state=1549,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1548,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=1551,this.expr(),this.state=1554,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=1552,this.match(e.AS),this.state=1553,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=1556,this.named_expr(),this.state=1561,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1557,this.match(e.COMMA),this.state=1558,this.named_expr()),this.state=1563,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=1564,this.match(e.LPAREN),this.state=1571,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.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.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.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.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.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.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.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.SOURCE: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.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=1565,this.opt_set_quantifier(),this.state=1566,this.named_expr_list(),this.state=1568,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1567,this.match(e.COMMA));break;case e.ASTERISK:this.state=1570,this.match(e.ASTERISK);case e.RPAREN:}this.state=1573,this.match(e.RPAREN),this.state=1574,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 bn(this.context,this.state);this.enterRule(i,134,e.RULE_invoke_expr_tail);try{switch(this.enterOuterAlt(i,1),this.state=1578,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,99,this.context)){case 1:this.state=1576,this.null_treatment();break;case 2:this.state=1577,this.filter_clause()}this.state=1582,this.errorHandler.sync(this),t=this.tokenStream.LA(1),214===t&&(this.state=1580,this.match(e.OVER),this.state=1581,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 En(this.context,this.state);this.enterRule(t,136,e.RULE_using_call_expr);try{switch(this.enterOuterAlt(t,1),this.state=1592,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,101,this.context)){case 1:this.state=1584,this.an_id_or_type(),this.state=1585,this.match(e.NAMESPACE),this.state=1586,this.an_id_or_type();break;case 2:this.state=1588,this.an_id_expr();break;case 3:this.state=1589,this.bind_parameter();break;case 4:this.state=1590,this.match(e.EXTERNAL),this.state=1591,this.match(e.FUNCTION)}this.state=1594,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=1596,this.match(e.LBRACE_SQUARE),this.state=1597,this.expr(),this.state=1598,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=1600,this.match(e.WHEN),this.state=1601,this.expr(),this.state=1602,this.match(e.THEN),this.state=1603,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=1615,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1605,this.integer();break;case e.REAL:this.enterOuterAlt(t,2),this.state=1606,this.real();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=1607,this.match(e.STRING_VALUE);break;case e.BLOB:this.enterOuterAlt(t,4),this.state=1608,this.match(e.BLOB);break;case e.NULL:this.enterOuterAlt(t,5),this.state=1609,this.match(e.NULL);break;case e.CURRENT_TIME:this.enterOuterAlt(t,6),this.state=1610,this.match(e.CURRENT_TIME);break;case e.CURRENT_DATE:this.enterOuterAlt(t,7),this.state=1611,this.match(e.CURRENT_DATE);break;case e.CURRENT_TIMESTAMP:this.enterOuterAlt(t,8),this.state=1612,this.match(e.CURRENT_TIMESTAMP);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,9),this.state=1613,this.bool_value();break;case e.EMPTY_ACTION:this.enterOuterAlt(t,10),this.state=1614,this.match(e.EMPTY_ACTION);break;default:throw new ct(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 Ln(this.context,this.state);this.enterRule(t,144,e.RULE_bind_parameter);try{switch(this.enterOuterAlt(t,1),this.state=1617,this.match(e.DOLLAR),this.state=1621,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.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.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.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.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.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.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.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.SOURCE: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.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=1618,this.an_id_or_type();break;case e.TRUE:this.state=1619,this.match(e.TRUE);break;case e.FALSE:this.state=1620,this.match(e.FALSE);break;default:throw new ct(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 Rn(this.context,this.state);this.enterRule(i,146,e.RULE_opt_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1623,this.bind_parameter(),this.state=1625,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1624,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=1627,this.bind_parameter(),this.state=1632,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1628,this.match(e.COMMA),this.state=1629,this.bind_parameter(),this.state=1634,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=1635,this.bind_parameter(),this.state=1638,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=1636,this.match(e.AS),this.state=1637,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=1640,this.named_bind_parameter(),this.state=1645,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1641,this.match(e.COMMA),this.state=1642,this.named_bind_parameter(),this.state=1647,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=1649,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(17===t||18===t)&&(this.state=1648,t=this.tokenStream.LA(1),17===t||18===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1653,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.state=1651,this.integer();break;case e.REAL:this.state=1652,this.real();break;default:throw new ct(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=1655,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=1659,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1657,this.integer();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1658,this.bind_parameter();break;default:throw new ct(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=1664,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.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.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.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.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.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.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.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.SOURCE: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.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=1661,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1662,this.match(e.STRING_VALUE);break;case e.DOLLAR:this.enterOuterAlt(t,3),this.state=1663,this.bind_parameter();break;default:throw new ct(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=1666,this.type_name_tag(),this.state=1667,this.match(e.COLON),this.state=1668,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=1682,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(i,1),this.state=1670,this.type_name_tag(),this.state=1671,this.type_name_or_bind(),this.state=1676,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(197===t||199===t)&&(this.state=1673,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1672,this.match(e.NOT)),this.state=1675,this.match(e.NULL));break;case 2:this.enterOuterAlt(i,2),this.state=1678,this.type_name_or_bind(),this.state=1679,this.match(e.AS),this.state=1680,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=1687,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)))this.state=1684,this.type_name_tag(),this.state=1685,this.match(e.COLON);this.state=1689,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=1691,this.variant_arg(),this.state=1695,this.errorHandler.sync(this),t=this.tokenStream.LA(1),33===t&&(this.state=1692,this.match(e.LBRACE_CURLY),this.state=1693,this.match(e.AUTOMAP),this.state=1694,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=1697,this.callable_arg(),this.state=1702,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1698,this.match(e.COMMA),this.state=1699,this.callable_arg()),this.state=1704,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=1705,this.match(e.DECIMAL),this.state=1706,this.match(e.LPAREN),this.state=1707,this.integer_or_bind(),this.state=1708,this.match(e.COMMA),this.state=1709,this.integer_or_bind(),this.state=1710,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=1712,this.match(e.OPTIONAL),this.state=1713,this.match(e.LESS),this.state=1714,this.type_name_or_bind(),this.state=1715,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=1717,this.match(e.TUPLE),this.state=1734,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1718,this.match(e.LESS),this.state=1730,this.errorHandler.sync(this),t=this.tokenStream.LA(1),32===t||69===t||96===t||106===t||119===t||138===t||183===t||209===t||!(t-245&-32)&&1<<t-245&406847489||!(t-284&-32)&&1<<t-284&33555457||!(t-319&-32)&&1<<t-319&7){for(this.state=1719,this.type_name_or_bind(),this.state=1724,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1720,this.match(e.COMMA),this.state=1721,this.type_name_or_bind()),this.state=1726,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);this.state=1728,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1727,this.match(e.COMMA))}this.state=1732,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1733,this.match(e.NOT_EQUALS2);break;default:throw new ct(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=1736,this.match(e.STRUCT),this.state=1753,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1737,this.match(e.LESS),this.state=1749,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-32&-32)&&1<<t-32&4026531585||!(t-64&-32)&&1<<t-64&4294967263||!(t-96&-32)&&1<<t-96&4286577663||!(t-128&-32)&&1<<t-128&4294704095||!(t-160&-32)&&1<<t-160&4286578687||!(t-192&-32)&&1<<t-192&4294836223||!(t-224&-32)&&1<<t-224&4292739071||!(t-256&-32)&&1<<t-256&4026398719||!(t-288&-32)&&1<<t-288&4292870047||320===t||321===t){for(this.state=1738,this.struct_arg(),this.state=1743,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1739,this.match(e.COMMA),this.state=1740,this.struct_arg()),this.state=1745,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);this.state=1747,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1746,this.match(e.COMMA))}this.state=1751,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1752,this.match(e.NOT_EQUALS2);break;default:throw new ct(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=1755,this.match(e.VARIANT),this.state=1756,this.match(e.LESS),this.state=1757,this.variant_arg(),this.state=1762,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1758,this.match(e.COMMA),this.state=1759,this.variant_arg()),this.state=1764,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);this.state=1766,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1765,this.match(e.COMMA)),this.state=1768,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=1770,this.match(e.LIST),this.state=1771,this.match(e.LESS),this.state=1772,this.type_name_or_bind(),this.state=1773,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=1775,this.match(e.STREAM),this.state=1776,this.match(e.LESS),this.state=1777,this.type_name_or_bind(),this.state=1778,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=1780,this.match(e.FLOW),this.state=1781,this.match(e.LESS),this.state=1782,this.type_name_or_bind(),this.state=1783,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=1785,this.match(e.DICT),this.state=1786,this.match(e.LESS),this.state=1787,this.type_name_or_bind(),this.state=1788,this.match(e.COMMA),this.state=1789,this.type_name_or_bind(),this.state=1790,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=1792,this.match(e.SET),this.state=1793,this.match(e.LESS),this.state=1794,this.type_name_or_bind(),this.state=1795,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=1797,this.match(e.ENUM),this.state=1798,this.match(e.LESS),this.state=1799,this.type_name_tag(),this.state=1804,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1800,this.match(e.COMMA),this.state=1801,this.type_name_tag()),this.state=1806,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);this.state=1808,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1807,this.match(e.COMMA)),this.state=1810,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=1812,this.match(e.RESOURCE),this.state=1813,this.match(e.LESS),this.state=1814,this.type_name_tag(),this.state=1815,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=1817,this.match(e.TAGGED),this.state=1818,this.match(e.LESS),this.state=1819,this.type_name_or_bind(),this.state=1820,this.match(e.COMMA),this.state=1821,this.type_name_tag(),this.state=1822,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=1824,this.match(e.CALLABLE),this.state=1825,this.match(e.LESS),this.state=1826,this.match(e.LPAREN),this.state=1828,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-32&-32)&&1<<t-32&4026531585||!(t-64&-32)&&1<<t-64&4294967295||!(t-96&-32)&&1<<t-96&4294967295||!(t-128&-32)&&1<<t-128&4294705119||!(t-160&-32)&&1<<t-160&4294967295||!(t-192&-32)&&1<<t-192&4294967295||!(t-224&-32)&&1<<t-224&4294836223||!(t-256&-32)&&1<<t-256&4294967295||!(t-288&-32)&&1<<t-288&4294967263||320===t||321===t)&&(this.state=1827,this.callable_arg_list()),this.state=1831,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1830,this.match(e.COMMA)),this.state=1837,this.errorHandler.sync(this),t=this.tokenStream.LA(1),39===t&&(this.state=1833,this.match(e.LBRACE_SQUARE),this.state=1834,this.callable_arg_list(),this.state=1835,this.match(e.RBRACE_SQUARE)),this.state=1839,this.match(e.RPAREN),this.state=1840,this.match(e.ARROW),this.state=1841,this.type_name_or_bind(),this.state=1842,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=1857,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.OPTIONAL:this.state=1844,this.type_name_optional();break;case e.TUPLE:this.state=1845,this.type_name_tuple();break;case e.STRUCT:this.state=1846,this.type_name_struct();break;case e.VARIANT:this.state=1847,this.type_name_variant();break;case e.LIST:this.state=1848,this.type_name_list();break;case e.STREAM:this.state=1849,this.type_name_stream();break;case e.FLOW:this.state=1850,this.type_name_flow();break;case e.DICT:this.state=1851,this.type_name_dict();break;case e.SET:this.state=1852,this.type_name_set();break;case e.ENUM:this.state=1853,this.type_name_enum();break;case e.RESOURCE:this.state=1854,this.type_name_resource();break;case e.TAGGED:this.state=1855,this.type_name_tagged();break;case e.CALLABLE:this.state=1856,this.type_name_callable();break;default:throw new ct(this)}for(this.state=1862,this.errorHandler.sync(this),t=this.tokenStream.LA(1);28===t;)this.state=1859,this.match(e.QUESTION),this.state=1864,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=1876,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=1865,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=1868,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DECIMAL:this.state=1866,this.type_name_decimal();break;case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1867,this.type_name_simple();break;default:throw new ct(this)}for(this.state=1873,this.errorHandler.sync(this),t=this.tokenStream.LA(1);28===t;)this.state=1870,this.match(e.QUESTION),this.state=1875,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new ct(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=1880,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=1878,this.type_name();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1879,this.bind_parameter();break;default:throw new ct(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=1882,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=1907,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VARIANT:this.enterOuterAlt(t,1),this.state=1884,this.match(e.VARIANT),this.state=1885,this.match(e.LPAREN),this.state=1886,this.expr(),this.state=1887,this.match(e.COMMA),this.state=1888,this.expr(),this.state=1889,this.match(e.COMMA),this.state=1890,this.expr(),this.state=1891,this.match(e.RPAREN);break;case e.ENUM:this.enterOuterAlt(t,2),this.state=1893,this.match(e.ENUM),this.state=1894,this.match(e.LPAREN),this.state=1895,this.expr(),this.state=1896,this.match(e.COMMA),this.state=1897,this.expr(),this.state=1898,this.match(e.RPAREN);break;case e.CALLABLE:this.enterOuterAlt(t,3),this.state=1900,this.match(e.CALLABLE),this.state=1901,this.match(e.LPAREN),this.state=1902,this.expr(),this.state=1903,this.match(e.COMMA),this.state=1904,this.expr(),this.state=1905,this.match(e.RPAREN);break;default:throw new ct(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=1909,this.match(e.DECLARE),this.state=1910,this.bind_parameter(),this.state=1911,this.match(e.AS),this.state=1912,this.type_name(),this.state=1915,this.errorHandler.sync(this),t=this.tokenStream.LA(1),2===t&&(this.state=1913,this.match(e.EQUALS),this.state=1914,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=1918,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1917,this.match(e.DOT)),this.state=1920,this.an_id(),this.state=1925,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1921,this.match(e.DOT),this.state=1922,this.an_id(),this.state=1927,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=1928,this.match(e.IMPORT),this.state=1929,this.module_path(),this.state=1930,this.match(e.SYMBOLS),this.state=1931,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=1933,this.match(e.EXPORT),this.state=1934,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 lr(this.context,this.state);this.enterRule(i,218,e.RULE_call_action);try{switch(this.enterOuterAlt(i,1),this.state=1938,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1936,this.bind_parameter();break;case e.EMPTY_ACTION:this.state=1937,this.match(e.EMPTY_ACTION);break;default:throw new ct(this)}this.state=1940,this.match(e.LPAREN),this.state=1942,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1941,this.expr_list()),this.state=1944,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 cr(this.context,this.state);this.enterRule(t,220,e.RULE_inline_action);try{this.enterOuterAlt(t,1),this.state=1946,this.match(e.BEGIN),this.state=1947,this.define_action_or_subquery_body(),this.state=1948,this.match(e.END),this.state=1949,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=1951,this.match(e.DO),this.state=1954,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.EMPTY_ACTION:this.state=1952,this.call_action();break;case e.BEGIN:this.state=1953,this.inline_action();break;default:throw new ct(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=1956,this.match(e.PRAGMA),this.state=1957,this.opt_id_prefix_or_type(),this.state=1958,this.an_id(),this.state=1972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1959,this.match(e.EQUALS),this.state=1960,this.pragma_value();break;case e.LPAREN:for(this.state=1961,this.match(e.LPAREN),this.state=1962,this.pragma_value(),this.state=1967,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1963,this.match(e.COMMA),this.state=1964,this.pragma_value(),this.state=1969,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1970,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=1979,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=1974,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.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.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.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.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.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.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.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.SOURCE: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.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=1975,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=1976,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=1977,this.bool_value();break;case e.DOLLAR:this.enterOuterAlt(t,5),this.state=1978,this.bind_parameter();break;default:throw new ct(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=1981,this.expr(),this.state=1983,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(52===t||103===t)&&(this.state=1982,t=this.tokenStream.LA(1),52===t||103===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=1985,this.sort_specification(),this.state=1990,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1986,this.match(e.COMMA),this.state=1987,this.sort_specification(),this.state=1992,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=1993,this.select_kind_parenthesis(),this.state=1999,this.errorHandler.sync(this),t=this.tokenStream.LA(1);124===t||169===t||298===t;)this.state=1994,this.select_op(),this.state=1995,this.select_kind_parenthesis(),this.state=2001,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=2002,this.select_kind_partial(),this.state=2008,this.errorHandler.sync(this),t=this.tokenStream.LA(1);124===t||169===t||298===t;)this.state=2003,this.select_op(),this.state=2004,this.select_kind_parenthesis(),this.state=2010,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=2016,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=2011,this.select_kind_partial();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2012,this.match(e.LPAREN),this.state=2013,this.select_kind_partial(),this.state=2014,this.match(e.RPAREN);break;default:throw new ct(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=2024,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.UNION:this.enterOuterAlt(i,1),this.state=2018,this.match(e.UNION),this.state=2020,this.errorHandler.sync(this),t=this.tokenStream.LA(1),44===t&&(this.state=2019,this.match(e.ALL));break;case e.INTERSECT:this.enterOuterAlt(i,2),this.state=2022,this.match(e.INTERSECT);break;case e.EXCEPT:this.enterOuterAlt(i,3),this.state=2023,this.match(e.EXCEPT);break;default:throw new ct(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=2026,this.select_kind(),this.state=2033,this.errorHandler.sync(this),t=this.tokenStream.LA(1),182===t&&(this.state=2027,this.match(e.LIMIT),this.state=2028,this.expr(),this.state=2031,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(25===t||203===t)&&(this.state=2029,t=this.tokenStream.LA(1),25===t||203===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2030,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 br(this.context,this.state);this.enterRule(i,242,e.RULE_select_kind);try{switch(this.enterOuterAlt(i,1),this.state=2036,this.errorHandler.sync(this),t=this.tokenStream.LA(1),109===t&&(this.state=2035,this.match(e.DISCARD)),this.state=2041,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PROCESS:this.state=2038,this.process_core();break;case e.REDUCE:this.state=2039,this.reduce_core();break;case e.FROM:case e.SELECT:this.state=2040,this.select_core();break;default:throw new ct(this)}this.state=2046,this.errorHandler.sync(this),t=this.tokenStream.LA(1),170===t&&(this.state=2043,this.match(e.INTO),this.state=2044,this.match(e.RESULT),this.state=2045,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 Er(this.context,this.state);this.enterRule(i,244,e.RULE_process_core);try{if(this.enterOuterAlt(i,1),1===(this.state=2048,this.match(e.PROCESS),this.state=2050,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,161,this.context)))this.state=2049,this.match(e.STREAM);for(this.state=2052,this.named_single_source(),this.state=2057,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2053,this.match(e.COMMA),this.state=2054,this.named_single_source(),this.state=2059,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2081,this.errorHandler.sync(this),t=this.tokenStream.LA(1),306===t&&(this.state=2060,this.match(e.USING),this.state=2061,this.using_call_expr(),this.state=2064,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2062,this.match(e.AS),this.state=2063,this.an_id()),this.state=2068,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2066,this.match(e.WITH),this.state=2067,this.external_call_settings()),this.state=2071,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2070,this.where_expr()),this.state=2075,this.errorHandler.sync(this),t=this.tokenStream.LA(1),152===t&&(this.state=2073,this.match(e.HAVING),this.state=2074,this.expr()),this.state=2079,this.errorHandler.sync(this),t=this.tokenStream.LA(1),53===t&&(this.state=2077,this.match(e.ASSUME),this.state=2078,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=2083,this.an_id(),this.state=2084,this.match(e.EQUALS),this.state=2085,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=2087,this.external_call_param(),this.state=2092,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2088,this.match(e.COMMA),this.state=2089,this.external_call_param(),this.state=2094,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=2095,this.match(e.REDUCE),this.state=2096,this.named_single_source(),this.state=2101,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2097,this.match(e.COMMA),this.state=2098,this.named_single_source(),this.state=2103,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(1===(this.state=2106,this.errorHandler.sync(this),t=this.tokenStream.LA(1),227===t&&(this.state=2104,this.match(e.PRESORT),this.state=2105,this.sort_specification_list()),this.state=2108,this.match(e.ON),this.state=2109,this.column_list(),this.state=2110,this.match(e.USING),this.state=2112,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=2111,this.match(e.ALL);this.state=2114,this.using_call_expr(),this.state=2117,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2115,this.match(e.AS),this.state=2116,this.an_id()),this.state=2120,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2119,this.where_expr()),this.state=2124,this.errorHandler.sync(this),t=this.tokenStream.LA(1),152===t&&(this.state=2122,this.match(e.HAVING),this.state=2123,this.expr()),this.state=2128,this.errorHandler.sync(this),t=this.tokenStream.LA(1),53===t&&(this.state=2126,this.match(e.ASSUME),this.state=2127,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 Lr(this.context,this.state);this.enterRule(i,252,e.RULE_opt_set_quantifier);try{if(1===(this.enterOuterAlt(i,1),this.state=2131,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,177,this.context)))this.state=2130,t=this.tokenStream.LA(1),44===t||110===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 Rr(this.context,this.state);this.enterRule(i,254,e.RULE_select_core);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=2134,this.errorHandler.sync(this),t=this.tokenStream.LA(1),142===t&&(this.state=2133,this.from_stmt()),this.state=2136,this.match(e.SELECT),this.state=2138,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)))this.state=2137,this.match(e.STREAM);for(this.state=2140,this.opt_set_quantifier(),this.state=2141,this.result_column(),this.state=2146,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2142,this.match(e.COMMA),this.state=2143,this.result_column()),this.state=2148,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);this.state=2150,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2149,this.match(e.COMMA)),this.state=2154,this.errorHandler.sync(this),t=this.tokenStream.LA(1),316===t&&(this.state=2152,this.match(e.WITHOUT),this.state=2153,this.without_column_list()),this.state=2157,this.errorHandler.sync(this),t=this.tokenStream.LA(1),142===t&&(this.state=2156,this.from_stmt()),this.state=2160,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2159,this.where_expr()),this.state=2163,this.errorHandler.sync(this),t=this.tokenStream.LA(1),148===t&&(this.state=2162,this.group_by_clause()),this.state=2167,this.errorHandler.sync(this),t=this.tokenStream.LA(1),152===t&&(this.state=2165,this.match(e.HAVING),this.state=2166,this.expr()),this.state=2170,this.errorHandler.sync(this),t=this.tokenStream.LA(1),314===t&&(this.state=2169,this.window_clause()),this.state=2173,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(53===t||211===t)&&(this.state=2172,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=2175,this.match(e.MATCH_RECOGNIZE),this.state=2176,this.match(e.LPAREN),this.state=2178,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=2177,this.window_partition_clause()),this.state=2181,this.errorHandler.sync(this),t=this.tokenStream.LA(1),211===t&&(this.state=2180,this.order_by_clause()),this.state=2184,this.errorHandler.sync(this),t=this.tokenStream.LA(1),189===t&&(this.state=2183,this.row_pattern_measures()),this.state=2187,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(44===t||206===t)&&(this.state=2186,this.row_pattern_rows_per_match()),this.state=2189,this.row_pattern_common_syntax(),this.state=2190,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=2203,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ONE:this.enterOuterAlt(i,1),this.state=2192,this.match(e.ONE),this.state=2193,this.match(e.ROW),this.state=2194,this.match(e.PER),this.state=2195,this.match(e.MATCH);break;case e.ALL:this.enterOuterAlt(i,2),this.state=2196,this.match(e.ALL),this.state=2197,this.match(e.ROWS),this.state=2198,this.match(e.PER),this.state=2199,this.match(e.MATCH),this.state=2201,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(204===t||269===t||315===t)&&(this.state=2200,this.row_pattern_empty_match_handling());break;default:throw new ct(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=2214,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SHOW:this.enterOuterAlt(t,1),this.state=2205,this.match(e.SHOW),this.state=2206,this.match(e.EMPTY),this.state=2207,this.match(e.MATCHES);break;case e.OMIT:this.enterOuterAlt(t,2),this.state=2208,this.match(e.OMIT),this.state=2209,this.match(e.EMPTY),this.state=2210,this.match(e.MATCHES);break;case e.WITH:this.enterOuterAlt(t,3),this.state=2211,this.match(e.WITH),this.state=2212,this.match(e.UNMATCHED),this.state=2213,this.match(e.ROWS);break;default:throw new ct(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=2216,this.match(e.MEASURES),this.state=2217,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=2219,this.row_pattern_measure_definition(),this.state=2224,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2220,this.match(e.COMMA),this.state=2221,this.row_pattern_measure_definition(),this.state=2226,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=2227,this.expr(),this.state=2228,this.match(e.AS),this.state=2229,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=2234,this.errorHandler.sync(this),t=this.tokenStream.LA(1),43===t&&(this.state=2231,this.match(e.AFTER),this.state=2232,this.match(e.MATCH),this.state=2233,this.row_pattern_skip_to()),this.state=2237,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(164===t||264===t)&&(this.state=2236,this.row_pattern_initial_or_seek()),this.state=2239,this.match(e.PATTERN),this.state=2240,this.match(e.LPAREN),this.state=2241,this.row_pattern(),this.state=2242,this.match(e.RPAREN),this.state=2244,this.errorHandler.sync(this),t=this.tokenStream.LA(1),275===t&&(this.state=2243,this.row_pattern_subset_clause()),this.state=2246,this.match(e.DEFINE),this.state=2247,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=2268,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2249,this.match(e.TSKIP),this.state=2250,this.match(e.TO),this.state=2251,this.match(e.NEXT),this.state=2252,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=2253,this.match(e.TSKIP),this.state=2254,this.match(e.PAST),this.state=2255,this.match(e.LAST),this.state=2256,this.match(e.ROW);break;case 3:this.enterOuterAlt(t,3),this.state=2257,this.match(e.TSKIP),this.state=2258,this.match(e.TO),this.state=2259,this.match(e.FIRST),this.state=2260,this.row_pattern_skip_to_variable_name();break;case 4:this.enterOuterAlt(t,4),this.state=2261,this.match(e.TSKIP),this.state=2262,this.match(e.TO),this.state=2263,this.match(e.LAST),this.state=2264,this.row_pattern_skip_to_variable_name();break;case 5:this.enterOuterAlt(t,5),this.state=2265,this.match(e.TSKIP),this.state=2266,this.match(e.TO),this.state=2267,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=2270,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=2272,t=this.tokenStream.LA(1),164===t||264===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=2274,this.row_pattern_term(),this.state=2279,this.errorHandler.sync(this),t=this.tokenStream.LA(1);13===t;)this.state=2275,this.match(e.PIPE),this.state=2276,this.row_pattern_term(),this.state=2281,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=2283,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=2282,this.row_pattern_factor(),this.state=2285,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(!(t-26&-32)&&1<<t-26&705||222===t||320===t||321===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=2287,this.row_pattern_primary(),this.state=2289,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=2288,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=2319,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.enterOuterAlt(i,1),this.state=2291,this.match(e.ASTERISK),this.state=2293,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=2292,this.match(e.QUESTION));break;case 2:this.enterOuterAlt(i,2),this.state=2295,this.match(e.PLUS),this.state=2297,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=2296,this.match(e.QUESTION));break;case 3:this.enterOuterAlt(i,3),this.state=2299,this.match(e.QUESTION),this.state=2301,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=2300,this.match(e.QUESTION));break;case 4:this.enterOuterAlt(i,4),this.state=2303,this.match(e.LBRACE_CURLY),this.state=2305,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(322===t||323===t)&&(this.state=2304,this.integer()),this.state=2307,this.match(e.COMMA),this.state=2309,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(322===t||323===t)&&(this.state=2308,this.integer()),this.state=2311,this.match(e.RBRACE_CURLY),this.state=2313,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=2312,this.match(e.QUESTION));break;case 5:this.enterOuterAlt(i,5),this.state=2315,this.match(e.LBRACE_CURLY),this.state=2316,this.integer(),this.state=2317,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=2336,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2321,this.row_pattern_primary_variable_name();break;case e.DOLLAR:this.enterOuterAlt(i,2),this.state=2322,this.match(e.DOLLAR);break;case e.CARET:this.enterOuterAlt(i,3),this.state=2323,this.match(e.CARET);break;case e.LPAREN:this.enterOuterAlt(i,4),this.state=2324,this.match(e.LPAREN),this.state=2326,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-26&-32)&&1<<t-26&705||222===t||320===t||321===t)&&(this.state=2325,this.row_pattern()),this.state=2328,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.enterOuterAlt(i,5),this.state=2329,this.match(e.LBRACE_CURLY),this.state=2330,this.match(e.MINUS),this.state=2331,this.row_pattern(),this.state=2332,this.match(e.MINUS),this.state=2333,this.match(e.RBRACE_CURLY);break;case e.PERMUTE:this.enterOuterAlt(i,6),this.state=2335,this.row_pattern_permute();break;default:throw new ct(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=2338,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=2340,this.match(e.PERMUTE),this.state=2341,this.match(e.LPAREN),this.state=2342,this.row_pattern(),this.state=2347,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2343,this.match(e.COMMA),this.state=2344,this.row_pattern(),this.state=2349,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2350,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=2352,this.match(e.SUBSET),this.state=2353,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=2355,this.row_pattern_subset_item(),this.state=2360,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2356,this.match(e.COMMA),this.state=2357,this.row_pattern_subset_item(),this.state=2362,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=2363,this.row_pattern_subset_item_variable_name(),this.state=2364,this.match(e.EQUALS),this.state=2365,this.match(e.LPAREN),this.state=2366,this.row_pattern_subset_rhs(),this.state=2367,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=2369,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=2371,this.row_pattern_subset_rhs_variable_name(),this.state=2376,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2372,this.match(e.COMMA),this.state=2373,this.row_pattern_subset_rhs_variable_name(),this.state=2378,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=2379,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=2381,this.row_pattern_definition(),this.state=2386,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2382,this.match(e.COMMA),this.state=2383,this.row_pattern_definition(),this.state=2388,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=2389,this.row_pattern_definition_variable_name(),this.state=2390,this.match(e.AS),this.state=2391,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=2393,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=2395,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=2397,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=2399,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=2401,this.match(e.ORDER),this.state=2402,this.match(e.BY),this.state=2403,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=2406,this.errorHandler.sync(this),t=this.tokenStream.LA(1),53===t&&(this.state=2405,this.match(e.ASSUME)),this.state=2408,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=2410,this.match(e.GROUP),this.state=2412,this.errorHandler.sync(this),t=this.tokenStream.LA(1),80===t&&(this.state=2411,this.match(e.COMPACT)),this.state=2414,this.match(e.BY),this.state=2415,this.opt_set_quantifier(),this.state=2416,this.grouping_element_list(),this.state=2419,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2417,this.match(e.WITH),this.state=2418,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=2421,this.grouping_element(),this.state=2426,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2422,this.match(e.COMMA),this.state=2423,this.grouping_element(),this.state=2428,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=2434,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2429,this.ordinary_grouping_set();break;case 2:this.enterOuterAlt(t,2),this.state=2430,this.rollup_list();break;case 3:this.enterOuterAlt(t,3),this.state=2431,this.cube_list();break;case 4:this.enterOuterAlt(t,4),this.state=2432,this.grouping_sets_specification();break;case 5:this.enterOuterAlt(t,5),this.state=2433,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=2436,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 lo(this.context,this.state);this.enterRule(i,326,e.RULE_ordinary_grouping_set_list);try{for(this.enterOuterAlt(i,1),this.state=2438,this.ordinary_grouping_set(),this.state=2443,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2439,this.match(e.COMMA),this.state=2440,this.ordinary_grouping_set(),this.state=2445,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 co(this.context,this.state);this.enterRule(t,328,e.RULE_rollup_list);try{this.enterOuterAlt(t,1),this.state=2446,this.match(e.ROLLUP),this.state=2447,this.match(e.LPAREN),this.state=2448,this.ordinary_grouping_set_list(),this.state=2449,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=2451,this.match(e.CUBE),this.state=2452,this.match(e.LPAREN),this.state=2453,this.ordinary_grouping_set_list(),this.state=2454,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=2456,this.match(e.GROUPING),this.state=2457,this.match(e.SETS),this.state=2458,this.match(e.LPAREN),this.state=2459,this.grouping_element_list(),this.state=2460,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=2462,this.match(e.HOP),this.state=2463,this.match(e.LPAREN),this.state=2464,this.expr(),this.state=2465,this.match(e.COMMA),this.state=2466,this.expr(),this.state=2467,this.match(e.COMMA),this.state=2468,this.expr(),this.state=2469,this.match(e.COMMA),this.state=2470,this.expr(),this.state=2471,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=2482,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2473,this.opt_id_prefix(),this.state=2474,this.match(e.ASTERISK);break;case 2:switch(this.enterOuterAlt(t,2),this.state=2476,this.expr(),this.state=2480,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,223,this.context)){case 1:this.state=2477,this.match(e.AS),this.state=2478,this.an_id_or_type();break;case 2:this.state=2479,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=2485,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)))this.state=2484,this.match(e.ANY);for(this.state=2487,this.flatten_source(),this.state=2498,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t||88===t||126===t||143===t||!(t-166&-32)&&1<<t-166&268443777||213===t||254===t;){if(1===(this.state=2488,this.join_op(),this.state=2490,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=2489,this.match(e.ANY);this.state=2492,this.flatten_source(),this.state=2494,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(205===t||306===t)&&(this.state=2493,this.join_constraint()),this.state=2500,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=2501,this.column_name(),this.state=2504,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2502,this.match(e.AS),this.state=2503,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=2514,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.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.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.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.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.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.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.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.SOURCE: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.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=2506,this.named_column();break;case e.LPAREN:this.enterOuterAlt(i,2),this.state=2507,this.match(e.LPAREN),this.state=2508,this.named_expr_list(),this.state=2510,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2509,this.match(e.COMMA)),this.state=2512,this.match(e.RPAREN);break;default:throw new ct(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=2516,this.named_single_source(),this.state=2526,this.errorHandler.sync(this),t=this.tokenStream.LA(1),137===t)switch(this.state=2517,this.match(e.FLATTEN),this.state=2524,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.BY:case e.DICT:case e.LIST:case e.OPTIONAL:this.state=2519,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(106===t||183===t||209===t)&&(this.state=2518,t=this.tokenStream.LA(1),106===t||183===t||209===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2521,this.match(e.BY),this.state=2522,this.flatten_by_arg();break;case e.COLUMNS:this.state=2523,this.match(e.COLUMNS);break;default:throw new ct(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=2528,this.single_source(),this.state=2530,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)))this.state=2529,this.row_pattern_recognition_clause();if(1===(this.state=2540,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,238,this.context))){switch(this.state=2535,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.AS:this.state=2532,this.match(e.AS),this.state=2533,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.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.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.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.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.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.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.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.SOURCE: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.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=2534,this.an_id_as_compat();break;default:throw new ct(this)}this.state=2538,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t&&(this.state=2537,this.pure_column_list())}switch(this.state=2544,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SAMPLE:this.state=2542,this.sample_clause();break;case e.TABLESAMPLE:this.state=2543,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 bo(this.context,this.state);this.enterRule(t,348,e.RULE_single_source);try{switch(this.state=2555,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,240,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2546,this.table_ref();break;case 2:this.enterOuterAlt(t,2),this.state=2547,this.match(e.LPAREN),this.state=2548,this.select_stmt(),this.state=2549,this.match(e.RPAREN);break;case 3:this.enterOuterAlt(t,3),this.state=2551,this.match(e.LPAREN),this.state=2552,this.values_stmt(),this.state=2553,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 Eo(this.context,this.state);this.enterRule(t,350,e.RULE_sample_clause);try{this.enterOuterAlt(t,1),this.state=2557,this.match(e.SAMPLE),this.state=2558,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=2560,this.match(e.TABLESAMPLE),this.state=2561,this.sampling_mode(),this.state=2562,this.match(e.LPAREN),this.state=2563,this.expr(),this.state=2564,this.match(e.RPAREN),this.state=2566,this.errorHandler.sync(this),t=this.tokenStream.LA(1),241===t&&(this.state=2565,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=2568,t=this.tokenStream.LA(1),65===t||279===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=2570,this.match(e.REPEATABLE),this.state=2571,this.match(e.LPAREN),this.state=2572,this.expr(),this.state=2573,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 Lo(this.context,this.state);this.enterRule(i,358,e.RULE_join_op);try{switch(this.state=2599,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.COMMA:this.enterOuterAlt(i,1),this.state=2575,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=2577,this.errorHandler.sync(this),t=this.tokenStream.LA(1),194===t&&(this.state=2576,this.match(e.NATURAL)),this.state=2596,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=2589,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LEFT:this.state=2579,this.match(e.LEFT),this.state=2581,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(207===t||266===t)&&(this.state=2580,t=this.tokenStream.LA(1),207===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.RIGHT:this.state=2583,this.match(e.RIGHT),this.state=2585,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(207===t||266===t)&&(this.state=2584,t=this.tokenStream.LA(1),207===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.EXCLUSION:this.state=2587,this.match(e.EXCLUSION);break;case e.FULL:this.state=2588,this.match(e.FULL);case e.JOIN:case e.OUTER:}this.state=2592,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=2591,this.match(e.OUTER));break;case e.INNER:this.state=2594,this.match(e.INNER);break;case e.CROSS:this.state=2595,this.match(e.CROSS);break;default:throw new ct(this)}this.state=2598,this.match(e.JOIN);break;default:throw new ct(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 Ro(this.context,this.state);this.enterRule(t,360,e.RULE_join_constraint);try{switch(this.state=2605,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ON:this.enterOuterAlt(t,1),this.state=2601,this.match(e.ON),this.state=2602,this.expr();break;case e.USING:this.enterOuterAlt(t,2),this.state=2603,this.match(e.USING),this.state=2604,this.pure_column_or_named_list();break;default:throw new ct(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=2607,this.match(e.RETURNING),this.state=2617,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ASTERISK:this.state=2608,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.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.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.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.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.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.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.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.SOURCE: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.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=2609,this.an_id(),this.state=2614,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2610,this.match(e.COMMA),this.state=2611,this.an_id(),this.state=2616,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new ct(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=2631,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=2619,this.match(e.INSERT);break;case 2:this.state=2620,this.match(e.INSERT),this.state=2621,this.match(e.OR),this.state=2622,this.match(e.ABORT);break;case 3:this.state=2623,this.match(e.INSERT),this.state=2624,this.match(e.OR),this.state=2625,this.match(e.REVERT);break;case 4:this.state=2626,this.match(e.INSERT),this.state=2627,this.match(e.OR),this.state=2628,this.match(e.IGNORE);break;case 5:this.state=2629,this.match(e.UPSERT);break;case 6:this.state=2630,this.match(e.REPLACE)}this.state=2633,this.match(e.INTO),this.state=2634,this.into_simple_table_ref(),this.state=2635,this.into_values_source(),this.state=2637,this.errorHandler.sync(this),t=this.tokenStream.LA(1),251===t&&(this.state=2636,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=2650,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,254,this.context)){case 1:this.state=2639,this.match(e.INSERT);break;case 2:this.state=2640,this.match(e.INSERT),this.state=2641,this.match(e.OR),this.state=2642,this.match(e.ABORT);break;case 3:this.state=2643,this.match(e.INSERT),this.state=2644,this.match(e.OR),this.state=2645,this.match(e.REVERT);break;case 4:this.state=2646,this.match(e.INSERT),this.state=2647,this.match(e.OR),this.state=2648,this.match(e.IGNORE);break;case 5:this.state=2649,this.match(e.REPLACE)}this.state=2652,this.match(e.INTO),this.state=2653,this.into_simple_table_ref(),this.state=2654,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=2662,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=2657,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)))this.state=2656,this.pure_column_list();this.state=2659,this.values_source();break;case e.DEFAULT:this.enterOuterAlt(t,2),this.state=2660,this.match(e.DEFAULT),this.state=2661,this.match(e.VALUES);break;default:throw new ct(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=2664,this.match(e.VALUES),this.state=2665,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=2669,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VALUES:this.enterOuterAlt(t,1),this.state=2667,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=2668,this.select_stmt();break;default:throw new ct(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=2671,this.values_source_row(),this.state=2676,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2672,this.match(e.COMMA),this.state=2673,this.values_source_row(),this.state=2678,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=2679,this.match(e.LPAREN),this.state=2680,this.expr_list(),this.state=2681,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=2685,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2683,this.expr_list();break;case 2:this.enterOuterAlt(t,2),this.state=2684,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=2687,this.match(e.CREATE),this.state=2690,this.errorHandler.sync(this),t=this.tokenStream.LA(1),210===t&&(this.state=2688,this.match(e.OR),this.state=2689,this.match(e.REPLACE)),this.state=2692,this.match(e.EXTERNAL),this.state=2693,this.match(e.DATA),this.state=2694,this.match(e.SOURCE),this.state=2698,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,261,this.context)))this.state=2695,this.match(e.IF),this.state=2696,this.match(e.NOT),this.state=2697,this.match(e.EXISTS);this.state=2700,this.object_ref(),this.state=2701,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=2703,this.match(e.ALTER),this.state=2704,this.match(e.EXTERNAL),this.state=2705,this.match(e.DATA),this.state=2706,this.match(e.SOURCE),this.state=2707,this.object_ref(),this.state=2708,this.alter_external_data_source_action(),this.state=2713,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2709,this.match(e.COMMA),this.state=2710,this.alter_external_data_source_action(),this.state=2715,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=2719,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2716,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=2717,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=2718,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=2721,this.match(e.DROP),this.state=2722,this.match(e.EXTERNAL),this.state=2723,this.match(e.DATA),this.state=2724,this.match(e.SOURCE),this.state=2727,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2725,this.match(e.IF),this.state=2726,this.match(e.EXISTS);this.state=2729,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=2731,this.match(e.CREATE),this.state=2732,this.match(e.VIEW),this.state=2736,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,265,this.context)))this.state=2733,this.match(e.IF),this.state=2734,this.match(e.NOT),this.state=2735,this.match(e.EXISTS);this.state=2738,this.object_ref(),this.state=2740,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2739,this.create_object_features()),this.state=2742,this.match(e.AS),this.state=2743,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=2745,this.match(e.DROP),this.state=2746,this.match(e.VIEW),this.state=2749,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,267,this.context)))this.state=2747,this.match(e.IF),this.state=2748,this.match(e.EXISTS);this.state=2751,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=2753,this.match(e.UPSERT),this.state=2754,this.match(e.OBJECT),this.state=2755,this.object_ref(),this.state=2756,this.match(e.LPAREN),this.state=2757,this.match(e.TYPE),this.state=2758,this.object_type_ref(),this.state=2759,this.match(e.RPAREN),this.state=2761,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2760,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=2763,this.match(e.CREATE),this.state=2764,this.match(e.OBJECT),this.state=2768,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,269,this.context)))this.state=2765,this.match(e.IF),this.state=2766,this.match(e.NOT),this.state=2767,this.match(e.EXISTS);this.state=2770,this.object_ref(),this.state=2771,this.match(e.LPAREN),this.state=2772,this.match(e.TYPE),this.state=2773,this.object_type_ref(),this.state=2774,this.match(e.RPAREN),this.state=2776,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2775,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=2778,this.match(e.WITH),this.state=2779,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=2781,this.match(e.ALTER),this.state=2782,this.match(e.OBJECT),this.state=2783,this.object_ref(),this.state=2784,this.match(e.LPAREN),this.state=2785,this.match(e.TYPE),this.state=2786,this.object_type_ref(),this.state=2787,this.match(e.RPAREN),this.state=2788,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=2790,this.match(e.SET),this.state=2791,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=2793,this.match(e.DROP),this.state=2794,this.match(e.OBJECT),this.state=2797,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)))this.state=2795,this.match(e.IF),this.state=2796,this.match(e.EXISTS);this.state=2799,this.object_ref(),this.state=2800,this.match(e.LPAREN),this.state=2801,this.match(e.TYPE),this.state=2802,this.object_type_ref(),this.state=2803,this.match(e.RPAREN),this.state=2805,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2804,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=2807,this.match(e.WITH),this.state=2808,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=2814,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.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.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.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.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.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.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.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.SOURCE: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.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=2810,this.id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=2811,this.bind_parameter();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2812,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2813,this.bool_value();break;default:throw new ct(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=2816,this.an_id_or_type(),this.state=2817,this.match(e.EQUALS),this.state=2818,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=2820,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=2824,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2822,this.object_feature_kv();break;case 2:this.enterOuterAlt(t,2),this.state=2823,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=2838,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.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.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.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.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.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.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.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.SOURCE: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.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=2826,this.object_feature();break;case e.LPAREN:for(this.enterOuterAlt(i,2),this.state=2827,this.match(e.LPAREN),this.state=2828,this.object_feature(),this.state=2833,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2829,this.match(e.COMMA),this.state=2830,this.object_feature(),this.state=2835,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2836,this.match(e.RPAREN);break;default:throw new ct(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=2840,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=2842,this.match(e.CREATE),this.state=2845,this.errorHandler.sync(this),t=this.tokenStream.LA(1),210===t&&(this.state=2843,this.match(e.OR),this.state=2844,this.match(e.REPLACE)),this.state=2855,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=2847,this.match(e.TABLE);break;case e.TABLESTORE:this.state=2848,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=2849,this.match(e.EXTERNAL),this.state=2850,this.match(e.TABLE);break;case e.TEMP:this.state=2851,this.match(e.TEMP),this.state=2852,this.match(e.TABLE);break;case e.TEMPORARY:this.state=2853,this.match(e.TEMPORARY),this.state=2854,this.match(e.TABLE);break;default:throw new ct(this)}if(1===(this.state=2860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,279,this.context)))this.state=2857,this.match(e.IF),this.state=2858,this.match(e.NOT),this.state=2859,this.match(e.EXISTS);for(this.state=2862,this.simple_table_ref(),this.state=2863,this.match(e.LPAREN),this.state=2864,this.create_table_entry(),this.state=2869,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2865,this.match(e.COMMA),this.state=2866,this.create_table_entry()),this.state=2871,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);this.state=2873,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2872,this.match(e.COMMA)),this.state=2875,this.match(e.RPAREN),this.state=2877,this.errorHandler.sync(this),t=this.tokenStream.LA(1),163===t&&(this.state=2876,this.table_inherits()),this.state=2880,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=2879,this.table_partition_by()),this.state=2883,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2882,this.with_table_settings()),this.state=2886,this.errorHandler.sync(this),t=this.tokenStream.LA(1),283===t&&(this.state=2885,this.table_tablestore()),this.state=2889,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2888,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=2897,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,287,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2891,this.column_schema();break;case 2:this.enterOuterAlt(t,2),this.state=2892,this.table_constraint();break;case 3:this.enterOuterAlt(t,3),this.state=2893,this.table_index();break;case 4:this.enterOuterAlt(t,4),this.state=2894,this.family_entry();break;case 5:this.enterOuterAlt(t,5),this.state=2895,this.changefeed();break;case 6:this.enterOuterAlt(t,6),this.state=2896,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=2899,this.match(e.CREATE),this.state=2900,this.backup_collection(),this.state=2902,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(26===t||95===t)&&(this.state=2901,this.create_backup_collection_entries()),this.state=2904,this.match(e.WITH),this.state=2905,this.match(e.LPAREN),this.state=2906,this.backup_collection_settings(),this.state=2907,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=2909,this.match(e.ALTER),this.state=2910,this.backup_collection(),this.state=2913,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESET:case e.SET:this.state=2911,this.alter_backup_collection_actions();break;case e.ADD:case e.DROP:this.state=2912,this.alter_backup_collection_entries();break;default:throw new ct(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=2915,this.match(e.DROP),this.state=2916,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=2920,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DATABASE:this.enterOuterAlt(t,1),this.state=2918,this.match(e.DATABASE);break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2919,this.create_backup_collection_entries_many();break;default:throw new ct(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=2922,this.match(e.LPAREN),this.state=2923,this.table_list(),this.state=2924,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 la(this.context,this.state);this.enterRule(i,432,e.RULE_table_list);try{for(this.enterOuterAlt(i,1),this.state=2926,this.match(e.TABLE),this.state=2927,this.an_id_table(),this.state=2933,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2928,this.match(e.COMMA),this.state=2929,this.match(e.TABLE),this.state=2930,this.an_id_table(),this.state=2935,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 ca(this.context,this.state);this.enterRule(i,434,e.RULE_alter_backup_collection_actions);try{for(this.enterOuterAlt(i,1),this.state=2936,this.alter_backup_collection_action(),this.state=2941,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2937,this.match(e.COMMA),this.state=2938,this.alter_backup_collection_action(),this.state=2943,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=2946,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=2944,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=2945,this.alter_table_reset_table_setting();break;default:throw new ct(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=2948,this.alter_backup_collection_entry(),this.state=2953,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2949,this.match(e.COMMA),this.state=2950,this.alter_backup_collection_entry(),this.state=2955,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=2966,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,295,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2956,this.match(e.ADD),this.state=2957,this.match(e.DATABASE);break;case 2:this.enterOuterAlt(t,2),this.state=2958,this.match(e.DROP),this.state=2959,this.match(e.DATABASE);break;case 3:this.enterOuterAlt(t,3),this.state=2960,this.match(e.ADD),this.state=2961,this.match(e.TABLE),this.state=2962,this.an_id_table();break;case 4:this.enterOuterAlt(t,4),this.state=2963,this.match(e.DROP),this.state=2964,this.match(e.TABLE),this.state=2965,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=2968,this.match(e.BACKUP),this.state=2969,this.match(e.COLLECTION),this.state=2970,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=2972,this.backup_collection_settings_entry(),this.state=2977,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2973,this.match(e.COMMA),this.state=2974,this.backup_collection_settings_entry(),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}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=2980,this.an_id(),this.state=2981,this.match(e.EQUALS),this.state=2982,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=2984,this.match(e.BACKUP),this.state=2985,this.object_ref(),this.state=2987,this.errorHandler.sync(this),t=this.tokenStream.LA(1),160===t&&(this.state=2986,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=2989,this.match(e.RESTORE),this.state=2990,this.object_ref(),this.state=2993,this.errorHandler.sync(this),t=this.tokenStream.LA(1),56===t&&(this.state=2991,this.match(e.AT),this.state=2992,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=2995,this.match(e.INHERITS),this.state=2996,this.match(e.LPAREN),this.state=2997,this.simple_table_ref_core(),this.state=3002,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2998,this.match(e.COMMA),this.state=2999,this.simple_table_ref_core(),this.state=3004,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3005,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=3007,this.match(e.PARTITION),this.state=3008,this.match(e.BY),this.state=3009,this.match(e.HASH),this.state=3010,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 ba(this.context,this.state);this.enterRule(i,456,e.RULE_with_table_settings);try{for(this.enterOuterAlt(i,1),this.state=3012,this.match(e.WITH),this.state=3013,this.match(e.LPAREN),this.state=3014,this.table_settings_entry(),this.state=3019,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3015,this.match(e.COMMA),this.state=3016,this.table_settings_entry(),this.state=3021,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3022,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 Ea(this.context,this.state);this.enterRule(t,458,e.RULE_table_tablestore);try{this.enterOuterAlt(t,1),this.state=3024,this.match(e.TABLESTORE),this.state=3025,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=3027,this.an_id(),this.state=3028,this.match(e.EQUALS),this.state=3029,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=3031,this.match(e.AS),this.state=3032,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=3034,this.match(e.ALTER),this.state=3035,this.match(e.TABLE),this.state=3036,this.simple_table_ref(),this.state=3037,this.alter_table_action(),this.state=3042,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3038,this.match(e.COMMA),this.state=3039,this.alter_table_action(),this.state=3044,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 La(this.context,this.state);this.enterRule(t,466,e.RULE_alter_table_action);try{switch(this.state=3062,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,302,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3045,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3046,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3047,this.alter_table_alter_column();break;case 4:this.enterOuterAlt(t,4),this.state=3048,this.alter_table_add_column_family();break;case 5:this.enterOuterAlt(t,5),this.state=3049,this.alter_table_alter_column_family();break;case 6:this.enterOuterAlt(t,6),this.state=3050,this.alter_table_set_table_setting_uncompat();break;case 7:this.enterOuterAlt(t,7),this.state=3051,this.alter_table_set_table_setting_compat();break;case 8:this.enterOuterAlt(t,8),this.state=3052,this.alter_table_reset_table_setting();break;case 9:this.enterOuterAlt(t,9),this.state=3053,this.alter_table_add_index();break;case 10:this.enterOuterAlt(t,10),this.state=3054,this.alter_table_drop_index();break;case 11:this.enterOuterAlt(t,11),this.state=3055,this.alter_table_rename_to();break;case 12:this.enterOuterAlt(t,12),this.state=3056,this.alter_table_add_changefeed();break;case 13:this.enterOuterAlt(t,13),this.state=3057,this.alter_table_alter_changefeed();break;case 14:this.enterOuterAlt(t,14),this.state=3058,this.alter_table_drop_changefeed();break;case 15:this.enterOuterAlt(t,15),this.state=3059,this.alter_table_rename_index_to();break;case 16:this.enterOuterAlt(t,16),this.state=3060,this.alter_table_alter_index();break;case 17:this.enterOuterAlt(t,17),this.state=3061,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 Ra(this.context,this.state);this.enterRule(i,468,e.RULE_alter_external_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3064,this.match(e.ALTER),this.state=3065,this.match(e.EXTERNAL),this.state=3066,this.match(e.TABLE),this.state=3067,this.simple_table_ref(),this.state=3068,this.alter_external_table_action(),this.state=3073,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3069,this.match(e.COMMA),this.state=3070,this.alter_external_table_action(),this.state=3075,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=3081,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,304,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3076,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3077,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3078,this.alter_table_set_table_setting_uncompat();break;case 4:this.enterOuterAlt(t,4),this.state=3079,this.alter_table_set_table_setting_compat();break;case 5:this.enterOuterAlt(t,5),this.state=3080,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=3083,this.match(e.ALTER),this.state=3084,this.match(e.TABLESTORE),this.state=3085,this.object_ref(),this.state=3086,this.alter_table_store_action(),this.state=3091,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3087,this.match(e.COMMA),this.state=3088,this.alter_table_store_action(),this.state=3093,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=3096,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=3094,this.alter_table_add_column();break;case e.DROP:this.enterOuterAlt(t,2),this.state=3095,this.alter_table_drop_column();break;default:throw new ct(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=3098,this.match(e.ADD),this.state=3100,this.errorHandler.sync(this),t=this.tokenStream.LA(1),77===t&&(this.state=3099,this.match(e.COLUMN)),this.state=3102,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=3104,this.match(e.DROP),this.state=3106,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,308,this.context)))this.state=3105,this.match(e.COLUMN);this.state=3108,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=3110,this.match(e.ALTER),this.state=3111,this.match(e.COLUMN),this.state=3112,this.an_id(),this.state=3113,this.match(e.SET),this.state=3114,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=3116,this.match(e.ALTER),this.state=3117,this.match(e.COLUMN),this.state=3118,this.an_id(),this.state=3119,this.match(e.DROP),this.state=3120,this.match(e.NOT),this.state=3121,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=3123,this.match(e.ADD),this.state=3124,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=3126,this.match(e.ALTER),this.state=3127,this.match(e.FAMILY),this.state=3128,this.an_id(),this.state=3129,this.match(e.SET),this.state=3130,this.an_id(),this.state=3131,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=3133,this.match(e.SET),this.state=3134,this.an_id(),this.state=3135,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=3137,this.match(e.SET),this.state=3138,this.match(e.LPAREN),this.state=3139,this.alter_table_setting_entry(),this.state=3144,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3140,this.match(e.COMMA),this.state=3141,this.alter_table_setting_entry(),this.state=3146,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3147,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=3149,this.match(e.RESET),this.state=3150,this.match(e.LPAREN),this.state=3151,this.an_id(),this.state=3156,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3152,this.match(e.COMMA),this.state=3153,this.an_id(),this.state=3158,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3159,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=3161,this.match(e.ADD),this.state=3162,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=3164,this.match(e.DROP),this.state=3165,this.match(e.INDEX),this.state=3166,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=3168,this.match(e.RENAME),this.state=3169,this.match(e.TO),this.state=3170,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=3172,this.match(e.RENAME),this.state=3173,this.match(e.INDEX),this.state=3174,this.an_id(),this.state=3175,this.match(e.TO),this.state=3176,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=3178,this.match(e.ADD),this.state=3179,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=3181,this.match(e.ALTER),this.state=3182,this.match(e.CHANGEFEED),this.state=3183,this.an_id(),this.state=3184,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=3186,this.match(e.DROP),this.state=3187,this.match(e.CHANGEFEED),this.state=3188,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=3190,this.match(e.ALTER),this.state=3191,this.match(e.INDEX),this.state=3192,this.an_id(),this.state=3193,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=3195,this.an_id_schema(),this.state=3196,this.type_name_or_bind(),this.state=3198,this.errorHandler.sync(this),t=this.tokenStream.LA(1),134===t&&(this.state=3197,this.family_relation()),this.state=3200,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=3202,this.match(e.FAMILY),this.state=3203,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=3209,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(197===t||199===t)&&(this.state=3206,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=3205,this.match(e.NOT)),this.state=3208,this.match(e.NULL)),this.state=3213,this.errorHandler.sync(this),t=this.tokenStream.LA(1),98===t&&(this.state=3211,this.match(e.DEFAULT),this.state=3212,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=3215,this.an_id(),this.state=3217,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(52===t||103===t)&&(this.state=3216,t=this.tokenStream.LA(1),52===t||103===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=3258,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PRIMARY:for(this.enterOuterAlt(i,1),this.state=3219,this.match(e.PRIMARY),this.state=3220,this.match(e.KEY),this.state=3221,this.match(e.LPAREN),this.state=3222,this.an_id(),this.state=3227,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3223,this.match(e.COMMA),this.state=3224,this.an_id(),this.state=3229,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3230,this.match(e.RPAREN);break;case e.PARTITION:for(this.enterOuterAlt(i,2),this.state=3232,this.match(e.PARTITION),this.state=3233,this.match(e.BY),this.state=3234,this.match(e.LPAREN),this.state=3235,this.an_id(),this.state=3240,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3236,this.match(e.COMMA),this.state=3237,this.an_id(),this.state=3242,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3243,this.match(e.RPAREN);break;case e.ORDER:for(this.enterOuterAlt(i,3),this.state=3245,this.match(e.ORDER),this.state=3246,this.match(e.BY),this.state=3247,this.match(e.LPAREN),this.state=3248,this.column_order_by_specification(),this.state=3253,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3249,this.match(e.COMMA),this.state=3250,this.column_order_by_specification(),this.state=3255,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3256,this.match(e.RPAREN);break;default:throw new ct(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=3260,this.match(e.INDEX),this.state=3261,this.an_id(),this.state=3262,this.table_index_type(),this.state=3263,this.match(e.ON),this.state=3264,this.match(e.LPAREN),this.state=3265,this.an_id_schema(),this.state=3270,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3266,this.match(e.COMMA),this.state=3267,this.an_id_schema(),this.state=3272,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3273,this.match(e.RPAREN),this.state=3286,this.errorHandler.sync(this),t=this.tokenStream.LA(1),86===t){for(this.state=3274,this.match(e.COVER),this.state=3275,this.match(e.LPAREN),this.state=3276,this.an_id_schema(),this.state=3281,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3277,this.match(e.COMMA),this.state=3278,this.an_id_schema(),this.state=3283,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3284,this.match(e.RPAREN)}this.state=3289,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3288,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=3293,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.GLOBAL:this.state=3291,this.global_index();break;case e.LOCAL:this.state=3292,this.local_index();break;default:throw new ct(this)}this.state=3297,this.errorHandler.sync(this),t=this.tokenStream.LA(1),306===t&&(this.state=3295,this.match(e.USING),this.state=3296,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 el(this.context,this.state);this.enterRule(i,524,e.RULE_global_index);try{this.enterOuterAlt(i,1),this.state=3299,this.match(e.GLOBAL),this.state=3301,this.errorHandler.sync(this),t=this.tokenStream.LA(1),299===t&&(this.state=3300,this.match(e.UNIQUE)),this.state=3304,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(55===t||278===t)&&(this.state=3303,t=this.tokenStream.LA(1),55===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}local_index(){let t=new tl(this.context,this.state);this.enterRule(t,526,e.RULE_local_index);try{this.enterOuterAlt(t,1),this.state=3306,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 il(this.context,this.state);this.enterRule(t,528,e.RULE_index_subtype);try{this.enterOuterAlt(t,1),this.state=3308,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 sl(this.context,this.state);this.enterRule(i,530,e.RULE_with_index_settings);try{let s;for(this.enterOuterAlt(i,1),this.state=3310,this.match(e.WITH),this.state=3311,this.match(e.LPAREN),this.state=3312,this.index_setting_entry(),this.state=3317,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3313,this.match(e.COMMA),this.state=3314,this.index_setting_entry()),this.state=3319,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);this.state=3321,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3320,this.match(e.COMMA)),this.state=3323,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 nl(this.context,this.state);this.enterRule(t,532,e.RULE_index_setting_entry);try{this.enterOuterAlt(t,1),this.state=3325,this.an_id(),this.state=3326,this.match(e.EQUALS),this.state=3327,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 rl(this.context,this.state);this.enterRule(t,534,e.RULE_index_setting_value);try{switch(this.state=3333,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.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.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.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.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.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.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.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.SOURCE: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.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=3329,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3330,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,3),this.state=3331,this.integer();break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=3332,this.bool_value();break;default:throw new ct(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 ol(this.context,this.state);this.enterRule(t,536,e.RULE_changefeed);try{this.enterOuterAlt(t,1),this.state=3335,this.match(e.CHANGEFEED),this.state=3336,this.an_id(),this.state=3337,this.match(e.WITH),this.state=3338,this.match(e.LPAREN),this.state=3339,this.changefeed_settings(),this.state=3340,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 al(this.context,this.state);this.enterRule(i,538,e.RULE_changefeed_settings);try{for(this.enterOuterAlt(i,1),this.state=3342,this.changefeed_settings_entry(),this.state=3347,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3343,this.match(e.COMMA),this.state=3344,this.changefeed_settings_entry(),this.state=3349,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 ll(this.context,this.state);this.enterRule(t,540,e.RULE_changefeed_settings_entry);try{this.enterOuterAlt(t,1),this.state=3350,this.an_id(),this.state=3351,this.match(e.EQUALS),this.state=3352,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 cl(this.context,this.state);this.enterRule(t,542,e.RULE_changefeed_setting_value);try{this.enterOuterAlt(t,1),this.state=3354,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 hl(this.context,this.state);this.enterRule(t,544,e.RULE_changefeed_alter_settings);try{switch(this.state=3362,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISABLE:this.enterOuterAlt(t,1),this.state=3356,this.match(e.DISABLE);break;case e.SET:this.enterOuterAlt(t,2),this.state=3357,this.match(e.SET),this.state=3358,this.match(e.LPAREN),this.state=3359,this.changefeed_settings(),this.state=3360,this.match(e.RPAREN);break;default:throw new ct(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 dl(this.context,this.state);this.enterRule(t,546,e.RULE_alter_table_setting_entry);try{this.enterOuterAlt(t,1),this.state=3364,this.an_id(),this.state=3365,this.match(e.EQUALS),this.state=3366,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 ul(this.context,this.state);this.enterRule(i,548,e.RULE_table_setting_value);try{switch(this.state=3380,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,334,this.context)){case 1:this.enterOuterAlt(i,1),this.state=3368,this.id();break;case 2:this.enterOuterAlt(i,2),this.state=3369,this.match(e.STRING_VALUE);break;case 3:this.enterOuterAlt(i,3),this.state=3370,this.integer();break;case 4:this.enterOuterAlt(i,4),this.state=3371,this.split_boundaries();break;case 5:this.enterOuterAlt(i,5),this.state=3372,this.expr(),this.state=3373,this.match(e.ON),this.state=3374,this.an_id(),this.state=3377,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=3375,this.match(e.AS),this.state=3376,t=this.tokenStream.LA(1),!(t-190&-32)&&1<<t-190&11||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 6:this.enterOuterAlt(i,6),this.state=3379,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}family_entry(){let t=new gl(this.context,this.state);this.enterRule(t,550,e.RULE_family_entry);try{this.enterOuterAlt(t,1),this.state=3382,this.match(e.FAMILY),this.state=3383,this.an_id(),this.state=3384,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 pl(this.context,this.state);this.enterRule(i,552,e.RULE_family_settings);try{if(this.enterOuterAlt(i,1),this.state=3386,this.match(e.LPAREN),this.state=3395,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-40&-32)&&1<<t-40&3757047807||!(t-72&-32)&&1<<t-72&4294967295||!(t-104&-32)&&1<<t-104&3758063611||!(t-136&-32)&&1<<t-136&4294966267||!(t-168&-32)&&1<<t-168&4294934527||!(t-200&-32)&&1<<t-200&4294966783||!(t-232&-32)&&1<<t-232&4294958591||!(t-264&-32)&&1<<t-264&2683305463||!(t-296&-32)&&1<<t-296&67100671)for(this.state=3387,this.family_settings_entry(),this.state=3392,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3388,this.match(e.COMMA),this.state=3389,this.family_settings_entry(),this.state=3394,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3397,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 ml(this.context,this.state);this.enterRule(t,554,e.RULE_family_settings_entry);try{this.enterOuterAlt(t,1),this.state=3399,this.an_id(),this.state=3400,this.match(e.EQUALS),this.state=3401,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 fl(this.context,this.state);this.enterRule(t,556,e.RULE_family_setting_value);try{switch(this.state=3405,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRING_VALUE:this.enterOuterAlt(t,1),this.state=3403,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,2),this.state=3404,this.integer();break;default:throw new ct(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 _l(this.context,this.state);this.enterRule(i,558,e.RULE_split_boundaries);try{switch(this.state=3419,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,339,this.context)){case 1:for(this.enterOuterAlt(i,1),this.state=3407,this.match(e.LPAREN),this.state=3408,this.literal_value_list(),this.state=3413,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3409,this.match(e.COMMA),this.state=3410,this.literal_value_list(),this.state=3415,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3416,this.match(e.RPAREN);break;case 2:this.enterOuterAlt(i,2),this.state=3418,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 vl(this.context,this.state);this.enterRule(i,560,e.RULE_literal_value_list);try{for(this.enterOuterAlt(i,1),this.state=3421,this.match(e.LPAREN),this.state=3422,this.literal_value(),this.state=3427,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3423,this.match(e.COMMA),this.state=3424,this.literal_value(),this.state=3429,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3430,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 Cl(this.context,this.state);this.enterRule(t,562,e.RULE_alter_table_alter_index_action);try{switch(this.state=3435,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,341,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3432,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=3433,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=3434,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 bl(this.context,this.state);this.enterRule(t,564,e.RULE_drop_table_stmt);try{switch(this.enterOuterAlt(t,1),this.state=3437,this.match(e.DROP),this.state=3442,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=3438,this.match(e.TABLE);break;case e.TABLESTORE:this.state=3439,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=3440,this.match(e.EXTERNAL),this.state=3441,this.match(e.TABLE);break;default:throw new ct(this)}if(1===(this.state=3446,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,343,this.context)))this.state=3444,this.match(e.IF),this.state=3445,this.match(e.EXISTS);this.state=3448,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 El(this.context,this.state);this.enterRule(i,566,e.RULE_create_user_stmt);try{this.enterOuterAlt(i,1),this.state=3450,this.match(e.CREATE),this.state=3451,this.match(e.USER),this.state=3452,this.role_name(),this.state=3454,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(117===t||218===t)&&(this.state=3453,this.create_user_option())}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 Sl(this.context,this.state);this.enterRule(i,568,e.RULE_alter_user_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3456,this.match(e.ALTER),this.state=3457,this.match(e.USER),this.state=3458,this.role_name(),this.state=3466,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.PASSWORD:case e.WITH:this.state=3460,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3459,this.match(e.WITH)),this.state=3462,this.create_user_option();break;case e.RENAME:this.state=3463,this.match(e.RENAME),this.state=3464,this.match(e.TO),this.state=3465,this.role_name();break;default:throw new ct(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 yl(this.context,this.state);this.enterRule(i,570,e.RULE_create_group_stmt);try{let s;if(this.enterOuterAlt(i,1),this.state=3468,this.match(e.CREATE),this.state=3469,this.match(e.GROUP),this.state=3470,this.role_name(),this.state=3484,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t){for(this.state=3471,this.match(e.WITH),this.state=3472,this.match(e.USER),this.state=3473,this.role_name(),this.state=3478,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,347,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3474,this.match(e.COMMA),this.state=3475,this.role_name()),this.state=3480,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,347,this.context);this.state=3482,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3481,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 wl(this.context,this.state);this.enterRule(i,572,e.RULE_alter_group_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=3486,this.match(e.ALTER),this.state=3487,this.match(e.GROUP),this.state=3488,this.role_name(),this.state=3505,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:case e.DROP:for(this.state=3489,t=this.tokenStream.LA(1),42===t||112===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3490,this.match(e.USER),this.state=3491,this.role_name(),this.state=3496,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,350,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3492,this.match(e.COMMA),this.state=3493,this.role_name()),this.state=3498,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,350,this.context);this.state=3500,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3499,this.match(e.COMMA));break;case e.RENAME:this.state=3502,this.match(e.RENAME),this.state=3503,this.match(e.TO),this.state=3504,this.role_name();break;default:throw new ct(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 Ll(this.context,this.state);this.enterRule(i,574,e.RULE_drop_role_stmt);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3507,this.match(e.DROP),this.state=3508,t=this.tokenStream.LA(1),148===t||305===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3511,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,353,this.context)))this.state=3509,this.match(e.IF),this.state=3510,this.match(e.EXISTS);for(this.state=3513,this.role_name(),this.state=3518,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3514,this.match(e.COMMA),this.state=3515,this.role_name()),this.state=3520,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);this.state=3522,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3521,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 Rl(this.context,this.state);this.enterRule(t,576,e.RULE_role_name);try{switch(this.state=3526,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.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.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.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.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.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.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.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.SOURCE: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.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=3524,this.an_id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3525,this.bind_parameter();break;default:throw new ct(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_user_option(){let t,i=new Tl(this.context,this.state);this.enterRule(i,578,e.RULE_create_user_option);try{this.enterOuterAlt(i,1),this.state=3529,this.errorHandler.sync(this),t=this.tokenStream.LA(1),117===t&&(this.state=3528,this.match(e.ENCRYPTED)),this.state=3531,this.match(e.PASSWORD),this.state=3532,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}grant_permissions_stmt(){let t,i=new xl(this.context,this.state);this.enterRule(i,580,e.RULE_grant_permissions_stmt);try{let s;for(this.enterOuterAlt(i,1),this.state=3534,this.match(e.GRANT),this.state=3535,this.permission_name_target(),this.state=3536,this.match(e.ON),this.state=3537,this.an_id_schema(),this.state=3542,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3538,this.match(e.COMMA),this.state=3539,this.an_id_schema(),this.state=3544,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3545,this.match(e.TO),this.state=3546,this.role_name(),this.state=3551,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,359,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3547,this.match(e.COMMA),this.state=3548,this.role_name()),this.state=3553,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,359,this.context);this.state=3555,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3554,this.match(e.COMMA)),this.state=3560,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3557,this.match(e.WITH),this.state=3558,this.match(e.GRANT),this.state=3559,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 kl(this.context,this.state);this.enterRule(i,582,e.RULE_revoke_permissions_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=3562,this.match(e.REVOKE),this.state=3566,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,362,this.context)))this.state=3563,this.match(e.GRANT),this.state=3564,this.match(e.OPTION),this.state=3565,this.match(e.FOR);for(this.state=3568,this.permission_name_target(),this.state=3569,this.match(e.ON),this.state=3570,this.an_id_schema(),this.state=3575,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3571,this.match(e.COMMA),this.state=3572,this.an_id_schema(),this.state=3577,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3578,this.match(e.FROM),this.state=3579,this.role_name(),this.state=3584,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3580,this.match(e.COMMA),this.state=3581,this.role_name(),this.state=3586,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 Al(this.context,this.state);this.enterRule(i,584,e.RULE_permission_id);try{switch(this.state=3611,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CONNECT:this.enterOuterAlt(i,1),this.state=3587,this.match(e.CONNECT);break;case e.LIST:this.enterOuterAlt(i,2),this.state=3588,this.match(e.LIST);break;case e.INSERT:this.enterOuterAlt(i,3),this.state=3589,this.match(e.INSERT);break;case e.MANAGE:this.enterOuterAlt(i,4),this.state=3590,this.match(e.MANAGE);break;case e.DROP:this.enterOuterAlt(i,5),this.state=3591,this.match(e.DROP);break;case e.GRANT:this.enterOuterAlt(i,6),this.state=3592,this.match(e.GRANT);break;case e.MODIFY:this.enterOuterAlt(i,7),this.state=3593,this.match(e.MODIFY),this.state=3594,t=this.tokenStream.LA(1),58===t||281===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case e.ERASE:case e.UPDATE:this.enterOuterAlt(i,8),this.state=3595,t=this.tokenStream.LA(1),120===t||302===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3596,this.match(e.ROW);break;case e.ALTER:case e.DESCRIBE:case e.REMOVE:this.enterOuterAlt(i,9),this.state=3597,t=this.tokenStream.LA(1),45===t||104===t||239===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3598,this.match(e.SCHEMA);break;case e.SELECT:this.enterOuterAlt(i,10),this.state=3599,this.match(e.SELECT),this.state=3601,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(58===t||258===t||281===t)&&(this.state=3600,t=this.tokenStream.LA(1),58===t||258===t||281===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.FULL:case e.USE:this.enterOuterAlt(i,11),this.state=3603,t=this.tokenStream.LA(1),143===t||304===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3605,this.errorHandler.sync(this),t=this.tokenStream.LA(1),180===t&&(this.state=3604,this.match(e.LEGACY));break;case e.CREATE:this.enterOuterAlt(i,12),this.state=3607,this.match(e.CREATE),this.state=3609,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(107===t||231===t||280===t)&&(this.state=3608,t=this.tokenStream.LA(1),107===t||231===t||280===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new ct(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 Nl(this.context,this.state);this.enterRule(t,586,e.RULE_permission_name);try{switch(this.state=3615,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=3613,this.permission_id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3614,this.match(e.STRING_VALUE);break;default:throw new ct(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 Il(this.context,this.state);this.enterRule(i,588,e.RULE_permission_name_target);try{let s;switch(this.state=3632,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=3617,this.permission_name(),this.state=3622,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,370,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3618,this.match(e.COMMA),this.state=3619,this.permission_name()),this.state=3624,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,370,this.context);this.state=3626,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3625,this.match(e.COMMA));break;case e.ALL:this.enterOuterAlt(i,2),this.state=3628,this.match(e.ALL),this.state=3630,this.errorHandler.sync(this),t=this.tokenStream.LA(1),229===t&&(this.state=3629,this.match(e.PRIVILEGES));break;default:throw new ct(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 Ol(this.context,this.state);this.enterRule(t,590,e.RULE_create_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3634,this.match(e.CREATE),this.state=3635,this.match(e.RESOURCE),this.state=3636,this.match(e.POOL),this.state=3637,this.object_ref(),this.state=3638,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 Dl(this.context,this.state);this.enterRule(i,592,e.RULE_alter_resource_pool_stmt);try{for(this.enterOuterAlt(i,1),this.state=3640,this.match(e.ALTER),this.state=3641,this.match(e.RESOURCE),this.state=3642,this.match(e.POOL),this.state=3643,this.object_ref(),this.state=3644,this.alter_resource_pool_action(),this.state=3649,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3645,this.match(e.COMMA),this.state=3646,this.alter_resource_pool_action(),this.state=3651,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 Ml(this.context,this.state);this.enterRule(t,594,e.RULE_alter_resource_pool_action);try{switch(this.state=3654,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3652,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3653,this.alter_table_reset_table_setting();break;default:throw new ct(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 Pl(this.context,this.state);this.enterRule(t,596,e.RULE_drop_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3656,this.match(e.DROP),this.state=3657,this.match(e.RESOURCE),this.state=3658,this.match(e.POOL),this.state=3659,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 Fl(this.context,this.state);this.enterRule(t,598,e.RULE_create_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3661,this.match(e.CREATE),this.state=3662,this.match(e.RESOURCE),this.state=3663,this.match(e.POOL),this.state=3664,this.match(e.CLASSIFIER),this.state=3665,this.object_ref(),this.state=3666,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 Ul(this.context,this.state);this.enterRule(i,600,e.RULE_alter_resource_pool_classifier_stmt);try{for(this.enterOuterAlt(i,1),this.state=3668,this.match(e.ALTER),this.state=3669,this.match(e.RESOURCE),this.state=3670,this.match(e.POOL),this.state=3671,this.match(e.CLASSIFIER),this.state=3672,this.object_ref(),this.state=3673,this.alter_resource_pool_classifier_action(),this.state=3678,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3674,this.match(e.COMMA),this.state=3675,this.alter_resource_pool_classifier_action(),this.state=3680,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 Hl(this.context,this.state);this.enterRule(t,602,e.RULE_alter_resource_pool_classifier_action);try{switch(this.state=3683,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3681,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3682,this.alter_table_reset_table_setting();break;default:throw new ct(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 Bl(this.context,this.state);this.enterRule(t,604,e.RULE_drop_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3685,this.match(e.DROP),this.state=3686,this.match(e.RESOURCE),this.state=3687,this.match(e.POOL),this.state=3688,this.match(e.CLASSIFIER),this.state=3689,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 Wl(this.context,this.state);this.enterRule(i,606,e.RULE_create_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3691,this.match(e.CREATE),this.state=3692,this.match(e.ASYNC),this.state=3693,this.match(e.REPLICATION),this.state=3694,this.object_ref(),this.state=3695,this.match(e.FOR),this.state=3696,this.replication_target(),this.state=3701,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3697,this.match(e.COMMA),this.state=3698,this.replication_target(),this.state=3703,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3704,this.match(e.WITH),this.state=3705,this.match(e.LPAREN),this.state=3706,this.replication_settings(),this.state=3707,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 Vl(this.context,this.state);this.enterRule(t,608,e.RULE_replication_target);try{this.enterOuterAlt(t,1),this.state=3709,this.object_ref(),this.state=3710,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 zl(this.context,this.state);this.enterRule(i,610,e.RULE_replication_settings);try{for(this.enterOuterAlt(i,1),this.state=3712,this.replication_settings_entry(),this.state=3717,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3713,this.match(e.COMMA),this.state=3714,this.replication_settings_entry(),this.state=3719,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 Gl(this.context,this.state);this.enterRule(t,612,e.RULE_replication_settings_entry);try{this.enterOuterAlt(t,1),this.state=3720,this.an_id(),this.state=3721,this.match(e.EQUALS),this.state=3722,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}alter_replication_stmt(){let t,i=new jl(this.context,this.state);this.enterRule(i,614,e.RULE_alter_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3724,this.match(e.ALTER),this.state=3725,this.match(e.ASYNC),this.state=3726,this.match(e.REPLICATION),this.state=3727,this.object_ref(),this.state=3728,this.alter_replication_action(),this.state=3733,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3729,this.match(e.COMMA),this.state=3730,this.alter_replication_action(),this.state=3735,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 Kl(this.context,this.state);this.enterRule(t,616,e.RULE_alter_replication_action);try{this.enterOuterAlt(t,1),this.state=3736,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 Yl(this.context,this.state);this.enterRule(t,618,e.RULE_alter_replication_set_setting);try{this.enterOuterAlt(t,1),this.state=3738,this.match(e.SET),this.state=3739,this.match(e.LPAREN),this.state=3740,this.replication_settings(),this.state=3741,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 ql(this.context,this.state);this.enterRule(i,620,e.RULE_drop_replication_stmt);try{this.enterOuterAlt(i,1),this.state=3743,this.match(e.DROP),this.state=3744,this.match(e.ASYNC),this.state=3745,this.match(e.REPLICATION),this.state=3746,this.object_ref(),this.state=3748,this.errorHandler.sync(this),t=this.tokenStream.LA(1),70===t&&(this.state=3747,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 $l(this.context,this.state);this.enterRule(i,622,e.RULE_action_or_subquery_args);try{for(this.enterOuterAlt(i,1),this.state=3750,this.opt_bind_parameter(),this.state=3755,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3751,this.match(e.COMMA),this.state=3752,this.opt_bind_parameter(),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}define_action_or_subquery_stmt(){let t,i=new Ql(this.context,this.state);this.enterRule(i,624,e.RULE_define_action_or_subquery_stmt);try{this.enterOuterAlt(i,1),this.state=3758,this.match(e.DEFINE),this.state=3759,t=this.tokenStream.LA(1),41===t||274===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3760,this.bind_parameter(),this.state=3761,this.match(e.LPAREN),this.state=3763,this.errorHandler.sync(this),t=this.tokenStream.LA(1),32===t&&(this.state=3762,this.action_or_subquery_args()),this.state=3765,this.match(e.RPAREN),this.state=3766,this.match(e.AS),this.state=3767,this.define_action_or_subquery_body(),this.state=3768,this.match(e.END),this.state=3769,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 Xl(this.context,this.state);this.enterRule(i,626,e.RULE_define_action_or_subquery_body);try{let s;for(this.enterOuterAlt(i,1),this.state=3774,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=3771,this.match(e.SEMICOLON),this.state=3776,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3795,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t||!(t-32&-32)&&1<<t-32&536895489||!(t-79&-32)&&1<<t-79&1086587137||!(t-111&-32)&&1<<t-111&2684882947||!(t-147&-32)&&1<<t-147&1050753||!(t-215&-32)&&1<<t-215&134775809||!(t-247&-32)&&1<<t-247&262721||!(t-302&-32)&&1<<t-302&71){for(this.state=3777,this.sql_stmt_core(),this.state=3786,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,386,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=3779,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3778,this.match(e.SEMICOLON),this.state=3781,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(23===t);this.state=3783,this.sql_stmt_core()}this.state=3788,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,386,this.context)}for(this.state=3792,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=3789,this.match(e.SEMICOLON),this.state=3794,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 Zl(this.context,this.state);this.enterRule(i,628,e.RULE_if_stmt);try{this.enterOuterAlt(i,1),this.state=3798,this.errorHandler.sync(this),t=this.tokenStream.LA(1),123===t&&(this.state=3797,this.match(e.EVALUATE)),this.state=3800,this.match(e.IF),this.state=3801,this.expr(),this.state=3802,this.do_stmt(),this.state=3805,this.errorHandler.sync(this),t=this.tokenStream.LA(1),114===t&&(this.state=3803,this.match(e.ELSE),this.state=3804,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 Jl(this.context,this.state);this.enterRule(i,630,e.RULE_for_stmt);try{this.enterOuterAlt(i,1),this.state=3808,this.errorHandler.sync(this),t=this.tokenStream.LA(1),123===t&&(this.state=3807,this.match(e.EVALUATE)),this.state=3811,this.errorHandler.sync(this),t=this.tokenStream.LA(1),215===t&&(this.state=3810,this.match(e.PARALLEL)),this.state=3813,this.match(e.FOR),this.state=3814,this.bind_parameter(),this.state=3815,this.match(e.IN),this.state=3816,this.expr(),this.state=3817,this.do_stmt(),this.state=3820,this.errorHandler.sync(this),t=this.tokenStream.LA(1),114===t&&(this.state=3818,this.match(e.ELSE),this.state=3819,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 ec(this.context,this.state);this.enterRule(i,632,e.RULE_table_ref);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3825,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,394,this.context)))this.state=3822,this.cluster_expr(),this.state=3823,this.match(e.DOT);switch(this.state=3828,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3827,this.match(e.COMMAT)),this.state=3860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,402,this.context)){case 1:this.state=3830,this.table_key();break;case 2:if(this.state=3831,this.an_id_expr(),this.state=3832,this.match(e.LPAREN),this.state=3844,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-15&-32)&&1<<t-15&4278618141||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607){for(this.state=3833,this.table_arg(),this.state=3838,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,396,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3834,this.match(e.COMMA),this.state=3835,this.table_arg()),this.state=3840,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,396,this.context);this.state=3842,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3841,this.match(e.COMMA))}this.state=3846,this.match(e.RPAREN);break;case 3:this.state=3848,this.bind_parameter(),this.state=3854,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t&&(this.state=3849,this.match(e.LPAREN),this.state=3851,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=3850,this.expr_list()),this.state=3853,this.match(e.RPAREN)),this.state=3858,this.errorHandler.sync(this),t=this.tokenStream.LA(1),310===t&&(this.state=3856,this.match(e.VIEW),this.state=3857,this.view_name())}this.state=3863,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3862,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 tc(this.context,this.state);this.enterRule(i,634,e.RULE_table_key);try{this.enterOuterAlt(i,1),this.state=3865,this.id_table_or_type(),this.state=3868,this.errorHandler.sync(this),t=this.tokenStream.LA(1),310===t&&(this.state=3866,this.match(e.VIEW),this.state=3867,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 ic(this.context,this.state);this.enterRule(i,636,e.RULE_table_arg);try{this.enterOuterAlt(i,1),this.state=3871,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3870,this.match(e.COMMAT)),this.state=3873,this.named_expr(),this.state=3876,this.errorHandler.sync(this),t=this.tokenStream.LA(1),310===t&&(this.state=3874,this.match(e.VIEW),this.state=3875,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 sc(this.context,this.state);this.enterRule(i,638,e.RULE_table_hints);try{switch(this.enterOuterAlt(i,1),this.state=3878,this.match(e.WITH),this.state=3891,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.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.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.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.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.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.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.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.SOURCE: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.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=3879,this.table_hint();break;case e.LPAREN:for(this.state=3880,this.match(e.LPAREN),this.state=3881,this.table_hint(),this.state=3886,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3882,this.match(e.COMMA),this.state=3883,this.table_hint(),this.state=3888,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3889,this.match(e.RPAREN);break;default:throw new ct(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 nc(this.context,this.state);this.enterRule(i,640,e.RULE_table_hint);try{let s;switch(this.state=3938,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,418,this.context)){case 1:if(this.enterOuterAlt(i,1),this.state=3893,this.an_id_hint(),this.state=3912,this.errorHandler.sync(this),t=this.tokenStream.LA(1),2===t)switch(this.state=3894,this.match(e.EQUALS),this.state=3910,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.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.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.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.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.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.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.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.SOURCE: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.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=3895,this.type_name_tag();break;case e.LPAREN:for(this.state=3896,this.match(e.LPAREN),this.state=3897,this.type_name_tag(),this.state=3902,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,409,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3898,this.match(e.COMMA),this.state=3899,this.type_name_tag()),this.state=3904,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,409,this.context);this.state=3906,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3905,this.match(e.COMMA)),this.state=3908,this.match(e.RPAREN);break;default:throw new ct(this)}break;case 2:this.enterOuterAlt(i,2),this.state=3914,t=this.tokenStream.LA(1),78===t||262===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3916,this.errorHandler.sync(this),t=this.tokenStream.LA(1),2===t&&(this.state=3915,this.match(e.EQUALS)),this.state=3918,this.type_name_or_bind();break;case 3:if(this.enterOuterAlt(i,3),this.state=3919,this.match(e.SCHEMA),this.state=3921,this.errorHandler.sync(this),t=this.tokenStream.LA(1),2===t&&(this.state=3920,this.match(e.EQUALS)),this.state=3923,this.match(e.LPAREN),this.state=3932,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-32&-32)&&1<<t-32&4026531585||!(t-64&-32)&&1<<t-64&4294967295||!(t-96&-32)&&1<<t-96&4294967295||!(t-128&-32)&&1<<t-128&4294705119||!(t-160&-32)&&1<<t-160&4294967295||!(t-192&-32)&&1<<t-192&4294967295||!(t-224&-32)&&1<<t-224&4294836223||!(t-256&-32)&&1<<t-256&4294967295||!(t-288&-32)&&1<<t-288&4294967263||320===t||321===t)for(this.state=3924,this.struct_arg_positional(),this.state=3929,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,415,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3925,this.match(e.COMMA),this.state=3926,this.struct_arg_positional()),this.state=3931,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,415,this.context);this.state=3935,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3934,this.match(e.COMMA)),this.state=3937,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 rc(this.context,this.state);this.enterRule(t,642,e.RULE_object_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=3943,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,419,this.context)))this.state=3940,this.cluster_expr(),this.state=3941,this.match(e.DOT);this.state=3945,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 oc(this.context,this.state);this.enterRule(i,644,e.RULE_simple_table_ref_core);try{switch(this.state=3952,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,421,this.context)){case 1:this.enterOuterAlt(i,1),this.state=3947,this.object_ref();break;case 2:this.enterOuterAlt(i,2),this.state=3949,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3948,this.match(e.COMMAT)),this.state=3951,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 ac(this.context,this.state);this.enterRule(i,646,e.RULE_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=3954,this.simple_table_ref_core(),this.state=3956,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3955,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 lc(this.context,this.state);this.enterRule(i,648,e.RULE_into_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=3958,this.simple_table_ref(),this.state=3962,this.errorHandler.sync(this),t=this.tokenStream.LA(1),120===t&&(this.state=3959,this.match(e.ERASE),this.state=3960,this.match(e.BY),this.state=3961,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 cc(this.context,this.state);this.enterRule(i,650,e.RULE_delete_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3964,this.match(e.DELETE),this.state=3965,this.match(e.FROM),this.state=3966,this.simple_table_ref(),this.state=3970,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WHERE:this.state=3967,this.where_expr();break;case e.ON:this.state=3968,this.match(e.ON),this.state=3969,this.into_values_source();case e.EOF:case e.SEMICOLON:case e.END:case e.RETURNING:}this.state=3973,this.errorHandler.sync(this),t=this.tokenStream.LA(1),251===t&&(this.state=3972,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 hc(this.context,this.state);this.enterRule(i,652,e.RULE_update_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3975,this.match(e.UPDATE),this.state=3976,this.simple_table_ref(),this.state=3984,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.state=3977,this.match(e.SET),this.state=3978,this.set_clause_choice(),this.state=3980,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3979,this.where_expr());break;case e.ON:this.state=3982,this.match(e.ON),this.state=3983,this.into_values_source();break;default:throw new ct(this)}this.state=3987,this.errorHandler.sync(this),t=this.tokenStream.LA(1),251===t&&(this.state=3986,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 dc(this.context,this.state);this.enterRule(t,654,e.RULE_set_clause_choice);try{switch(this.state=3991,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.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.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.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.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.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.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.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.SOURCE: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.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=3989,this.set_clause_list();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=3990,this.multiple_column_assignment();break;default:throw new ct(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 uc(this.context,this.state);this.enterRule(i,656,e.RULE_set_clause_list);try{for(this.enterOuterAlt(i,1),this.state=3993,this.set_clause(),this.state=3998,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3994,this.match(e.COMMA),this.state=3995,this.set_clause(),this.state=4e3,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 gc(this.context,this.state);this.enterRule(t,658,e.RULE_set_clause);try{this.enterOuterAlt(t,1),this.state=4001,this.set_target(),this.state=4002,this.match(e.EQUALS),this.state=4003,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 pc(this.context,this.state);this.enterRule(t,660,e.RULE_set_target);try{this.enterOuterAlt(t,1),this.state=4005,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 mc(this.context,this.state);this.enterRule(t,662,e.RULE_multiple_column_assignment);try{this.enterOuterAlt(t,1),this.state=4007,this.set_target_list(),this.state=4008,this.match(e.EQUALS),this.state=4009,this.match(e.LPAREN),this.state=4010,this.simple_values_source(),this.state=4011,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 fc(this.context,this.state);this.enterRule(i,664,e.RULE_set_target_list);try{for(this.enterOuterAlt(i,1),this.state=4013,this.match(e.LPAREN),this.state=4014,this.set_target(),this.state=4019,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4015,this.match(e.COMMA),this.state=4016,this.set_target(),this.state=4021,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4022,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 _c(this.context,this.state);this.enterRule(i,666,e.RULE_create_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4024,this.match(e.CREATE),this.state=4025,this.match(e.TOPIC),this.state=4029,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,432,this.context)))this.state=4026,this.match(e.IF),this.state=4027,this.match(e.NOT),this.state=4028,this.match(e.EXISTS);this.state=4031,this.topic_ref(),this.state=4033,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t&&(this.state=4032,this.create_topic_entries()),this.state=4036,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=4035,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 vc(this.context,this.state);this.enterRule(i,668,e.RULE_create_topic_entries);try{for(this.enterOuterAlt(i,1),this.state=4038,this.match(e.LPAREN),this.state=4039,this.create_topic_entry(),this.state=4044,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4040,this.match(e.COMMA),this.state=4041,this.create_topic_entry(),this.state=4046,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4047,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 Cc(this.context,this.state);this.enterRule(t,670,e.RULE_create_topic_entry);try{this.enterOuterAlt(t,1),this.state=4049,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 bc(this.context,this.state);this.enterRule(t,672,e.RULE_with_topic_settings);try{this.enterOuterAlt(t,1),this.state=4051,this.match(e.WITH),this.state=4052,this.match(e.LPAREN),this.state=4053,this.topic_settings(),this.state=4054,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 Ec(this.context,this.state);this.enterRule(i,674,e.RULE_alter_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4056,this.match(e.ALTER),this.state=4057,this.match(e.TOPIC),this.state=4060,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,436,this.context)))this.state=4058,this.match(e.IF),this.state=4059,this.match(e.EXISTS);for(this.state=4062,this.topic_ref(),this.state=4063,this.alter_topic_action(),this.state=4068,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4064,this.match(e.COMMA),this.state=4065,this.alter_topic_action(),this.state=4070,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 Sc(this.context,this.state);this.enterRule(t,676,e.RULE_alter_topic_action);try{switch(this.state=4076,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=4071,this.alter_topic_add_consumer();break;case e.ALTER:this.enterOuterAlt(t,2),this.state=4072,this.alter_topic_alter_consumer();break;case e.DROP:this.enterOuterAlt(t,3),this.state=4073,this.alter_topic_drop_consumer();break;case e.SET:this.enterOuterAlt(t,4),this.state=4074,this.alter_topic_set_settings();break;case e.RESET:this.enterOuterAlt(t,5),this.state=4075,this.alter_topic_reset_settings();break;default:throw new ct(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 yc(this.context,this.state);this.enterRule(t,678,e.RULE_alter_topic_add_consumer);try{this.enterOuterAlt(t,1),this.state=4078,this.match(e.ADD),this.state=4079,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 wc(this.context,this.state);this.enterRule(i,680,e.RULE_topic_create_consumer_entry);try{this.enterOuterAlt(i,1),this.state=4081,this.match(e.CONSUMER),this.state=4082,this.an_id(),this.state=4084,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=4083,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 Lc(this.context,this.state);this.enterRule(t,682,e.RULE_alter_topic_alter_consumer);try{this.enterOuterAlt(t,1),this.state=4086,this.match(e.ALTER),this.state=4087,this.match(e.CONSUMER),this.state=4088,this.topic_consumer_ref(),this.state=4089,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 Rc(this.context,this.state);this.enterRule(t,684,e.RULE_alter_topic_alter_consumer_entry);try{switch(this.state=4093,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=4091,this.topic_alter_consumer_set();break;case e.RESET:this.enterOuterAlt(t,2),this.state=4092,this.topic_alter_consumer_reset();break;default:throw new ct(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 Tc(this.context,this.state);this.enterRule(t,686,e.RULE_alter_topic_drop_consumer);try{this.enterOuterAlt(t,1),this.state=4095,this.match(e.DROP),this.state=4096,this.match(e.CONSUMER),this.state=4097,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 xc(this.context,this.state);this.enterRule(t,688,e.RULE_topic_alter_consumer_set);try{this.enterOuterAlt(t,1),this.state=4099,this.match(e.SET),this.state=4100,this.match(e.LPAREN),this.state=4101,this.topic_consumer_settings(),this.state=4102,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 kc(this.context,this.state);this.enterRule(i,690,e.RULE_topic_alter_consumer_reset);try{for(this.enterOuterAlt(i,1),this.state=4104,this.match(e.RESET),this.state=4105,this.match(e.LPAREN),this.state=4106,this.an_id(),this.state=4111,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4107,this.match(e.COMMA),this.state=4108,this.an_id(),this.state=4113,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4114,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 Ac(this.context,this.state);this.enterRule(t,692,e.RULE_alter_topic_set_settings);try{this.enterOuterAlt(t,1),this.state=4116,this.match(e.SET),this.state=4117,this.match(e.LPAREN),this.state=4118,this.topic_settings(),this.state=4119,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 Nc(this.context,this.state);this.enterRule(i,694,e.RULE_alter_topic_reset_settings);try{for(this.enterOuterAlt(i,1),this.state=4121,this.match(e.RESET),this.state=4122,this.match(e.LPAREN),this.state=4123,this.an_id(),this.state=4128,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4124,this.match(e.COMMA),this.state=4125,this.an_id_pure(),this.state=4130,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4131,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 Ic(this.context,this.state);this.enterRule(t,696,e.RULE_drop_topic_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=4133,this.match(e.DROP),this.state=4134,this.match(e.TOPIC),this.state=4137,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,443,this.context)))this.state=4135,this.match(e.IF),this.state=4136,this.match(e.EXISTS);this.state=4139,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 Oc(this.context,this.state);this.enterRule(i,698,e.RULE_topic_settings);try{for(this.enterOuterAlt(i,1),this.state=4141,this.topic_settings_entry(),this.state=4146,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4142,this.match(e.COMMA),this.state=4143,this.topic_settings_entry(),this.state=4148,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 Dc(this.context,this.state);this.enterRule(t,700,e.RULE_topic_settings_entry);try{this.enterOuterAlt(t,1),this.state=4149,this.an_id(),this.state=4150,this.match(e.EQUALS),this.state=4151,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 Mc(this.context,this.state);this.enterRule(t,702,e.RULE_topic_setting_value);try{this.enterOuterAlt(t,1),this.state=4153,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 Pc(this.context,this.state);this.enterRule(t,704,e.RULE_topic_consumer_with_settings);try{this.enterOuterAlt(t,1),this.state=4155,this.match(e.WITH),this.state=4156,this.match(e.LPAREN),this.state=4157,this.topic_consumer_settings(),this.state=4158,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 Fc(this.context,this.state);this.enterRule(i,706,e.RULE_topic_consumer_settings);try{for(this.enterOuterAlt(i,1),this.state=4160,this.topic_consumer_settings_entry(),this.state=4165,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4161,this.match(e.COMMA),this.state=4162,this.topic_consumer_settings_entry(),this.state=4167,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 Uc(this.context,this.state);this.enterRule(t,708,e.RULE_topic_consumer_settings_entry);try{this.enterOuterAlt(t,1),this.state=4168,this.an_id(),this.state=4169,this.match(e.EQUALS),this.state=4170,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 Hc(this.context,this.state);this.enterRule(t,710,e.RULE_topic_consumer_setting_value);try{this.enterOuterAlt(t,1),this.state=4172,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 Bc(this.context,this.state);this.enterRule(t,712,e.RULE_topic_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4177,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,446,this.context)))this.state=4174,this.cluster_expr(),this.state=4175,this.match(e.DOT);this.state=4179,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 Wc(this.context,this.state);this.enterRule(t,714,e.RULE_topic_consumer_ref);try{this.enterOuterAlt(t,1),this.state=4181,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 Vc(this.context,this.state);this.enterRule(t,716,e.RULE_null_treatment);try{switch(this.state=4187,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESPECT:this.enterOuterAlt(t,1),this.state=4183,this.match(e.RESPECT),this.state=4184,this.match(e.NULLS);break;case e.IGNORE:this.enterOuterAlt(t,2),this.state=4185,this.match(e.IGNORE),this.state=4186,this.match(e.NULLS);break;default:throw new ct(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 zc(this.context,this.state);this.enterRule(t,718,e.RULE_filter_clause);try{this.enterOuterAlt(t,1),this.state=4189,this.match(e.FILTER),this.state=4190,this.match(e.LPAREN),this.state=4191,this.where_expr(),this.state=4192,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 Gc(this.context,this.state);this.enterRule(t,720,e.RULE_window_name_or_specification);try{switch(this.state=4196,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.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.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.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.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.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.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.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.SOURCE: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.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=4194,this.window_name();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4195,this.window_specification();break;default:throw new ct(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 jc(this.context,this.state);this.enterRule(t,722,e.RULE_window_name);try{this.enterOuterAlt(t,1),this.state=4198,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 Kc(this.context,this.state);this.enterRule(t,724,e.RULE_window_clause);try{this.enterOuterAlt(t,1),this.state=4200,this.match(e.WINDOW),this.state=4201,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 Yc(this.context,this.state);this.enterRule(i,726,e.RULE_window_definition_list);try{for(this.enterOuterAlt(i,1),this.state=4203,this.window_definition(),this.state=4208,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4204,this.match(e.COMMA),this.state=4205,this.window_definition(),this.state=4210,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 qc(this.context,this.state);this.enterRule(t,728,e.RULE_window_definition);try{this.enterOuterAlt(t,1),this.state=4211,this.new_window_name(),this.state=4212,this.match(e.AS),this.state=4213,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 $c(this.context,this.state);this.enterRule(t,730,e.RULE_new_window_name);try{this.enterOuterAlt(t,1),this.state=4215,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 Qc(this.context,this.state);this.enterRule(t,732,e.RULE_window_specification);try{this.enterOuterAlt(t,1),this.state=4217,this.match(e.LPAREN),this.state=4218,this.window_specification_details(),this.state=4219,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 Xc(this.context,this.state);this.enterRule(i,734,e.RULE_window_specification_details);try{if(this.enterOuterAlt(i,1),1===(this.state=4222,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,450,this.context)))this.state=4221,this.existing_window_name();this.state=4225,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=4224,this.window_partition_clause()),this.state=4228,this.errorHandler.sync(this),t=this.tokenStream.LA(1),211===t&&(this.state=4227,this.window_order_clause()),this.state=4231,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(150===t||233===t||259===t)&&(this.state=4230,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 Zc(this.context,this.state);this.enterRule(t,736,e.RULE_existing_window_name);try{this.enterOuterAlt(t,1),this.state=4233,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 Jc(this.context,this.state);this.enterRule(i,738,e.RULE_window_partition_clause);try{this.enterOuterAlt(i,1),this.state=4235,this.match(e.PARTITION),this.state=4237,this.errorHandler.sync(this),t=this.tokenStream.LA(1),80===t&&(this.state=4236,this.match(e.COMPACT)),this.state=4239,this.match(e.BY),this.state=4240,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 eh(this.context,this.state);this.enterRule(t,740,e.RULE_window_order_clause);try{this.enterOuterAlt(t,1),this.state=4242,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 th(this.context,this.state);this.enterRule(i,742,e.RULE_window_frame_clause);try{this.enterOuterAlt(i,1),this.state=4244,this.window_frame_units(),this.state=4245,this.window_frame_extent(),this.state=4247,this.errorHandler.sync(this),t=this.tokenStream.LA(1),125===t&&(this.state=4246,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 ih(this.context,this.state);this.enterRule(i,744,e.RULE_window_frame_units);try{this.enterOuterAlt(i,1),this.state=4249,t=this.tokenStream.LA(1),150===t||233===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}window_frame_extent(){let t=new sh(this.context,this.state);this.enterRule(t,746,e.RULE_window_frame_extent);try{switch(this.state=4253,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,456,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4251,this.window_frame_bound();break;case 2:this.enterOuterAlt(t,2),this.state=4252,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 nh(this.context,this.state);this.enterRule(t,748,e.RULE_window_frame_between);try{this.enterOuterAlt(t,1),this.state=4255,this.match(e.BETWEEN),this.state=4256,this.window_frame_bound(),this.state=4257,this.match(e.AND),this.state=4258,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 rh(this.context,this.state);this.enterRule(i,750,e.RULE_window_frame_bound);try{switch(this.state=4267,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,458,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4260,this.match(e.CURRENT),this.state=4261,this.match(e.ROW);break;case 2:switch(this.enterOuterAlt(i,2),this.state=4264,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,457,this.context)){case 1:this.state=4262,this.expr();break;case 2:this.state=4263,this.match(e.UNBOUNDED)}this.state=4266,t=this.tokenStream.LA(1),139===t||226===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 oh(this.context,this.state);this.enterRule(t,752,e.RULE_window_frame_exclusion);try{switch(this.state=4279,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,459,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4269,this.match(e.EXCLUDE),this.state=4270,this.match(e.CURRENT),this.state=4271,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=4272,this.match(e.EXCLUDE),this.state=4273,this.match(e.GROUP);break;case 3:this.enterOuterAlt(t,3),this.state=4274,this.match(e.EXCLUDE),this.state=4275,this.match(e.TIES);break;case 4:this.enterOuterAlt(t,4),this.state=4276,this.match(e.EXCLUDE),this.state=4277,this.match(e.NO),this.state=4278,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 ah(this.context,this.state);this.enterRule(t,754,e.RULE_use_stmt);try{this.enterOuterAlt(t,1),this.state=4281,this.match(e.USE),this.state=4282,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 lh(this.context,this.state);this.enterRule(t,756,e.RULE_subselect_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4289,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=4284,this.match(e.LPAREN),this.state=4285,this.select_stmt(),this.state=4286,this.match(e.RPAREN);break;case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=4288,this.select_unparenthesized_stmt();break;default:throw new ct(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 ch(this.context,this.state);this.enterRule(t,758,e.RULE_named_nodes_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4291,this.bind_parameter_list(),this.state=4292,this.match(e.EQUALS),this.state=4295,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,461,this.context)){case 1:this.state=4293,this.expr();break;case 2:this.state=4294,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 hh(this.context,this.state);this.enterRule(t,760,e.RULE_commit_stmt);try{this.enterOuterAlt(t,1),this.state=4297,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 dh(this.context,this.state);this.enterRule(t,762,e.RULE_rollback_stmt);try{this.enterOuterAlt(t,1),this.state=4299,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 uh(this.context,this.state);this.enterRule(i,764,e.RULE_analyze_table);try{this.enterOuterAlt(i,1),this.state=4301,this.simple_table_ref(),this.state=4306,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t&&(this.state=4302,this.match(e.LPAREN),this.state=4303,this.column_list(),this.state=4304,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 gh(this.context,this.state);this.enterRule(i,766,e.RULE_analyze_table_list);try{let s;for(this.enterOuterAlt(i,1),this.state=4308,this.analyze_table(),this.state=4313,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,463,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4309,this.match(e.COMMA),this.state=4310,this.analyze_table()),this.state=4315,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,463,this.context);this.state=4317,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4316,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 ph(this.context,this.state);this.enterRule(t,768,e.RULE_analyze_stmt);try{this.enterOuterAlt(t,1),this.state=4319,this.match(e.ANALYZE),this.state=4320,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}identifier(){let t,i=new mh(this.context,this.state);this.enterRule(i,770,e.RULE_identifier);try{this.enterOuterAlt(i,1),this.state=4322,t=this.tokenStream.LA(1),320===t||321===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 fh(this.context,this.state);this.enterRule(t,772,e.RULE_id);try{switch(this.state=4326,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4324,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.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.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.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.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.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.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.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.SOURCE: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.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=4325,this.keyword();break;default:throw new ct(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 _h(this.context,this.state);this.enterRule(t,774,e.RULE_id_schema);try{switch(this.state=4335,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4328,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.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.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.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.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.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.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.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.SOURCE: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.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=4329,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.LOCAL: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=4330,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=4331,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4332,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4333,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4334,this.keyword_hint_uncompat();break;default:throw new ct(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 vh(this.context,this.state);this.enterRule(t,776,e.RULE_id_expr);try{switch(this.state=4343,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4337,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.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.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.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.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.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.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.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.SOURCE: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.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=4338,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4339,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,4),this.state=4340,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,5),this.state=4341,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,6),this.state=4342,this.keyword_hint_uncompat();break;default:throw new ct(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 Ch(this.context,this.state);this.enterRule(t,778,e.RULE_id_expr_in);try{switch(this.state=4350,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4345,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.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.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.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.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.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.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.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.SOURCE: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.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=4346,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4347,this.keyword_alter_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,4),this.state=4348,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,5),this.state=4349,this.keyword_hint_uncompat();break;default:throw new ct(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 bh(this.context,this.state);this.enterRule(t,780,e.RULE_id_window);try{switch(this.state=4360,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4352,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.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.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.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.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.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.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.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.SOURCE: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.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=4353,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.LOCAL: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=4354,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4355,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=4356,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4357,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4358,this.keyword_in_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4359,this.keyword_hint_uncompat();break;default:throw new ct(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 Eh(this.context,this.state);this.enterRule(t,782,e.RULE_id_table);try{switch(this.state=4369,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4362,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.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.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.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.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.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.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.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.SOURCE: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.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=4363,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.LOCAL: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=4364,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=4365,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4366,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4367,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4368,this.keyword_hint_uncompat();break;default:throw new ct(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 Sh(this.context,this.state);this.enterRule(t,784,e.RULE_id_without);try{switch(this.state=4378,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4371,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.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.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.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.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.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.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.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.SOURCE: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.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=4372,this.keyword_compat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4373,this.keyword_table_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,4),this.state=4374,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4375,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4376,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4377,this.keyword_hint_uncompat();break;default:throw new ct(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 yh(this.context,this.state);this.enterRule(t,786,e.RULE_id_hint);try{switch(this.state=4388,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4380,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.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.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.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.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.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.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.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.SOURCE: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.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=4381,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.LOCAL: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=4382,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4383,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=4384,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4385,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4386,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,8),this.state=4387,this.keyword_window_uncompat();break;default:throw new ct(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,788,e.RULE_id_as_compat);try{switch(this.state=4392,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4390,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.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.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.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.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.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.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.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.SOURCE: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.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=4391,this.keyword_as_compat();break;default:throw new ct(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 Lh(this.context,this.state);this.enterRule(t,790,e.RULE_an_id);try{switch(this.state=4396,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.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.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.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.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.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.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.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.SOURCE: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.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=4394,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4395,this.match(e.STRING_VALUE);break;default:throw new ct(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 Rh(this.context,this.state);this.enterRule(t,792,e.RULE_an_id_or_type);try{switch(this.state=4400,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.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.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.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.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.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.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.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.SOURCE: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.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=4398,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4399,this.match(e.STRING_VALUE);break;default:throw new ct(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 Th(this.context,this.state);this.enterRule(t,794,e.RULE_an_id_schema);try{switch(this.state=4404,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.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.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.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.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.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.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.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.SOURCE: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.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=4402,this.id_schema();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4403,this.match(e.STRING_VALUE);break;default:throw new ct(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 xh(this.context,this.state);this.enterRule(t,796,e.RULE_an_id_expr);try{switch(this.state=4408,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.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.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.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.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.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.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.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.SOURCE: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.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=4406,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4407,this.match(e.STRING_VALUE);break;default:throw new ct(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,798,e.RULE_an_id_expr_in);try{switch(this.state=4412,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.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.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.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.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.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.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.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.SOURCE: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.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=4410,this.id_expr_in();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4411,this.match(e.STRING_VALUE);break;default:throw new ct(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 Ah(this.context,this.state);this.enterRule(t,800,e.RULE_an_id_window);try{switch(this.state=4416,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.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.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.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.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.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.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.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.SOURCE: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.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=4414,this.id_window();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4415,this.match(e.STRING_VALUE);break;default:throw new ct(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 Nh(this.context,this.state);this.enterRule(t,802,e.RULE_an_id_table);try{switch(this.state=4420,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.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.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.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.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.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.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.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.SOURCE: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.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=4418,this.id_table();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4419,this.match(e.STRING_VALUE);break;default:throw new ct(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 Ih(this.context,this.state);this.enterRule(t,804,e.RULE_an_id_without);try{switch(this.state=4424,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.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.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.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.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.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.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.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.SOURCE: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.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=4422,this.id_without();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4423,this.match(e.STRING_VALUE);break;default:throw new ct(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 Oh(this.context,this.state);this.enterRule(t,806,e.RULE_an_id_hint);try{switch(this.state=4428,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.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.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.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.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.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.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.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.SOURCE: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.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=4426,this.id_hint();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4427,this.match(e.STRING_VALUE);break;default:throw new ct(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 Dh(this.context,this.state);this.enterRule(t,808,e.RULE_an_id_pure);try{switch(this.state=4432,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4430,this.identifier();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4431,this.match(e.STRING_VALUE);break;default:throw new ct(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 Mh(this.context,this.state);this.enterRule(t,810,e.RULE_an_id_as_compat);try{switch(this.state=4436,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.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.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.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.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.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.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.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.SOURCE: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.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=4434,this.id_as_compat();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4435,this.match(e.STRING_VALUE);break;default:throw new ct(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 Ph(this.context,this.state);this.enterRule(t,812,e.RULE_view_name);try{switch(this.state=4441,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,485,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4438,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=4439,this.match(e.PRIMARY),this.state=4440,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 Fh(this.context,this.state);this.enterRule(t,814,e.RULE_opt_id_prefix);try{if(1===(this.enterOuterAlt(t,1),this.state=4446,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,486,this.context)))this.state=4443,this.an_id(),this.state=4444,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 Uh(this.context,this.state);this.enterRule(t,816,e.RULE_cluster_expr);try{if(this.enterOuterAlt(t,1),1===(this.state=4451,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,487,this.context)))this.state=4448,this.an_id(),this.state=4449,this.match(e.COLON);switch(this.state=4455,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.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.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.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.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.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.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.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.SOURCE: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.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=4453,this.pure_column_or_named();break;case e.ASTERISK:this.state=4454,this.match(e.ASTERISK);break;default:throw new ct(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 Hh(this.context,this.state);this.enterRule(t,818,e.RULE_id_or_type);try{switch(this.state=4459,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.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.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.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.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.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.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.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.SOURCE: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.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=4457,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=4458,this.type_id();break;default:throw new ct(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 Bh(this.context,this.state);this.enterRule(t,820,e.RULE_opt_id_prefix_or_type);try{if(1===(this.enterOuterAlt(t,1),this.state=4464,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,490,this.context)))this.state=4461,this.an_id_or_type(),this.state=4462,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 Wh(this.context,this.state);this.enterRule(i,822,e.RULE_id_or_at);try{this.enterOuterAlt(i,1),this.state=4467,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=4466,this.match(e.COMMAT)),this.state=4469,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 Vh(this.context,this.state);this.enterRule(t,824,e.RULE_id_table_or_type);try{switch(this.state=4473,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.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.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.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.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.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.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.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.SOURCE: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.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=4471,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=4472,this.type_id();break;default:throw new ct(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 zh(this.context,this.state);this.enterRule(i,826,e.RULE_id_table_or_at);try{this.enterOuterAlt(i,1),this.state=4476,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=4475,this.match(e.COMMAT)),this.state=4478,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 Gh(this.context,this.state);this.enterRule(t,828,e.RULE_keyword);try{switch(this.state=4488,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.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.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.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.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.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.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.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.SOURCE: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.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=4480,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.LOCAL: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=4481,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4482,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=4483,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,5),this.state=4484,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,6),this.state=4485,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,7),this.state=4486,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4487,this.keyword_hint_uncompat();break;default:throw new ct(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 jh(this.context,this.state);this.enterRule(i,830,e.RULE_keyword_expr_uncompat);try{this.enterOuterAlt(i,1),this.state=4490,t=this.tokenStream.LA(1),!(t-54&-32)&&1<<t-54&405505||!(t-89&-32)&&1<<t-89&134217757||!(t-128&-32)&&1<<t-128&33603585||!(t-174&-32)&&1<<t-174&41944071||!(t-230&-32)&&1<<t-230&137363473||!(t-265&-32)&&1<<t-265&2147487745||312===t||313===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_table_uncompat(){let t,i=new Kh(this.context,this.state);this.enterRule(i,832,e.RULE_keyword_table_uncompat);try{this.enterOuterAlt(i,1),this.state=4492,t=this.tokenStream.LA(1),49===t||120===t||272===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 Yh(this.context,this.state);this.enterRule(i,834,e.RULE_keyword_select_uncompat);try{this.enterOuterAlt(i,1),this.state=4494,t=this.tokenStream.LA(1),!(t-44&-32)&&1<<t-44&641||110===t||124===t||!(t-152&-32)&&1<<t-152&1073872897||!(t-298&-32)&&1<<t-298&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 qh(this.context,this.state);this.enterRule(t,836,e.RULE_keyword_alter_uncompat);try{this.enterOuterAlt(t,1),this.state=4496,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 $h(this.context,this.state);this.enterRule(t,838,e.RULE_keyword_in_uncompat);try{this.enterOuterAlt(t,1),this.state=4498,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 Qh(this.context,this.state);this.enterRule(i,840,e.RULE_keyword_window_uncompat);try{this.enterOuterAlt(i,1),this.state=4500,t=this.tokenStream.LA(1),150===t||233===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}keyword_hint_uncompat(){let t,i=new Xh(this.context,this.state);this.enterRule(i,842,e.RULE_keyword_hint_uncompat);try{this.enterOuterAlt(i,1),this.state=4502,t=this.tokenStream.LA(1),78===t||262===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 Zh(this.context,this.state);this.enterRule(i,844,e.RULE_keyword_as_compat);try{this.enterOuterAlt(i,1),this.state=4504,t=this.tokenStream.LA(1),!(t-40&-32)&&1<<t-40&1408210415||!(t-73&-32)&&1<<t-73&4024598343||!(t-105&-32)&&1<<t-105&4015470493||!(t-137&-32)&&1<<t-137&3757989277||!(t-170&-32)&&1<<t-170&3338636547||!(t-202&-32)&&1<<t-202&1845486967||!(t-235&-32)&&1<<t-235&884358079||!(t-268&-32)&&1<<t-268&2852060623||!(t-300&-32)&&1<<t-300&395711?(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 Jh(this.context,this.state);this.enterRule(i,846,e.RULE_keyword_compat);try{this.enterOuterAlt(i,1),this.state=4506,t=this.tokenStream.LA(1),!(t-40&-32)&&1<<t-40&1408210415||!(t-73&-32)&&1<<t-73&4293066575||!(t-105&-32)&&1<<t-105&4017567709||!(t-137&-32)&&1<<t-137&4294860189||!(t-170&-32)&&1<<t-170&3623849871||!(t-202&-32)&&1<<t-202&1879048063||!(t-235&-32)&&1<<t-235&3065936831||!(t-268&-32)&&1<<t-268&2852060623||!(t-300&-32)&&1<<t-300&429567?(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 ed(this.context,this.state);this.enterRule(i,848,e.RULE_type_id);try{this.enterOuterAlt(i,1),this.state=4508,t=this.tokenStream.LA(1),69===t||106===t||119===t||138===t||183===t||209===t||!(t-245&-32)&&1<<t-245&272629761||!(t-284&-32)&&1<<t-284&33555457?(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 td(this.context,this.state);this.enterRule(i,850,e.RULE_bool_value);try{this.enterOuterAlt(i,1),this.state=4510,t=this.tokenStream.LA(1),133===t||293===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 id(this.context,this.state);this.enterRule(t,852,e.RULE_real);try{this.enterOuterAlt(t,1),this.state=4512,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 sd(this.context,this.state);this.enterRule(i,854,e.RULE_integer);try{this.enterOuterAlt(i,1),this.state=4514,t=this.tokenStream.LA(1),322===t||323===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 nd(this.context,this.state);this.enterRule(t,856,e.RULE_sql_query_yq);try{switch(this.state=4521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,495,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4516,this.sql_stmt_list_yq();break;case 2:this.enterOuterAlt(t,2),this.state=4517,this.match(e.PRAGMA),this.state=4518,this.match(e.ANSI),this.state=4519,this.match(e.DIGITS),this.state=4520,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 rd(this.context,this.state);this.enterRule(i,858,e.RULE_sql_stmt_list_yq);try{let s;for(this.enterOuterAlt(i,1),this.state=4526,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=4523,this.match(e.SEMICOLON),this.state=4528,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=4529,this.sql_stmt_yq(),this.state=4538,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,498,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=4531,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4530,this.match(e.SEMICOLON),this.state=4533,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(23===t);this.state=4535,this.sql_stmt_yq()}this.state=4540,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,498,this.context)}for(this.state=4544,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=4541,this.match(e.SEMICOLON),this.state=4546,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4547,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 od(this.context,this.state);this.enterRule(i,860,e.RULE_sql_stmt_yq);try{this.enterOuterAlt(i,1),this.state=4554,this.errorHandler.sync(this),t=this.tokenStream.LA(1),129===t&&(this.state=4549,this.match(e.EXPLAIN),this.state=4552,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4550,this.match(e.QUERY),this.state=4551,this.match(e.PLAN))),this.state=4556,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 ad(this.context,this.state);this.enterRule(t,862,e.RULE_sql_stmt_core_yq);try{switch(this.state=4571,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,502,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4558,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=4559,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=4560,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=4561,this.use_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=4562,this.into_table_stmt_yq();break;case 6:this.enterOuterAlt(t,6),this.state=4563,this.declare_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=4564,this.import_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=4565,this.export_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=4566,this.do_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=4567,this.define_action_or_subquery_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=4568,this.if_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=4569,this.for_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=4570,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 ld(this.context,this.state);this.enterRule(t,864,e.RULE_replication_name);try{this.enterOuterAlt(t,1),this.state=4573,this.match(e.AS),this.state=4574,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 cd(this.context,this.state);this.enterRule(t,866,e.RULE_where_expr);try{this.enterOuterAlt(t,1),this.state=4576,this.match(e.WHERE),this.state=4577,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}from_stmt(){let t=new hd(this.context,this.state);this.enterRule(t,868,e.RULE_from_stmt);try{this.enterOuterAlt(t,1),this.state=4579,this.match(e.FROM),this.state=4580,this.join_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_for_autocomplete(){let t=new dd(this.context,this.state);this.enterRule(t,870,e.RULE_alter_table_for_autocomplete);try{switch(this.state=4584,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,503,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4582,this.alter_table_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=4583,this.alter_table_store_stmt()}}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,332,4587,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,1,0,1,0,1,0,1,0,1,0,3,0,878,8,0,1,1,5,1,881,8,1,10,1,12,1,884,9,1,1,1,1,1,4,1,888,8,1,11,1,12,1,889,1,1,5,1,893,8,1,10,1,12,1,896,9,1,1,1,5,1,899,8,1,10,1,12,1,902,9,1,1,1,1,1,1,2,5,2,907,8,2,10,2,12,2,910,9,2,1,2,1,2,1,3,5,3,915,8,3,10,3,12,3,918,9,3,1,3,1,3,4,3,922,8,3,11,3,12,3,923,5,3,926,8,3,10,3,12,3,929,9,3,1,3,1,3,1,3,5,3,934,8,3,10,3,12,3,937,9,3,1,4,1,4,3,4,941,8,4,1,5,1,5,1,5,3,5,946,8,5,3,5,948,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,3,6,1008,8,6,1,7,1,7,1,7,5,7,1013,8,7,10,7,12,7,1016,9,7,1,7,3,7,1019,8,7,1,8,1,8,1,8,5,8,1024,8,8,10,8,12,8,1027,9,8,1,9,1,9,1,9,5,9,1032,8,9,10,9,12,9,1035,9,9,1,10,1,10,3,10,1039,8,10,1,11,1,11,3,11,1043,8,11,1,11,1,11,1,11,1,12,3,12,1049,8,12,1,12,1,12,1,12,1,12,3,12,1055,8,12,1,12,3,12,1058,8,12,1,12,1,12,3,12,1062,8,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1070,8,12,1,12,1,12,3,12,1074,8,12,1,12,3,12,1077,8,12,1,12,1,12,3,12,1081,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1092,8,12,1,12,4,12,1095,8,12,11,12,12,12,1096,3,12,1099,8,12,1,13,1,13,1,14,1,14,1,14,5,14,1106,8,14,10,14,12,14,1109,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,1129,8,18,1,18,5,18,1132,8,18,10,18,12,18,1135,9,18,1,18,1,18,1,18,1,18,4,18,1141,8,18,11,18,12,18,1142,3,18,1145,8,18,1,19,1,19,1,19,5,19,1150,8,19,10,19,12,19,1153,9,19,1,20,1,20,1,20,5,20,1158,8,20,10,20,12,20,1161,9,20,1,21,1,21,1,21,5,21,1166,8,21,10,21,12,21,1169,9,21,1,22,1,22,1,22,1,22,3,22,1175,8,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1185,8,24,3,24,1187,8,24,5,24,1189,8,24,10,24,12,24,1192,9,24,1,24,1,24,3,24,1196,8,24,1,25,1,25,3,25,1200,8,25,1,25,1,25,1,26,1,26,3,26,1206,8,26,1,26,1,26,1,27,1,27,3,27,1212,8,27,1,28,1,28,3,28,1216,8,28,1,29,1,29,3,29,1220,8,29,1,29,3,29,1223,8,29,1,29,1,29,1,30,1,30,1,30,3,30,1230,8,30,1,30,1,30,1,30,1,30,3,30,1236,8,30,5,30,1238,8,30,10,30,12,30,1241,9,30,1,31,1,31,3,31,1245,8,31,1,31,3,31,1248,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,5,32,1260,8,32,10,32,12,32,1263,9,32,1,33,1,33,3,33,1267,8,33,1,33,3,33,1270,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,1284,8,34,1,34,1,34,1,34,1,34,1,34,3,34,1291,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1302,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1313,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,1333,8,38,1,38,1,38,1,39,1,39,3,39,1339,8,39,1,39,4,39,1342,8,39,11,39,12,39,1343,1,39,1,39,3,39,1348,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,1362,8,40,3,40,1364,8,40,1,41,1,41,1,42,1,42,1,42,3,42,1371,8,42,1,43,1,43,1,44,1,44,3,44,1377,8,44,1,45,1,45,1,45,1,45,1,46,1,46,1,46,5,46,1386,8,46,10,46,12,46,1389,9,46,1,47,1,47,1,47,1,47,1,47,3,47,1396,8,47,1,48,1,48,1,48,1,48,3,48,1402,8,48,1,49,1,49,1,49,1,49,1,49,3,49,1409,8,49,1,49,1,49,1,49,1,49,5,49,1415,8,49,10,49,12,49,1418,9,49,1,49,1,49,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,3,51,1430,8,51,1,51,1,51,1,52,1,52,3,52,1436,8,52,1,52,1,52,3,52,1440,8,52,1,52,3,52,1443,8,52,3,52,1445,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,1453,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1461,8,54,1,54,1,54,1,54,1,54,3,54,1467,8,54,1,54,1,54,1,54,1,54,3,54,1473,8,54,1,54,1,54,1,55,1,55,3,55,1479,8,55,1,55,3,55,1482,8,55,1,55,1,55,1,56,1,56,1,56,5,56,1489,8,56,10,56,12,56,1492,9,56,1,57,1,57,1,57,1,57,5,57,1498,8,57,10,57,12,57,1501,9,57,1,57,1,57,1,58,1,58,3,58,1507,8,58,1,59,1,59,1,59,1,59,5,59,1513,8,59,10,59,12,59,1516,9,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,3,61,1528,8,61,1,62,1,62,1,62,5,62,1533,8,62,10,62,12,62,1536,9,62,1,62,3,62,1539,8,62,1,63,1,63,1,63,5,63,1544,8,63,10,63,12,63,1547,9,63,1,63,3,63,1550,8,63,1,64,1,64,1,64,3,64,1555,8,64,1,65,1,65,1,65,5,65,1560,8,65,10,65,12,65,1563,9,65,1,66,1,66,1,66,1,66,3,66,1569,8,66,1,66,3,66,1572,8,66,1,66,1,66,1,66,1,67,1,67,3,67,1579,8,67,1,67,1,67,3,67,1583,8,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1593,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,1616,8,71,1,72,1,72,1,72,1,72,3,72,1622,8,72,1,73,1,73,3,73,1626,8,73,1,74,1,74,1,74,5,74,1631,8,74,10,74,12,74,1634,9,74,1,75,1,75,1,75,3,75,1639,8,75,1,76,1,76,1,76,5,76,1644,8,76,10,76,12,76,1647,9,76,1,77,3,77,1650,8,77,1,77,1,77,3,77,1654,8,77,1,78,1,78,1,79,1,79,3,79,1660,8,79,1,80,1,80,1,80,3,80,1665,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,3,82,1674,8,82,1,82,3,82,1677,8,82,1,82,1,82,1,82,1,82,3,82,1683,8,82,1,83,1,83,1,83,3,83,1688,8,83,1,83,1,83,1,84,1,84,1,84,1,84,3,84,1696,8,84,1,85,1,85,1,85,5,85,1701,8,85,10,85,12,85,1704,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,1723,8,88,10,88,12,88,1726,9,88,1,88,3,88,1729,8,88,3,88,1731,8,88,1,88,1,88,3,88,1735,8,88,1,89,1,89,1,89,1,89,1,89,5,89,1742,8,89,10,89,12,89,1745,9,89,1,89,3,89,1748,8,89,3,89,1750,8,89,1,89,1,89,3,89,1754,8,89,1,90,1,90,1,90,1,90,1,90,5,90,1761,8,90,10,90,12,90,1764,9,90,1,90,3,90,1767,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,1803,8,96,10,96,12,96,1806,9,96,1,96,3,96,1809,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,1829,8,99,1,99,3,99,1832,8,99,1,99,1,99,1,99,1,99,3,99,1838,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,1858,8,100,1,100,5,100,1861,8,100,10,100,12,100,1864,9,100,1,101,1,101,1,101,3,101,1869,8,101,1,101,5,101,1872,8,101,10,101,12,101,1875,9,101,3,101,1877,8,101,1,102,1,102,3,102,1881,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,1908,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,1916,8,105,1,106,3,106,1919,8,106,1,106,1,106,1,106,5,106,1924,8,106,10,106,12,106,1927,9,106,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,3,109,1939,8,109,1,109,1,109,3,109,1943,8,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,1955,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,5,112,1966,8,112,10,112,12,112,1969,9,112,1,112,1,112,3,112,1973,8,112,1,113,1,113,1,113,1,113,1,113,3,113,1980,8,113,1,114,1,114,3,114,1984,8,114,1,115,1,115,1,115,5,115,1989,8,115,10,115,12,115,1992,9,115,1,116,1,116,1,116,1,116,5,116,1998,8,116,10,116,12,116,2001,9,116,1,117,1,117,1,117,1,117,5,117,2007,8,117,10,117,12,117,2010,9,117,1,118,1,118,1,118,1,118,1,118,3,118,2017,8,118,1,119,1,119,3,119,2021,8,119,1,119,1,119,3,119,2025,8,119,1,120,1,120,1,120,1,120,1,120,3,120,2032,8,120,3,120,2034,8,120,1,121,3,121,2037,8,121,1,121,1,121,1,121,3,121,2042,8,121,1,121,1,121,1,121,3,121,2047,8,121,1,122,1,122,3,122,2051,8,122,1,122,1,122,1,122,5,122,2056,8,122,10,122,12,122,2059,9,122,1,122,1,122,1,122,1,122,3,122,2065,8,122,1,122,1,122,3,122,2069,8,122,1,122,3,122,2072,8,122,1,122,1,122,3,122,2076,8,122,1,122,1,122,3,122,2080,8,122,3,122,2082,8,122,1,123,1,123,1,123,1,123,1,124,1,124,1,124,5,124,2091,8,124,10,124,12,124,2094,9,124,1,125,1,125,1,125,1,125,5,125,2100,8,125,10,125,12,125,2103,9,125,1,125,1,125,3,125,2107,8,125,1,125,1,125,1,125,1,125,3,125,2113,8,125,1,125,1,125,1,125,3,125,2118,8,125,1,125,3,125,2121,8,125,1,125,1,125,3,125,2125,8,125,1,125,1,125,3,125,2129,8,125,1,126,3,126,2132,8,126,1,127,3,127,2135,8,127,1,127,1,127,3,127,2139,8,127,1,127,1,127,1,127,1,127,5,127,2145,8,127,10,127,12,127,2148,9,127,1,127,3,127,2151,8,127,1,127,1,127,3,127,2155,8,127,1,127,3,127,2158,8,127,1,127,3,127,2161,8,127,1,127,3,127,2164,8,127,1,127,1,127,3,127,2168,8,127,1,127,3,127,2171,8,127,1,127,3,127,2174,8,127,1,128,1,128,1,128,3,128,2179,8,128,1,128,3,128,2182,8,128,1,128,3,128,2185,8,128,1,128,3,128,2188,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,2202,8,129,3,129,2204,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2215,8,130,1,131,1,131,1,131,1,132,1,132,1,132,5,132,2223,8,132,10,132,12,132,2226,9,132,1,133,1,133,1,133,1,133,1,134,1,134,1,134,3,134,2235,8,134,1,134,3,134,2238,8,134,1,134,1,134,1,134,1,134,1,134,3,134,2245,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,2269,8,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,5,138,2278,8,138,10,138,12,138,2281,9,138,1,139,4,139,2284,8,139,11,139,12,139,2285,1,140,1,140,3,140,2290,8,140,1,141,1,141,3,141,2294,8,141,1,141,1,141,3,141,2298,8,141,1,141,1,141,3,141,2302,8,141,1,141,1,141,3,141,2306,8,141,1,141,1,141,3,141,2310,8,141,1,141,1,141,3,141,2314,8,141,1,141,1,141,1,141,1,141,3,141,2320,8,141,1,142,1,142,1,142,1,142,1,142,3,142,2327,8,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,3,142,2337,8,142,1,143,1,143,1,144,1,144,1,144,1,144,1,144,5,144,2346,8,144,10,144,12,144,2349,9,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,5,146,2359,8,146,10,146,12,146,2362,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,2375,8,149,10,149,12,149,2378,9,149,1,150,1,150,1,151,1,151,1,151,5,151,2385,8,151,10,151,12,151,2388,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,2407,8,158,1,158,1,158,1,159,1,159,3,159,2413,8,159,1,159,1,159,1,159,1,159,1,159,3,159,2420,8,159,1,160,1,160,1,160,5,160,2425,8,160,10,160,12,160,2428,9,160,1,161,1,161,1,161,1,161,1,161,3,161,2435,8,161,1,162,1,162,1,163,1,163,1,163,5,163,2442,8,163,10,163,12,163,2445,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,2481,8,168,3,168,2483,8,168,1,169,3,169,2486,8,169,1,169,1,169,1,169,3,169,2491,8,169,1,169,1,169,3,169,2495,8,169,5,169,2497,8,169,10,169,12,169,2500,9,169,1,170,1,170,1,170,3,170,2505,8,170,1,171,1,171,1,171,1,171,3,171,2511,8,171,1,171,1,171,3,171,2515,8,171,1,172,1,172,1,172,3,172,2520,8,172,1,172,1,172,1,172,3,172,2525,8,172,3,172,2527,8,172,1,173,1,173,3,173,2531,8,173,1,173,1,173,1,173,3,173,2536,8,173,1,173,3,173,2539,8,173,3,173,2541,8,173,1,173,1,173,3,173,2545,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,2556,8,174,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,3,176,2567,8,176,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,3,179,2578,8,179,1,179,1,179,3,179,2582,8,179,1,179,1,179,3,179,2586,8,179,1,179,1,179,3,179,2590,8,179,1,179,3,179,2593,8,179,1,179,1,179,3,179,2597,8,179,1,179,3,179,2600,8,179,1,180,1,180,1,180,1,180,3,180,2606,8,180,1,181,1,181,1,181,1,181,1,181,5,181,2613,8,181,10,181,12,181,2616,9,181,3,181,2618,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,2632,8,182,1,182,1,182,1,182,1,182,3,182,2638,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,2651,8,183,1,183,1,183,1,183,1,183,1,184,3,184,2658,8,184,1,184,1,184,1,184,3,184,2663,8,184,1,185,1,185,1,185,1,186,1,186,3,186,2670,8,186,1,187,1,187,1,187,5,187,2675,8,187,10,187,12,187,2678,9,187,1,188,1,188,1,188,1,188,1,189,1,189,3,189,2686,8,189,1,190,1,190,1,190,3,190,2691,8,190,1,190,1,190,1,190,1,190,1,190,1,190,3,190,2699,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,2712,8,191,10,191,12,191,2715,9,191,1,192,1,192,1,192,3,192,2720,8,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,2728,8,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,3,194,2737,8,194,1,194,1,194,3,194,2741,8,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,3,195,2750,8,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,3,196,2762,8,196,1,197,1,197,1,197,1,197,1,197,3,197,2769,8,197,1,197,1,197,1,197,1,197,1,197,1,197,3,197,2777,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,2798,8,201,1,201,1,201,1,201,1,201,1,201,1,201,3,201,2806,8,201,1,202,1,202,1,202,1,203,1,203,1,203,1,203,3,203,2815,8,203,1,204,1,204,1,204,1,204,1,205,1,205,1,206,1,206,3,206,2825,8,206,1,207,1,207,1,207,1,207,1,207,5,207,2832,8,207,10,207,12,207,2835,9,207,1,207,1,207,3,207,2839,8,207,1,208,1,208,1,209,1,209,1,209,3,209,2846,8,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,2856,8,209,1,209,1,209,1,209,3,209,2861,8,209,1,209,1,209,1,209,1,209,1,209,5,209,2868,8,209,10,209,12,209,2871,9,209,1,209,3,209,2874,8,209,1,209,1,209,3,209,2878,8,209,1,209,3,209,2881,8,209,1,209,3,209,2884,8,209,1,209,3,209,2887,8,209,1,209,3,209,2890,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,2898,8,210,1,211,1,211,1,211,3,211,2903,8,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,3,212,2914,8,212,1,213,1,213,1,213,1,214,1,214,3,214,2921,8,214,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,5,216,2932,8,216,10,216,12,216,2935,9,216,1,217,1,217,1,217,5,217,2940,8,217,10,217,12,217,2943,9,217,1,218,1,218,3,218,2947,8,218,1,219,1,219,1,219,5,219,2952,8,219,10,219,12,219,2955,9,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,2967,8,220,1,221,1,221,1,221,1,221,1,222,1,222,1,222,5,222,2976,8,222,10,222,12,222,2979,9,222,1,223,1,223,1,223,1,223,1,224,1,224,1,224,3,224,2988,8,224,1,225,1,225,1,225,1,225,3,225,2994,8,225,1,226,1,226,1,226,1,226,1,226,5,226,3001,8,226,10,226,12,226,3004,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,3018,8,228,10,228,12,228,3021,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,3041,8,232,10,232,12,232,3044,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,3063,8,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,5,234,3072,8,234,10,234,12,234,3075,9,234,1,235,1,235,1,235,1,235,1,235,3,235,3082,8,235,1,236,1,236,1,236,1,236,1,236,1,236,5,236,3090,8,236,10,236,12,236,3093,9,236,1,237,1,237,3,237,3097,8,237,1,238,1,238,3,238,3101,8,238,1,238,1,238,1,239,1,239,3,239,3107,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,3143,8,245,10,245,12,245,3146,9,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,5,246,3155,8,246,10,246,12,246,3158,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,3199,8,255,1,255,1,255,1,256,1,256,1,256,1,257,3,257,3207,8,257,1,257,3,257,3210,8,257,1,257,1,257,3,257,3214,8,257,1,258,1,258,3,258,3218,8,258,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3226,8,259,10,259,12,259,3229,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3239,8,259,10,259,12,259,3242,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3252,8,259,10,259,12,259,3255,9,259,1,259,1,259,3,259,3259,8,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3269,8,260,10,260,12,260,3272,9,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3280,8,260,10,260,12,260,3283,9,260,1,260,1,260,3,260,3287,8,260,1,260,3,260,3290,8,260,1,261,1,261,3,261,3294,8,261,1,261,1,261,3,261,3298,8,261,1,262,1,262,3,262,3302,8,262,1,262,3,262,3305,8,262,1,263,1,263,1,264,1,264,1,265,1,265,1,265,1,265,1,265,5,265,3316,8,265,10,265,12,265,3319,9,265,1,265,3,265,3322,8,265,1,265,1,265,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,3,267,3334,8,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,5,269,3346,8,269,10,269,12,269,3349,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,3363,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,3378,8,274,1,274,3,274,3381,8,274,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,5,276,3391,8,276,10,276,12,276,3394,9,276,3,276,3396,8,276,1,276,1,276,1,277,1,277,1,277,1,277,1,278,1,278,3,278,3406,8,278,1,279,1,279,1,279,1,279,5,279,3412,8,279,10,279,12,279,3415,9,279,1,279,1,279,1,279,3,279,3420,8,279,1,280,1,280,1,280,1,280,5,280,3426,8,280,10,280,12,280,3429,9,280,1,280,1,280,1,281,1,281,1,281,3,281,3436,8,281,1,282,1,282,1,282,1,282,1,282,3,282,3443,8,282,1,282,1,282,3,282,3447,8,282,1,282,1,282,1,283,1,283,1,283,1,283,3,283,3455,8,283,1,284,1,284,1,284,1,284,3,284,3461,8,284,1,284,1,284,1,284,1,284,3,284,3467,8,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,5,285,3477,8,285,10,285,12,285,3480,9,285,1,285,3,285,3483,8,285,3,285,3485,8,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,286,5,286,3495,8,286,10,286,12,286,3498,9,286,1,286,3,286,3501,8,286,1,286,1,286,1,286,3,286,3506,8,286,1,287,1,287,1,287,1,287,3,287,3512,8,287,1,287,1,287,1,287,5,287,3517,8,287,10,287,12,287,3520,9,287,1,287,3,287,3523,8,287,1,288,1,288,3,288,3527,8,288,1,289,3,289,3530,8,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,5,290,3541,8,290,10,290,12,290,3544,9,290,1,290,1,290,1,290,1,290,5,290,3550,8,290,10,290,12,290,3553,9,290,1,290,3,290,3556,8,290,1,290,1,290,1,290,3,290,3561,8,290,1,291,1,291,1,291,1,291,3,291,3567,8,291,1,291,1,291,1,291,1,291,1,291,5,291,3574,8,291,10,291,12,291,3577,9,291,1,291,1,291,1,291,1,291,5,291,3583,8,291,10,291,12,291,3586,9,291,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,3,292,3602,8,292,1,292,1,292,3,292,3606,8,292,1,292,1,292,3,292,3610,8,292,3,292,3612,8,292,1,293,1,293,3,293,3616,8,293,1,294,1,294,1,294,5,294,3621,8,294,10,294,12,294,3624,9,294,1,294,3,294,3627,8,294,1,294,1,294,3,294,3631,8,294,3,294,3633,8,294,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,5,296,3648,8,296,10,296,12,296,3651,9,296,1,297,1,297,3,297,3655,8,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,300,1,300,1,300,5,300,3677,8,300,10,300,12,300,3680,9,300,1,301,1,301,3,301,3684,8,301,1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,5,303,3700,8,303,10,303,12,303,3703,9,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,305,1,305,1,305,5,305,3716,8,305,10,305,12,305,3719,9,305,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,307,5,307,3732,8,307,10,307,12,307,3735,9,307,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,3,310,3749,8,310,1,311,1,311,1,311,5,311,3754,8,311,10,311,12,311,3757,9,311,1,312,1,312,1,312,1,312,1,312,3,312,3764,8,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,5,313,3773,8,313,10,313,12,313,3776,9,313,1,313,1,313,4,313,3780,8,313,11,313,12,313,3781,1,313,5,313,3785,8,313,10,313,12,313,3788,9,313,1,313,5,313,3791,8,313,10,313,12,313,3794,9,313,3,313,3796,8,313,1,314,3,314,3799,8,314,1,314,1,314,1,314,1,314,1,314,3,314,3806,8,314,1,315,3,315,3809,8,315,1,315,3,315,3812,8,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,3,315,3821,8,315,1,316,1,316,1,316,3,316,3826,8,316,1,316,3,316,3829,8,316,1,316,1,316,1,316,1,316,1,316,1,316,5,316,3837,8,316,10,316,12,316,3840,9,316,1,316,3,316,3843,8,316,3,316,3845,8,316,1,316,1,316,1,316,1,316,1,316,3,316,3852,8,316,1,316,3,316,3855,8,316,1,316,1,316,3,316,3859,8,316,3,316,3861,8,316,1,316,3,316,3864,8,316,1,317,1,317,1,317,3,317,3869,8,317,1,318,3,318,3872,8,318,1,318,1,318,1,318,3,318,3877,8,318,1,319,1,319,1,319,1,319,1,319,1,319,5,319,3885,8,319,10,319,12,319,3888,9,319,1,319,1,319,3,319,3892,8,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,5,320,3901,8,320,10,320,12,320,3904,9,320,1,320,3,320,3907,8,320,1,320,1,320,3,320,3911,8,320,3,320,3913,8,320,1,320,1,320,3,320,3917,8,320,1,320,1,320,1,320,3,320,3922,8,320,1,320,1,320,1,320,1,320,5,320,3928,8,320,10,320,12,320,3931,9,320,3,320,3933,8,320,1,320,3,320,3936,8,320,1,320,3,320,3939,8,320,1,321,1,321,1,321,3,321,3944,8,321,1,321,1,321,1,322,1,322,3,322,3950,8,322,1,322,3,322,3953,8,322,1,323,1,323,3,323,3957,8,323,1,324,1,324,1,324,1,324,3,324,3963,8,324,1,325,1,325,1,325,1,325,1,325,1,325,3,325,3971,8,325,1,325,3,325,3974,8,325,1,326,1,326,1,326,1,326,1,326,3,326,3981,8,326,1,326,1,326,3,326,3985,8,326,1,326,3,326,3988,8,326,1,327,1,327,3,327,3992,8,327,1,328,1,328,1,328,5,328,3997,8,328,10,328,12,328,4e3,9,328,1,329,1,329,1,329,1,329,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,5,332,4018,8,332,10,332,12,332,4021,9,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,3,333,4030,8,333,1,333,1,333,3,333,4034,8,333,1,333,3,333,4037,8,333,1,334,1,334,1,334,1,334,5,334,4043,8,334,10,334,12,334,4046,9,334,1,334,1,334,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,3,337,4061,8,337,1,337,1,337,1,337,1,337,5,337,4067,8,337,10,337,12,337,4070,9,337,1,338,1,338,1,338,1,338,1,338,3,338,4077,8,338,1,339,1,339,1,339,1,340,1,340,1,340,3,340,4085,8,340,1,341,1,341,1,341,1,341,1,341,1,342,1,342,3,342,4094,8,342,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,5,345,4110,8,345,10,345,12,345,4113,9,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,5,347,4127,8,347,10,347,12,347,4130,9,347,1,347,1,347,1,348,1,348,1,348,1,348,3,348,4138,8,348,1,348,1,348,1,349,1,349,1,349,5,349,4145,8,349,10,349,12,349,4148,9,349,1,350,1,350,1,350,1,350,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,5,353,4164,8,353,10,353,12,353,4167,9,353,1,354,1,354,1,354,1,354,1,355,1,355,1,356,1,356,1,356,3,356,4178,8,356,1,356,1,356,1,357,1,357,1,358,1,358,1,358,1,358,3,358,4188,8,358,1,359,1,359,1,359,1,359,1,359,1,360,1,360,3,360,4197,8,360,1,361,1,361,1,362,1,362,1,362,1,363,1,363,1,363,5,363,4207,8,363,10,363,12,363,4210,9,363,1,364,1,364,1,364,1,364,1,365,1,365,1,366,1,366,1,366,1,366,1,367,3,367,4223,8,367,1,367,3,367,4226,8,367,1,367,3,367,4229,8,367,1,367,3,367,4232,8,367,1,368,1,368,1,369,1,369,3,369,4238,8,369,1,369,1,369,1,369,1,370,1,370,1,371,1,371,1,371,3,371,4248,8,371,1,372,1,372,1,373,1,373,3,373,4254,8,373,1,374,1,374,1,374,1,374,1,374,1,375,1,375,1,375,1,375,3,375,4265,8,375,1,375,3,375,4268,8,375,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,3,376,4280,8,376,1,377,1,377,1,377,1,378,1,378,1,378,1,378,1,378,3,378,4290,8,378,1,379,1,379,1,379,1,379,3,379,4296,8,379,1,380,1,380,1,381,1,381,1,382,1,382,1,382,1,382,1,382,3,382,4307,8,382,1,383,1,383,1,383,5,383,4312,8,383,10,383,12,383,4315,9,383,1,383,3,383,4318,8,383,1,384,1,384,1,384,1,385,1,385,1,386,1,386,3,386,4327,8,386,1,387,1,387,1,387,1,387,1,387,1,387,1,387,3,387,4336,8,387,1,388,1,388,1,388,1,388,1,388,1,388,3,388,4344,8,388,1,389,1,389,1,389,1,389,1,389,3,389,4351,8,389,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,3,390,4361,8,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,3,391,4370,8,391,1,392,1,392,1,392,1,392,1,392,1,392,1,392,3,392,4379,8,392,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,3,393,4389,8,393,1,394,1,394,3,394,4393,8,394,1,395,1,395,3,395,4397,8,395,1,396,1,396,3,396,4401,8,396,1,397,1,397,3,397,4405,8,397,1,398,1,398,3,398,4409,8,398,1,399,1,399,3,399,4413,8,399,1,400,1,400,3,400,4417,8,400,1,401,1,401,3,401,4421,8,401,1,402,1,402,3,402,4425,8,402,1,403,1,403,3,403,4429,8,403,1,404,1,404,3,404,4433,8,404,1,405,1,405,3,405,4437,8,405,1,406,1,406,1,406,3,406,4442,8,406,1,407,1,407,1,407,3,407,4447,8,407,1,408,1,408,1,408,3,408,4452,8,408,1,408,1,408,3,408,4456,8,408,1,409,1,409,3,409,4460,8,409,1,410,1,410,1,410,3,410,4465,8,410,1,411,3,411,4468,8,411,1,411,1,411,1,412,1,412,3,412,4474,8,412,1,413,3,413,4477,8,413,1,413,1,413,1,414,1,414,1,414,1,414,1,414,1,414,1,414,1,414,3,414,4489,8,414,1,415,1,415,1,416,1,416,1,417,1,417,1,418,1,418,1,419,1,419,1,420,1,420,1,421,1,421,1,422,1,422,1,423,1,423,1,424,1,424,1,425,1,425,1,426,1,426,1,427,1,427,1,428,1,428,1,428,1,428,1,428,3,428,4522,8,428,1,429,5,429,4525,8,429,10,429,12,429,4528,9,429,1,429,1,429,4,429,4532,8,429,11,429,12,429,4533,1,429,5,429,4537,8,429,10,429,12,429,4540,9,429,1,429,5,429,4543,8,429,10,429,12,429,4546,9,429,1,429,1,429,1,430,1,430,1,430,3,430,4553,8,430,3,430,4555,8,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,4572,8,431,1,432,1,432,1,432,1,433,1,433,1,433,1,434,1,434,1,434,1,435,1,435,3,435,4585,8,435,1,435,0,0,436,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,0,39,2,0,54,54,277,277,6,0,145,145,156,156,181,181,186,186,236,236,255,255,1,0,6,9,1,0,17,18,1,0,20,22,2,0,17,19,197,197,2,0,115,115,121,121,4,0,121,121,133,133,293,293,300,300,2,0,81,81,297,297,2,0,52,52,103,103,2,0,25,25,203,203,2,0,44,44,110,110,2,0,164,164,264,264,3,0,106,106,183,183,209,209,2,0,65,65,279,279,2,0,207,207,266,266,2,0,55,55,278,278,3,0,190,191,193,193,263,263,2,0,42,42,112,112,2,0,148,148,305,305,2,0,58,58,281,281,2,0,120,120,302,302,3,0,45,45,104,104,239,239,3,0,58,58,258,258,281,281,2,0,143,143,304,304,3,0,107,107,231,231,280,280,2,0,41,41,274,274,2,0,78,78,262,262,3,0,150,150,233,233,259,259,2,0,139,139,226,226,1,0,320,321,21,0,54,54,66,67,71,72,89,89,91,93,116,116,128,128,142,143,153,153,174,176,184,184,197,197,199,199,230,230,234,234,250,251,257,257,265,265,277,277,296,296,312,313,3,0,49,49,120,120,272,272,11,0,44,44,51,51,53,53,110,110,124,124,152,152,169,169,182,182,298,298,314,314,316,316,58,0,40,43,45,48,50,50,52,52,55,59,61,65,68,68,70,70,73,75,79,79,81,87,90,90,94,100,102,105,107,109,112,115,117,118,121,123,125,125,127,127,129,132,134,137,139,141,144,145,147,149,151,151,154,165,167,168,170,171,178,178,180,181,185,193,195,196,200,204,206,208,210,210,212,212,215,226,228,229,231,232,235,240,242,244,246,248,252,253,255,256,258,258,261,261,263,264,268,271,274,276,278,283,285,292,295,295,297,297,299,305,307,308,311,311,317,318,50,0,40,43,45,48,50,50,52,52,55,59,61,65,68,68,70,70,73,76,79,79,81,88,90,90,94,105,107,109,111,115,117,118,121,123,125,127,129,132,134,137,139,141,144,145,147,149,151,151,154,168,170,173,177,181,185,196,198,198,200,208,210,229,231,232,235,240,242,244,246,249,252,256,258,258,260,261,263,264,266,266,268,271,274,276,278,283,285,292,295,295,297,297,299,308,310,311,315,315,317,318,12,0,69,69,106,106,119,119,138,138,183,183,209,209,245,245,267,267,273,273,284,284,294,294,309,309,2,0,133,133,293,293,1,0,322,323,4916,0,877,1,0,0,0,2,882,1,0,0,0,4,908,1,0,0,0,6,916,1,0,0,0,8,940,1,0,0,0,10,947,1,0,0,0,12,1007,1,0,0,0,14,1018,1,0,0,0,16,1020,1,0,0,0,18,1028,1,0,0,0,20,1036,1,0,0,0,22,1040,1,0,0,0,24,1098,1,0,0,0,26,1100,1,0,0,0,28,1102,1,0,0,0,30,1110,1,0,0,0,32,1113,1,0,0,0,34,1117,1,0,0,0,36,1120,1,0,0,0,38,1146,1,0,0,0,40,1154,1,0,0,0,42,1162,1,0,0,0,44,1174,1,0,0,0,46,1176,1,0,0,0,48,1190,1,0,0,0,50,1199,1,0,0,0,52,1205,1,0,0,0,54,1211,1,0,0,0,56,1215,1,0,0,0,58,1217,1,0,0,0,60,1226,1,0,0,0,62,1242,1,0,0,0,64,1251,1,0,0,0,66,1264,1,0,0,0,68,1290,1,0,0,0,70,1312,1,0,0,0,72,1314,1,0,0,0,74,1321,1,0,0,0,76,1328,1,0,0,0,78,1336,1,0,0,0,80,1351,1,0,0,0,82,1365,1,0,0,0,84,1370,1,0,0,0,86,1372,1,0,0,0,88,1376,1,0,0,0,90,1378,1,0,0,0,92,1382,1,0,0,0,94,1390,1,0,0,0,96,1401,1,0,0,0,98,1403,1,0,0,0,100,1421,1,0,0,0,102,1425,1,0,0,0,104,1444,1,0,0,0,106,1452,1,0,0,0,108,1454,1,0,0,0,110,1476,1,0,0,0,112,1485,1,0,0,0,114,1493,1,0,0,0,116,1506,1,0,0,0,118,1508,1,0,0,0,120,1519,1,0,0,0,122,1527,1,0,0,0,124,1529,1,0,0,0,126,1540,1,0,0,0,128,1551,1,0,0,0,130,1556,1,0,0,0,132,1564,1,0,0,0,134,1578,1,0,0,0,136,1592,1,0,0,0,138,1596,1,0,0,0,140,1600,1,0,0,0,142,1615,1,0,0,0,144,1617,1,0,0,0,146,1623,1,0,0,0,148,1627,1,0,0,0,150,1635,1,0,0,0,152,1640,1,0,0,0,154,1649,1,0,0,0,156,1655,1,0,0,0,158,1659,1,0,0,0,160,1664,1,0,0,0,162,1666,1,0,0,0,164,1682,1,0,0,0,166,1687,1,0,0,0,168,1691,1,0,0,0,170,1697,1,0,0,0,172,1705,1,0,0,0,174,1712,1,0,0,0,176,1717,1,0,0,0,178,1736,1,0,0,0,180,1755,1,0,0,0,182,1770,1,0,0,0,184,1775,1,0,0,0,186,1780,1,0,0,0,188,1785,1,0,0,0,190,1792,1,0,0,0,192,1797,1,0,0,0,194,1812,1,0,0,0,196,1817,1,0,0,0,198,1824,1,0,0,0,200,1857,1,0,0,0,202,1876,1,0,0,0,204,1880,1,0,0,0,206,1882,1,0,0,0,208,1907,1,0,0,0,210,1909,1,0,0,0,212,1918,1,0,0,0,214,1928,1,0,0,0,216,1933,1,0,0,0,218,1938,1,0,0,0,220,1946,1,0,0,0,222,1951,1,0,0,0,224,1956,1,0,0,0,226,1979,1,0,0,0,228,1981,1,0,0,0,230,1985,1,0,0,0,232,1993,1,0,0,0,234,2002,1,0,0,0,236,2016,1,0,0,0,238,2024,1,0,0,0,240,2026,1,0,0,0,242,2036,1,0,0,0,244,2048,1,0,0,0,246,2083,1,0,0,0,248,2087,1,0,0,0,250,2095,1,0,0,0,252,2131,1,0,0,0,254,2134,1,0,0,0,256,2175,1,0,0,0,258,2203,1,0,0,0,260,2214,1,0,0,0,262,2216,1,0,0,0,264,2219,1,0,0,0,266,2227,1,0,0,0,268,2234,1,0,0,0,270,2268,1,0,0,0,272,2270,1,0,0,0,274,2272,1,0,0,0,276,2274,1,0,0,0,278,2283,1,0,0,0,280,2287,1,0,0,0,282,2319,1,0,0,0,284,2336,1,0,0,0,286,2338,1,0,0,0,288,2340,1,0,0,0,290,2352,1,0,0,0,292,2355,1,0,0,0,294,2363,1,0,0,0,296,2369,1,0,0,0,298,2371,1,0,0,0,300,2379,1,0,0,0,302,2381,1,0,0,0,304,2389,1,0,0,0,306,2393,1,0,0,0,308,2395,1,0,0,0,310,2397,1,0,0,0,312,2399,1,0,0,0,314,2401,1,0,0,0,316,2406,1,0,0,0,318,2410,1,0,0,0,320,2421,1,0,0,0,322,2434,1,0,0,0,324,2436,1,0,0,0,326,2438,1,0,0,0,328,2446,1,0,0,0,330,2451,1,0,0,0,332,2456,1,0,0,0,334,2462,1,0,0,0,336,2482,1,0,0,0,338,2485,1,0,0,0,340,2501,1,0,0,0,342,2514,1,0,0,0,344,2516,1,0,0,0,346,2528,1,0,0,0,348,2555,1,0,0,0,350,2557,1,0,0,0,352,2560,1,0,0,0,354,2568,1,0,0,0,356,2570,1,0,0,0,358,2599,1,0,0,0,360,2605,1,0,0,0,362,2607,1,0,0,0,364,2631,1,0,0,0,366,2650,1,0,0,0,368,2662,1,0,0,0,370,2664,1,0,0,0,372,2669,1,0,0,0,374,2671,1,0,0,0,376,2679,1,0,0,0,378,2685,1,0,0,0,380,2687,1,0,0,0,382,2703,1,0,0,0,384,2719,1,0,0,0,386,2721,1,0,0,0,388,2731,1,0,0,0,390,2745,1,0,0,0,392,2753,1,0,0,0,394,2763,1,0,0,0,396,2778,1,0,0,0,398,2781,1,0,0,0,400,2790,1,0,0,0,402,2793,1,0,0,0,404,2807,1,0,0,0,406,2814,1,0,0,0,408,2816,1,0,0,0,410,2820,1,0,0,0,412,2824,1,0,0,0,414,2838,1,0,0,0,416,2840,1,0,0,0,418,2842,1,0,0,0,420,2897,1,0,0,0,422,2899,1,0,0,0,424,2909,1,0,0,0,426,2915,1,0,0,0,428,2920,1,0,0,0,430,2922,1,0,0,0,432,2926,1,0,0,0,434,2936,1,0,0,0,436,2946,1,0,0,0,438,2948,1,0,0,0,440,2966,1,0,0,0,442,2968,1,0,0,0,444,2972,1,0,0,0,446,2980,1,0,0,0,448,2984,1,0,0,0,450,2989,1,0,0,0,452,2995,1,0,0,0,454,3007,1,0,0,0,456,3012,1,0,0,0,458,3024,1,0,0,0,460,3027,1,0,0,0,462,3031,1,0,0,0,464,3034,1,0,0,0,466,3062,1,0,0,0,468,3064,1,0,0,0,470,3081,1,0,0,0,472,3083,1,0,0,0,474,3096,1,0,0,0,476,3098,1,0,0,0,478,3104,1,0,0,0,480,3110,1,0,0,0,482,3116,1,0,0,0,484,3123,1,0,0,0,486,3126,1,0,0,0,488,3133,1,0,0,0,490,3137,1,0,0,0,492,3149,1,0,0,0,494,3161,1,0,0,0,496,3164,1,0,0,0,498,3168,1,0,0,0,500,3172,1,0,0,0,502,3178,1,0,0,0,504,3181,1,0,0,0,506,3186,1,0,0,0,508,3190,1,0,0,0,510,3195,1,0,0,0,512,3202,1,0,0,0,514,3209,1,0,0,0,516,3215,1,0,0,0,518,3258,1,0,0,0,520,3260,1,0,0,0,522,3293,1,0,0,0,524,3299,1,0,0,0,526,3306,1,0,0,0,528,3308,1,0,0,0,530,3310,1,0,0,0,532,3325,1,0,0,0,534,3333,1,0,0,0,536,3335,1,0,0,0,538,3342,1,0,0,0,540,3350,1,0,0,0,542,3354,1,0,0,0,544,3362,1,0,0,0,546,3364,1,0,0,0,548,3380,1,0,0,0,550,3382,1,0,0,0,552,3386,1,0,0,0,554,3399,1,0,0,0,556,3405,1,0,0,0,558,3419,1,0,0,0,560,3421,1,0,0,0,562,3435,1,0,0,0,564,3437,1,0,0,0,566,3450,1,0,0,0,568,3456,1,0,0,0,570,3468,1,0,0,0,572,3486,1,0,0,0,574,3507,1,0,0,0,576,3526,1,0,0,0,578,3529,1,0,0,0,580,3534,1,0,0,0,582,3562,1,0,0,0,584,3611,1,0,0,0,586,3615,1,0,0,0,588,3632,1,0,0,0,590,3634,1,0,0,0,592,3640,1,0,0,0,594,3654,1,0,0,0,596,3656,1,0,0,0,598,3661,1,0,0,0,600,3668,1,0,0,0,602,3683,1,0,0,0,604,3685,1,0,0,0,606,3691,1,0,0,0,608,3709,1,0,0,0,610,3712,1,0,0,0,612,3720,1,0,0,0,614,3724,1,0,0,0,616,3736,1,0,0,0,618,3738,1,0,0,0,620,3743,1,0,0,0,622,3750,1,0,0,0,624,3758,1,0,0,0,626,3774,1,0,0,0,628,3798,1,0,0,0,630,3808,1,0,0,0,632,3825,1,0,0,0,634,3865,1,0,0,0,636,3871,1,0,0,0,638,3878,1,0,0,0,640,3938,1,0,0,0,642,3943,1,0,0,0,644,3952,1,0,0,0,646,3954,1,0,0,0,648,3958,1,0,0,0,650,3964,1,0,0,0,652,3975,1,0,0,0,654,3991,1,0,0,0,656,3993,1,0,0,0,658,4001,1,0,0,0,660,4005,1,0,0,0,662,4007,1,0,0,0,664,4013,1,0,0,0,666,4024,1,0,0,0,668,4038,1,0,0,0,670,4049,1,0,0,0,672,4051,1,0,0,0,674,4056,1,0,0,0,676,4076,1,0,0,0,678,4078,1,0,0,0,680,4081,1,0,0,0,682,4086,1,0,0,0,684,4093,1,0,0,0,686,4095,1,0,0,0,688,4099,1,0,0,0,690,4104,1,0,0,0,692,4116,1,0,0,0,694,4121,1,0,0,0,696,4133,1,0,0,0,698,4141,1,0,0,0,700,4149,1,0,0,0,702,4153,1,0,0,0,704,4155,1,0,0,0,706,4160,1,0,0,0,708,4168,1,0,0,0,710,4172,1,0,0,0,712,4177,1,0,0,0,714,4181,1,0,0,0,716,4187,1,0,0,0,718,4189,1,0,0,0,720,4196,1,0,0,0,722,4198,1,0,0,0,724,4200,1,0,0,0,726,4203,1,0,0,0,728,4211,1,0,0,0,730,4215,1,0,0,0,732,4217,1,0,0,0,734,4222,1,0,0,0,736,4233,1,0,0,0,738,4235,1,0,0,0,740,4242,1,0,0,0,742,4244,1,0,0,0,744,4249,1,0,0,0,746,4253,1,0,0,0,748,4255,1,0,0,0,750,4267,1,0,0,0,752,4279,1,0,0,0,754,4281,1,0,0,0,756,4289,1,0,0,0,758,4291,1,0,0,0,760,4297,1,0,0,0,762,4299,1,0,0,0,764,4301,1,0,0,0,766,4308,1,0,0,0,768,4319,1,0,0,0,770,4322,1,0,0,0,772,4326,1,0,0,0,774,4335,1,0,0,0,776,4343,1,0,0,0,778,4350,1,0,0,0,780,4360,1,0,0,0,782,4369,1,0,0,0,784,4378,1,0,0,0,786,4388,1,0,0,0,788,4392,1,0,0,0,790,4396,1,0,0,0,792,4400,1,0,0,0,794,4404,1,0,0,0,796,4408,1,0,0,0,798,4412,1,0,0,0,800,4416,1,0,0,0,802,4420,1,0,0,0,804,4424,1,0,0,0,806,4428,1,0,0,0,808,4432,1,0,0,0,810,4436,1,0,0,0,812,4441,1,0,0,0,814,4446,1,0,0,0,816,4451,1,0,0,0,818,4459,1,0,0,0,820,4464,1,0,0,0,822,4467,1,0,0,0,824,4473,1,0,0,0,826,4476,1,0,0,0,828,4488,1,0,0,0,830,4490,1,0,0,0,832,4492,1,0,0,0,834,4494,1,0,0,0,836,4496,1,0,0,0,838,4498,1,0,0,0,840,4500,1,0,0,0,842,4502,1,0,0,0,844,4504,1,0,0,0,846,4506,1,0,0,0,848,4508,1,0,0,0,850,4510,1,0,0,0,852,4512,1,0,0,0,854,4514,1,0,0,0,856,4521,1,0,0,0,858,4526,1,0,0,0,860,4554,1,0,0,0,862,4571,1,0,0,0,864,4573,1,0,0,0,866,4576,1,0,0,0,868,4579,1,0,0,0,870,4584,1,0,0,0,872,878,3,2,1,0,873,874,5,225,0,0,874,875,5,48,0,0,875,876,5,322,0,0,876,878,3,4,2,0,877,872,1,0,0,0,877,873,1,0,0,0,878,1,1,0,0,0,879,881,5,23,0,0,880,879,1,0,0,0,881,884,1,0,0,0,882,880,1,0,0,0,882,883,1,0,0,0,883,885,1,0,0,0,884,882,1,0,0,0,885,894,3,10,5,0,886,888,5,23,0,0,887,886,1,0,0,0,888,889,1,0,0,0,889,887,1,0,0,0,889,890,1,0,0,0,890,891,1,0,0,0,891,893,3,10,5,0,892,887,1,0,0,0,893,896,1,0,0,0,894,892,1,0,0,0,894,895,1,0,0,0,895,900,1,0,0,0,896,894,1,0,0,0,897,899,5,23,0,0,898,897,1,0,0,0,899,902,1,0,0,0,900,898,1,0,0,0,900,901,1,0,0,0,901,903,1,0,0,0,902,900,1,0,0,0,903,904,5,0,0,1,904,3,1,0,0,0,905,907,5,23,0,0,906,905,1,0,0,0,907,910,1,0,0,0,908,906,1,0,0,0,908,909,1,0,0,0,909,911,1,0,0,0,910,908,1,0,0,0,911,912,5,0,0,1,912,5,1,0,0,0,913,915,5,23,0,0,914,913,1,0,0,0,915,918,1,0,0,0,916,914,1,0,0,0,916,917,1,0,0,0,917,927,1,0,0,0,918,916,1,0,0,0,919,921,3,8,4,0,920,922,5,23,0,0,921,920,1,0,0,0,922,923,1,0,0,0,923,921,1,0,0,0,923,924,1,0,0,0,924,926,1,0,0,0,925,919,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,930,1,0,0,0,929,927,1,0,0,0,930,931,5,250,0,0,931,935,3,14,7,0,932,934,5,23,0,0,933,932,1,0,0,0,934,937,1,0,0,0,935,933,1,0,0,0,935,936,1,0,0,0,936,7,1,0,0,0,937,935,1,0,0,0,938,941,3,758,379,0,939,941,3,214,107,0,940,938,1,0,0,0,940,939,1,0,0,0,941,9,1,0,0,0,942,945,5,129,0,0,943,944,5,1,0,0,944,946,5,223,0,0,945,943,1,0,0,0,945,946,1,0,0,0,946,948,1,0,0,0,947,942,1,0,0,0,947,948,1,0,0,0,948,949,1,0,0,0,949,950,3,12,6,0,950,11,1,0,0,0,951,1008,3,224,112,0,952,1008,3,232,116,0,953,1008,3,758,379,0,954,1008,3,418,209,0,955,1008,3,564,282,0,956,1008,3,754,377,0,957,1008,3,364,182,0,958,1008,3,760,380,0,959,1008,3,652,326,0,960,1008,3,650,325,0,961,1008,3,762,381,0,962,1008,3,210,105,0,963,1008,3,214,107,0,964,1008,3,216,108,0,965,1008,3,464,232,0,966,1008,3,468,234,0,967,1008,3,222,111,0,968,1008,3,624,312,0,969,1008,3,628,314,0,970,1008,3,630,315,0,971,1008,3,370,185,0,972,1008,3,566,283,0,973,1008,3,568,284,0,974,1008,3,570,285,0,975,1008,3,572,286,0,976,1008,3,574,287,0,977,1008,3,394,197,0,978,1008,3,398,199,0,979,1008,3,402,201,0,980,1008,3,380,190,0,981,1008,3,382,191,0,982,1008,3,386,193,0,983,1008,3,606,303,0,984,1008,3,620,310,0,985,1008,3,666,333,0,986,1008,3,674,337,0,987,1008,3,696,348,0,988,1008,3,580,290,0,989,1008,3,582,291,0,990,1008,3,472,236,0,991,1008,3,392,196,0,992,1008,3,388,194,0,993,1008,3,390,195,0,994,1008,3,614,307,0,995,1008,3,590,295,0,996,1008,3,592,296,0,997,1008,3,596,298,0,998,1008,3,422,211,0,999,1008,3,424,212,0,1e3,1008,3,426,213,0,1001,1008,3,768,384,0,1002,1008,3,598,299,0,1003,1008,3,600,300,0,1004,1008,3,604,302,0,1005,1008,3,448,224,0,1006,1008,3,450,225,0,1007,951,1,0,0,0,1007,952,1,0,0,0,1007,953,1,0,0,0,1007,954,1,0,0,0,1007,955,1,0,0,0,1007,956,1,0,0,0,1007,957,1,0,0,0,1007,958,1,0,0,0,1007,959,1,0,0,0,1007,960,1,0,0,0,1007,961,1,0,0,0,1007,962,1,0,0,0,1007,963,1,0,0,0,1007,964,1,0,0,0,1007,965,1,0,0,0,1007,966,1,0,0,0,1007,967,1,0,0,0,1007,968,1,0,0,0,1007,969,1,0,0,0,1007,970,1,0,0,0,1007,971,1,0,0,0,1007,972,1,0,0,0,1007,973,1,0,0,0,1007,974,1,0,0,0,1007,975,1,0,0,0,1007,976,1,0,0,0,1007,977,1,0,0,0,1007,978,1,0,0,0,1007,979,1,0,0,0,1007,980,1,0,0,0,1007,981,1,0,0,0,1007,982,1,0,0,0,1007,983,1,0,0,0,1007,984,1,0,0,0,1007,985,1,0,0,0,1007,986,1,0,0,0,1007,987,1,0,0,0,1007,988,1,0,0,0,1007,989,1,0,0,0,1007,990,1,0,0,0,1007,991,1,0,0,0,1007,992,1,0,0,0,1007,993,1,0,0,0,1007,994,1,0,0,0,1007,995,1,0,0,0,1007,996,1,0,0,0,1007,997,1,0,0,0,1007,998,1,0,0,0,1007,999,1,0,0,0,1007,1e3,1,0,0,0,1007,1001,1,0,0,0,1007,1002,1,0,0,0,1007,1003,1,0,0,0,1007,1004,1,0,0,0,1007,1005,1,0,0,0,1007,1006,1,0,0,0,1008,13,1,0,0,0,1009,1014,3,16,8,0,1010,1011,5,210,0,0,1011,1013,3,16,8,0,1012,1010,1,0,0,0,1013,1016,1,0,0,0,1014,1012,1,0,0,0,1014,1015,1,0,0,0,1015,1019,1,0,0,0,1016,1014,1,0,0,0,1017,1019,3,200,100,0,1018,1009,1,0,0,0,1018,1017,1,0,0,0,1019,15,1,0,0,0,1020,1025,3,18,9,0,1021,1022,5,47,0,0,1022,1024,3,18,9,0,1023,1021,1,0,0,0,1024,1027,1,0,0,0,1025,1023,1,0,0,0,1025,1026,1,0,0,0,1026,17,1,0,0,0,1027,1025,1,0,0,0,1028,1033,3,20,10,0,1029,1030,5,318,0,0,1030,1032,3,20,10,0,1031,1029,1,0,0,0,1032,1035,1,0,0,0,1033,1031,1,0,0,0,1033,1034,1,0,0,0,1034,19,1,0,0,0,1035,1033,1,0,0,0,1036,1038,3,28,14,0,1037,1039,3,24,12,0,1038,1037,1,0,0,0,1038,1039,1,0,0,0,1039,21,1,0,0,0,1040,1042,5,171,0,0,1041,1043,5,197,0,0,1042,1041,1,0,0,0,1042,1043,1,0,0,0,1043,1044,1,0,0,0,1044,1045,5,110,0,0,1045,1046,5,142,0,0,1046,23,1,0,0,0,1047,1049,5,197,0,0,1048,1047,1,0,0,0,1048,1049,1,0,0,0,1049,1050,1,0,0,0,1050,1051,3,26,13,0,1051,1054,3,28,14,0,1052,1053,5,122,0,0,1053,1055,3,28,14,0,1054,1052,1,0,0,0,1054,1055,1,0,0,0,1055,1099,1,0,0,0,1056,1058,5,197,0,0,1057,1056,1,0,0,0,1057,1058,1,0,0,0,1058,1059,1,0,0,0,1059,1061,5,159,0,0,1060,1062,5,80,0,0,1061,1060,1,0,0,0,1061,1062,1,0,0,0,1062,1063,1,0,0,0,1063,1099,3,82,41,0,1064,1074,5,172,0,0,1065,1074,5,198,0,0,1066,1067,5,171,0,0,1067,1074,5,199,0,0,1068,1070,5,171,0,0,1069,1068,1,0,0,0,1069,1070,1,0,0,0,1070,1071,1,0,0,0,1071,1072,5,197,0,0,1072,1074,5,199,0,0,1073,1064,1,0,0,0,1073,1065,1,0,0,0,1073,1066,1,0,0,0,1073,1069,1,0,0,0,1074,1099,1,0,0,0,1075,1077,5,197,0,0,1076,1075,1,0,0,0,1076,1077,1,0,0,0,1077,1078,1,0,0,0,1078,1080,5,66,0,0,1079,1081,7,0,0,0,1080,1079,1,0,0,0,1080,1081,1,0,0,0,1081,1082,1,0,0,0,1082,1083,3,28,14,0,1083,1084,5,47,0,0,1084,1085,3,28,14,0,1085,1099,1,0,0,0,1086,1092,5,2,0,0,1087,1092,5,3,0,0,1088,1092,5,4,0,0,1089,1092,5,5,0,0,1090,1092,3,22,11,0,1091,1086,1,0,0,0,1091,1087,1,0,0,0,1091,1088,1,0,0,0,1091,1089,1,0,0,0,1091,1090,1,0,0,0,1092,1093,1,0,0,0,1093,1095,3,28,14,0,1094,1091,1,0,0,0,1095,1096,1,0,0,0,1096,1094,1,0,0,0,1096,1097,1,0,0,0,1097,1099,1,0,0,0,1098,1048,1,0,0,0,1098,1057,1,0,0,0,1098,1073,1,0,0,0,1098,1076,1,0,0,0,1098,1094,1,0,0,0,1099,25,1,0,0,0,1100,1101,7,1,0,0,1101,27,1,0,0,0,1102,1107,3,36,18,0,1103,1104,7,2,0,0,1104,1106,3,36,18,0,1105,1103,1,0,0,0,1106,1109,1,0,0,0,1107,1105,1,0,0,0,1107,1108,1,0,0,0,1108,29,1,0,0,0,1109,1107,1,0,0,0,1110,1111,5,8,0,0,1111,1112,5,8,0,0,1112,31,1,0,0,0,1113,1114,5,8,0,0,1114,1115,5,8,0,0,1115,1116,5,13,0,0,1116,33,1,0,0,0,1117,1118,5,28,0,0,1118,1119,5,28,0,0,1119,35,1,0,0,0,1120,1133,3,38,19,0,1121,1129,5,10,0,0,1122,1129,3,30,15,0,1123,1129,5,11,0,0,1124,1129,3,32,16,0,1125,1129,5,12,0,0,1126,1129,5,13,0,0,1127,1129,5,35,0,0,1128,1121,1,0,0,0,1128,1122,1,0,0,0,1128,1123,1,0,0,0,1128,1124,1,0,0,0,1128,1125,1,0,0,0,1128,1126,1,0,0,0,1128,1127,1,0,0,0,1129,1130,1,0,0,0,1130,1132,3,38,19,0,1131,1128,1,0,0,0,1132,1135,1,0,0,0,1133,1131,1,0,0,0,1133,1134,1,0,0,0,1134,1144,1,0,0,0,1135,1133,1,0,0,0,1136,1137,3,34,17,0,1137,1138,3,36,18,0,1138,1145,1,0,0,0,1139,1141,5,28,0,0,1140,1139,1,0,0,0,1141,1142,1,0,0,0,1142,1140,1,0,0,0,1142,1143,1,0,0,0,1143,1145,1,0,0,0,1144,1136,1,0,0,0,1144,1140,1,0,0,0,1144,1145,1,0,0,0,1145,37,1,0,0,0,1146,1151,3,40,20,0,1147,1148,7,3,0,0,1148,1150,3,40,20,0,1149,1147,1,0,0,0,1150,1153,1,0,0,0,1151,1149,1,0,0,0,1151,1152,1,0,0,0,1152,39,1,0,0,0,1153,1151,1,0,0,0,1154,1159,3,42,21,0,1155,1156,7,4,0,0,1156,1158,3,42,21,0,1157,1155,1,0,0,0,1158,1161,1,0,0,0,1159,1157,1,0,0,0,1159,1160,1,0,0,0,1160,41,1,0,0,0,1161,1159,1,0,0,0,1162,1167,3,44,22,0,1163,1164,5,14,0,0,1164,1166,3,44,22,0,1165,1163,1,0,0,0,1166,1169,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,43,1,0,0,0,1169,1167,1,0,0,0,1170,1175,3,54,27,0,1171,1172,3,46,23,0,1172,1173,3,54,27,0,1173,1175,1,0,0,0,1174,1170,1,0,0,0,1174,1171,1,0,0,0,1175,45,1,0,0,0,1176,1177,7,5,0,0,1177,47,1,0,0,0,1178,1187,3,138,69,0,1179,1187,3,132,66,0,1180,1184,5,24,0,0,1181,1185,3,144,72,0,1182,1185,5,322,0,0,1183,1185,3,792,396,0,1184,1181,1,0,0,0,1184,1182,1,0,0,0,1184,1183,1,0,0,0,1185,1187,1,0,0,0,1186,1178,1,0,0,0,1186,1179,1,0,0,0,1186,1180,1,0,0,0,1187,1189,1,0,0,0,1188,1186,1,0,0,0,1189,1192,1,0,0,0,1190,1188,1,0,0,0,1190,1191,1,0,0,0,1191,1195,1,0,0,0,1192,1190,1,0,0,0,1193,1194,5,76,0,0,1194,1196,3,790,395,0,1195,1193,1,0,0,0,1195,1196,1,0,0,0,1196,49,1,0,0,0,1197,1200,3,776,388,0,1198,1200,3,68,34,0,1199,1197,1,0,0,0,1199,1198,1,0,0,0,1200,1201,1,0,0,0,1201,1202,3,48,24,0,1202,51,1,0,0,0,1203,1206,3,778,389,0,1204,1206,3,70,35,0,1205,1203,1,0,0,0,1205,1204,1,0,0,0,1206,1207,1,0,0,0,1207,1208,3,48,24,0,1208,53,1,0,0,0,1209,1212,3,50,25,0,1210,1212,3,84,42,0,1211,1209,1,0,0,0,1211,1210,1,0,0,0,1212,55,1,0,0,0,1213,1216,3,52,26,0,1214,1216,3,84,42,0,1215,1213,1,0,0,0,1215,1214,1,0,0,0,1216,57,1,0,0,0,1217,1219,5,39,0,0,1218,1220,3,112,56,0,1219,1218,1,0,0,0,1219,1220,1,0,0,0,1220,1222,1,0,0,0,1221,1223,5,25,0,0,1222,1221,1,0,0,0,1222,1223,1,0,0,0,1223,1224,1,0,0,0,1224,1225,5,38,0,0,1225,59,1,0,0,0,1226,1229,3,14,7,0,1227,1228,5,29,0,0,1228,1230,3,14,7,0,1229,1227,1,0,0,0,1229,1230,1,0,0,0,1230,1239,1,0,0,0,1231,1232,5,25,0,0,1232,1235,3,14,7,0,1233,1234,5,29,0,0,1234,1236,3,14,7,0,1235,1233,1,0,0,0,1235,1236,1,0,0,0,1236,1238,1,0,0,0,1237,1231,1,0,0,0,1238,1241,1,0,0,0,1239,1237,1,0,0,0,1239,1240,1,0,0,0,1240,61,1,0,0,0,1241,1239,1,0,0,0,1242,1244,5,33,0,0,1243,1245,3,60,30,0,1244,1243,1,0,0,0,1244,1245,1,0,0,0,1245,1247,1,0,0,0,1246,1248,5,25,0,0,1247,1246,1,0,0,0,1247,1248,1,0,0,0,1248,1249,1,0,0,0,1249,1250,5,34,0,0,1250,63,1,0,0,0,1251,1252,3,14,7,0,1252,1253,5,29,0,0,1253,1261,3,14,7,0,1254,1255,5,25,0,0,1255,1256,3,14,7,0,1256,1257,5,29,0,0,1257,1258,3,14,7,0,1258,1260,1,0,0,0,1259,1254,1,0,0,0,1260,1263,1,0,0,0,1261,1259,1,0,0,0,1261,1262,1,0,0,0,1262,65,1,0,0,0,1263,1261,1,0,0,0,1264,1266,5,15,0,0,1265,1267,3,64,32,0,1266,1265,1,0,0,0,1266,1267,1,0,0,0,1267,1269,1,0,0,0,1268,1270,5,25,0,0,1269,1268,1,0,0,0,1269,1270,1,0,0,0,1270,1271,1,0,0,0,1271,1272,5,16,0,0,1272,67,1,0,0,0,1273,1291,3,142,71,0,1274,1291,3,144,72,0,1275,1291,3,80,40,0,1276,1291,3,72,36,0,1277,1291,3,76,38,0,1278,1291,3,78,39,0,1279,1280,3,792,396,0,1280,1283,5,36,0,0,1281,1284,3,818,409,0,1282,1284,5,319,0,0,1283,1281,1,0,0,0,1283,1282,1,0,0,0,1284,1291,1,0,0,0,1285,1291,3,208,104,0,1286,1291,3,74,37,0,1287,1291,3,58,29,0,1288,1291,3,62,31,0,1289,1291,3,66,33,0,1290,1273,1,0,0,0,1290,1274,1,0,0,0,1290,1275,1,0,0,0,1290,1276,1,0,0,0,1290,1277,1,0,0,0,1290,1278,1,0,0,0,1290,1279,1,0,0,0,1290,1285,1,0,0,0,1290,1286,1,0,0,0,1290,1287,1,0,0,0,1290,1288,1,0,0,0,1290,1289,1,0,0,0,1291,69,1,0,0,0,1292,1313,3,142,71,0,1293,1313,3,144,72,0,1294,1313,3,80,40,0,1295,1313,3,72,36,0,1296,1313,3,78,39,0,1297,1298,3,792,396,0,1298,1301,5,36,0,0,1299,1302,3,818,409,0,1300,1302,5,319,0,0,1301,1299,1,0,0,0,1301,1300,1,0,0,0,1302,1313,1,0,0,0,1303,1304,5,26,0,0,1304,1305,3,232,116,0,1305,1306,5,27,0,0,1306,1313,1,0,0,0,1307,1313,3,208,104,0,1308,1313,3,74,37,0,1309,1313,3,58,29,0,1310,1313,3,62,31,0,1311,1313,3,66,33,0,1312,1292,1,0,0,0,1312,1293,1,0,0,0,1312,1294,1,0,0,0,1312,1295,1,0,0,0,1312,1296,1,0,0,0,1312,1297,1,0,0,0,1312,1303,1,0,0,0,1312,1307,1,0,0,0,1312,1308,1,0,0,0,1312,1309,1,0,0,0,1312,1310,1,0,0,0,1312,1311,1,0,0,0,1313,71,1,0,0,0,1314,1315,5,72,0,0,1315,1316,5,26,0,0,1316,1317,3,14,7,0,1317,1318,5,51,0,0,1318,1319,3,204,102,0,1319,1320,5,27,0,0,1320,73,1,0,0,0,1321,1322,5,67,0,0,1322,1323,5,26,0,0,1323,1324,3,14,7,0,1324,1325,5,51,0,0,1325,1326,3,156,78,0,1326,1327,5,27,0,0,1327,75,1,0,0,0,1328,1329,5,128,0,0,1329,1332,5,26,0,0,1330,1333,3,232,116,0,1331,1333,3,370,185,0,1332,1330,1,0,0,0,1332,1331,1,0,0,0,1333,1334,1,0,0,0,1334,1335,5,27,0,0,1335,77,1,0,0,0,1336,1338,5,71,0,0,1337,1339,3,14,7,0,1338,1337,1,0,0,0,1338,1339,1,0,0,0,1339,1341,1,0,0,0,1340,1342,3,140,70,0,1341,1340,1,0,0,0,1342,1343,1,0,0,0,1343,1341,1,0,0,0,1343,1344,1,0,0,0,1344,1347,1,0,0,0,1345,1346,5,114,0,0,1346,1348,3,14,7,0,1347,1345,1,0,0,0,1347,1348,1,0,0,0,1348,1349,1,0,0,0,1349,1350,5,118,0,0,1350,79,1,0,0,0,1351,1363,3,110,55,0,1352,1361,5,37,0,0,1353,1354,5,26,0,0,1354,1355,3,14,7,0,1355,1356,5,27,0,0,1356,1362,1,0,0,0,1357,1358,5,33,0,0,1358,1359,3,6,3,0,1359,1360,5,34,0,0,1360,1362,1,0,0,0,1361,1353,1,0,0,0,1361,1357,1,0,0,0,1362,1364,1,0,0,0,1363,1352,1,0,0,0,1363,1364,1,0,0,0,1364,81,1,0,0,0,1365,1366,3,56,28,0,1366,83,1,0,0,0,1367,1371,3,98,49,0,1368,1371,3,102,51,0,1369,1371,3,108,54,0,1370,1367,1,0,0,0,1370,1368,1,0,0,0,1370,1369,1,0,0,0,1371,85,1,0,0,0,1372,1373,5,319,0,0,1373,87,1,0,0,0,1374,1377,3,776,388,0,1375,1377,5,319,0,0,1376,1374,1,0,0,0,1376,1375,1,0,0,0,1377,89,1,0,0,0,1378,1379,3,14,7,0,1379,1380,5,51,0,0,1380,1381,3,88,44,0,1381,91,1,0,0,0,1382,1387,3,90,45,0,1383,1384,5,25,0,0,1384,1386,3,90,45,0,1385,1383,1,0,0,0,1386,1389,1,0,0,0,1387,1385,1,0,0,0,1387,1388,1,0,0,0,1388,93,1,0,0,0,1389,1387,1,0,0,0,1390,1391,3,14,7,0,1391,1392,5,25,0,0,1392,1395,3,86,43,0,1393,1394,5,217,0,0,1394,1396,3,92,46,0,1395,1393,1,0,0,0,1395,1396,1,0,0,0,1396,95,1,0,0,0,1397,1402,5,121,0,0,1398,1402,5,199,0,0,1399,1400,5,98,0,0,1400,1402,3,14,7,0,1401,1397,1,0,0,0,1401,1398,1,0,0,0,1401,1399,1,0,0,0,1402,97,1,0,0,0,1403,1404,5,176,0,0,1404,1405,5,26,0,0,1405,1408,3,94,47,0,1406,1407,5,251,0,0,1407,1409,3,156,78,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1416,1,0,0,0,1410,1411,3,96,48,0,1411,1412,5,205,0,0,1412,1413,7,6,0,0,1413,1415,1,0,0,0,1414,1410,1,0,0,0,1415,1418,1,0,0,0,1416,1414,1,0,0,0,1416,1417,1,0,0,0,1417,1419,1,0,0,0,1418,1416,1,0,0,0,1419,1420,5,27,0,0,1420,99,1,0,0,0,1421,1422,7,7,0,0,1422,1423,5,205,0,0,1423,1424,5,121,0,0,1424,101,1,0,0,0,1425,1426,5,174,0,0,1426,1427,5,26,0,0,1427,1429,3,94,47,0,1428,1430,3,100,50,0,1429,1428,1,0,0,0,1429,1430,1,0,0,0,1430,1431,1,0,0,0,1431,1432,5,27,0,0,1432,103,1,0,0,0,1433,1435,5,316,0,0,1434,1436,5,50,0,0,1435,1434,1,0,0,0,1435,1436,1,0,0,0,1436,1445,1,0,0,0,1437,1439,5,315,0,0,1438,1440,7,8,0,0,1439,1438,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1443,5,50,0,0,1442,1441,1,0,0,0,1442,1443,1,0,0,0,1443,1445,1,0,0,0,1444,1433,1,0,0,0,1444,1437,1,0,0,0,1445,105,1,0,0,0,1446,1453,5,121,0,0,1447,1453,5,199,0,0,1448,1449,5,115,0,0,1449,1453,5,50,0,0,1450,1451,5,115,0,0,1451,1453,5,201,0,0,1452,1446,1,0,0,0,1452,1447,1,0,0,0,1452,1448,1,0,0,0,1452,1450,1,0,0,0,1453,107,1,0,0,0,1454,1455,5,175,0,0,1455,1456,5,26,0,0,1456,1460,3,94,47,0,1457,1458,3,104,52,0,1458,1459,5,317,0,0,1459,1461,1,0,0,0,1460,1457,1,0,0,0,1460,1461,1,0,0,0,1461,1466,1,0,0,0,1462,1463,3,106,53,0,1463,1464,5,205,0,0,1464,1465,5,115,0,0,1465,1467,1,0,0,0,1466,1462,1,0,0,0,1466,1467,1,0,0,0,1467,1472,1,0,0,0,1468,1469,3,106,53,0,1469,1470,5,205,0,0,1470,1471,5,121,0,0,1471,1473,1,0,0,0,1472,1468,1,0,0,0,1472,1473,1,0,0,0,1473,1474,1,0,0,0,1474,1475,5,27,0,0,1475,109,1,0,0,0,1476,1478,5,26,0,0,1477,1479,3,130,65,0,1478,1477,1,0,0,0,1478,1479,1,0,0,0,1479,1481,1,0,0,0,1480,1482,5,25,0,0,1481,1480,1,0,0,0,1481,1482,1,0,0,0,1482,1483,1,0,0,0,1483,1484,5,27,0,0,1484,111,1,0,0,0,1485,1490,3,14,7,0,1486,1487,5,25,0,0,1487,1489,3,14,7,0,1488,1486,1,0,0,0,1489,1492,1,0,0,0,1490,1488,1,0,0,0,1490,1491,1,0,0,0,1491,113,1,0,0,0,1492,1490,1,0,0,0,1493,1494,5,26,0,0,1494,1499,3,790,395,0,1495,1496,5,25,0,0,1496,1498,3,790,395,0,1497,1495,1,0,0,0,1498,1501,1,0,0,0,1499,1497,1,0,0,0,1499,1500,1,0,0,0,1500,1502,1,0,0,0,1501,1499,1,0,0,0,1502,1503,5,27,0,0,1503,115,1,0,0,0,1504,1507,3,144,72,0,1505,1507,3,790,395,0,1506,1504,1,0,0,0,1506,1505,1,0,0,0,1507,117,1,0,0,0,1508,1509,5,26,0,0,1509,1514,3,116,58,0,1510,1511,5,25,0,0,1511,1513,3,116,58,0,1512,1510,1,0,0,0,1513,1516,1,0,0,0,1514,1512,1,0,0,0,1514,1515,1,0,0,0,1515,1517,1,0,0,0,1516,1514,1,0,0,0,1517,1518,5,27,0,0,1518,119,1,0,0,0,1519,1520,3,814,407,0,1520,1521,3,790,395,0,1521,121,1,0,0,0,1522,1523,3,790,395,0,1523,1524,5,24,0,0,1524,1525,3,790,395,0,1525,1528,1,0,0,0,1526,1528,3,804,402,0,1527,1522,1,0,0,0,1527,1526,1,0,0,0,1528,123,1,0,0,0,1529,1534,3,120,60,0,1530,1531,5,25,0,0,1531,1533,3,120,60,0,1532,1530,1,0,0,0,1533,1536,1,0,0,0,1534,1532,1,0,0,0,1534,1535,1,0,0,0,1535,1538,1,0,0,0,1536,1534,1,0,0,0,1537,1539,5,25,0,0,1538,1537,1,0,0,0,1538,1539,1,0,0,0,1539,125,1,0,0,0,1540,1545,3,122,61,0,1541,1542,5,25,0,0,1542,1544,3,122,61,0,1543,1541,1,0,0,0,1544,1547,1,0,0,0,1545,1543,1,0,0,0,1545,1546,1,0,0,0,1546,1549,1,0,0,0,1547,1545,1,0,0,0,1548,1550,5,25,0,0,1549,1548,1,0,0,0,1549,1550,1,0,0,0,1550,127,1,0,0,0,1551,1554,3,14,7,0,1552,1553,5,51,0,0,1553,1555,3,792,396,0,1554,1552,1,0,0,0,1554,1555,1,0,0,0,1555,129,1,0,0,0,1556,1561,3,128,64,0,1557,1558,5,25,0,0,1558,1560,3,128,64,0,1559,1557,1,0,0,0,1560,1563,1,0,0,0,1561,1559,1,0,0,0,1561,1562,1,0,0,0,1562,131,1,0,0,0,1563,1561,1,0,0,0,1564,1571,5,26,0,0,1565,1566,3,252,126,0,1566,1568,3,130,65,0,1567,1569,5,25,0,0,1568,1567,1,0,0,0,1568,1569,1,0,0,0,1569,1572,1,0,0,0,1570,1572,5,20,0,0,1571,1565,1,0,0,0,1571,1570,1,0,0,0,1571,1572,1,0,0,0,1572,1573,1,0,0,0,1573,1574,5,27,0,0,1574,1575,3,134,67,0,1575,133,1,0,0,0,1576,1579,3,716,358,0,1577,1579,3,718,359,0,1578,1576,1,0,0,0,1578,1577,1,0,0,0,1578,1579,1,0,0,0,1579,1582,1,0,0,0,1580,1581,5,214,0,0,1581,1583,3,720,360,0,1582,1580,1,0,0,0,1582,1583,1,0,0,0,1583,135,1,0,0,0,1584,1585,3,792,396,0,1585,1586,5,36,0,0,1586,1587,3,792,396,0,1587,1593,1,0,0,0,1588,1593,3,796,398,0,1589,1593,3,144,72,0,1590,1591,5,131,0,0,1591,1593,5,144,0,0,1592,1584,1,0,0,0,1592,1588,1,0,0,0,1592,1589,1,0,0,0,1592,1590,1,0,0,0,1593,1594,1,0,0,0,1594,1595,3,132,66,0,1595,137,1,0,0,0,1596,1597,5,39,0,0,1597,1598,3,14,7,0,1598,1599,5,38,0,0,1599,139,1,0,0,0,1600,1601,5,312,0,0,1601,1602,3,14,7,0,1602,1603,5,287,0,0,1603,1604,3,14,7,0,1604,141,1,0,0,0,1605,1616,3,854,427,0,1606,1616,3,852,426,0,1607,1616,5,319,0,0,1608,1616,5,325,0,0,1609,1616,5,199,0,0,1610,1616,5,92,0,0,1611,1616,5,91,0,0,1612,1616,5,93,0,0,1613,1616,3,850,425,0,1614,1616,5,116,0,0,1615,1605,1,0,0,0,1615,1606,1,0,0,0,1615,1607,1,0,0,0,1615,1608,1,0,0,0,1615,1609,1,0,0,0,1615,1610,1,0,0,0,1615,1611,1,0,0,0,1615,1612,1,0,0,0,1615,1613,1,0,0,0,1615,1614,1,0,0,0,1616,143,1,0,0,0,1617,1621,5,32,0,0,1618,1622,3,792,396,0,1619,1622,5,293,0,0,1620,1622,5,133,0,0,1621,1618,1,0,0,0,1621,1619,1,0,0,0,1621,1620,1,0,0,0,1622,145,1,0,0,0,1623,1625,3,144,72,0,1624,1626,5,28,0,0,1625,1624,1,0,0,0,1625,1626,1,0,0,0,1626,147,1,0,0,0,1627,1632,3,144,72,0,1628,1629,5,25,0,0,1629,1631,3,144,72,0,1630,1628,1,0,0,0,1631,1634,1,0,0,0,1632,1630,1,0,0,0,1632,1633,1,0,0,0,1633,149,1,0,0,0,1634,1632,1,0,0,0,1635,1638,3,144,72,0,1636,1637,5,51,0,0,1637,1639,3,144,72,0,1638,1636,1,0,0,0,1638,1639,1,0,0,0,1639,151,1,0,0,0,1640,1645,3,150,75,0,1641,1642,5,25,0,0,1642,1644,3,150,75,0,1643,1641,1,0,0,0,1644,1647,1,0,0,0,1645,1643,1,0,0,0,1645,1646,1,0,0,0,1646,153,1,0,0,0,1647,1645,1,0,0,0,1648,1650,7,3,0,0,1649,1648,1,0,0,0,1649,1650,1,0,0,0,1650,1653,1,0,0,0,1651,1654,3,854,427,0,1652,1654,3,852,426,0,1653,1651,1,0,0,0,1653,1652,1,0,0,0,1654,155,1,0,0,0,1655,1656,3,808,404,0,1656,157,1,0,0,0,1657,1660,3,854,427,0,1658,1660,3,144,72,0,1659,1657,1,0,0,0,1659,1658,1,0,0,0,1660,159,1,0,0,0,1661,1665,3,772,386,0,1662,1665,5,319,0,0,1663,1665,3,144,72,0,1664,1661,1,0,0,0,1664,1662,1,0,0,0,1664,1663,1,0,0,0,1665,161,1,0,0,0,1666,1667,3,160,80,0,1667,1668,5,29,0,0,1668,1669,3,204,102,0,1669,163,1,0,0,0,1670,1671,3,160,80,0,1671,1676,3,204,102,0,1672,1674,5,197,0,0,1673,1672,1,0,0,0,1673,1674,1,0,0,0,1674,1675,1,0,0,0,1675,1677,5,199,0,0,1676,1673,1,0,0,0,1676,1677,1,0,0,0,1677,1683,1,0,0,0,1678,1679,3,204,102,0,1679,1680,5,51,0,0,1680,1681,3,160,80,0,1681,1683,1,0,0,0,1682,1670,1,0,0,0,1682,1678,1,0,0,0,1683,165,1,0,0,0,1684,1685,3,160,80,0,1685,1686,5,29,0,0,1686,1688,1,0,0,0,1687,1684,1,0,0,0,1687,1688,1,0,0,0,1688,1689,1,0,0,0,1689,1690,3,204,102,0,1690,167,1,0,0,0,1691,1695,3,166,83,0,1692,1693,5,33,0,0,1693,1694,5,60,0,0,1694,1696,5,34,0,0,1695,1692,1,0,0,0,1695,1696,1,0,0,0,1696,169,1,0,0,0,1697,1702,3,168,84,0,1698,1699,5,25,0,0,1699,1701,3,168,84,0,1700,1698,1,0,0,0,1701,1704,1,0,0,0,1702,1700,1,0,0,0,1702,1703,1,0,0,0,1703,171,1,0,0,0,1704,1702,1,0,0,0,1705,1706,5,96,0,0,1706,1707,5,26,0,0,1707,1708,3,158,79,0,1708,1709,5,25,0,0,1709,1710,3,158,79,0,1710,1711,5,27,0,0,1711,173,1,0,0,0,1712,1713,5,209,0,0,1713,1714,5,6,0,0,1714,1715,3,204,102,0,1715,1716,5,8,0,0,1716,175,1,0,0,0,1717,1734,5,294,0,0,1718,1730,5,6,0,0,1719,1724,3,204,102,0,1720,1721,5,25,0,0,1721,1723,3,204,102,0,1722,1720,1,0,0,0,1723,1726,1,0,0,0,1724,1722,1,0,0,0,1724,1725,1,0,0,0,1725,1728,1,0,0,0,1726,1724,1,0,0,0,1727,1729,5,25,0,0,1728,1727,1,0,0,0,1728,1729,1,0,0,0,1729,1731,1,0,0,0,1730,1719,1,0,0,0,1730,1731,1,0,0,0,1731,1732,1,0,0,0,1732,1735,5,8,0,0,1733,1735,5,5,0,0,1734,1718,1,0,0,0,1734,1733,1,0,0,0,1735,177,1,0,0,0,1736,1753,5,273,0,0,1737,1749,5,6,0,0,1738,1743,3,162,81,0,1739,1740,5,25,0,0,1740,1742,3,162,81,0,1741,1739,1,0,0,0,1742,1745,1,0,0,0,1743,1741,1,0,0,0,1743,1744,1,0,0,0,1744,1747,1,0,0,0,1745,1743,1,0,0,0,1746,1748,5,25,0,0,1747,1746,1,0,0,0,1747,1748,1,0,0,0,1748,1750,1,0,0,0,1749,1738,1,0,0,0,1749,1750,1,0,0,0,1750,1751,1,0,0,0,1751,1754,5,8,0,0,1752,1754,5,5,0,0,1753,1737,1,0,0,0,1753,1752,1,0,0,0,1754,179,1,0,0,0,1755,1756,5,309,0,0,1756,1757,5,6,0,0,1757,1762,3,166,83,0,1758,1759,5,25,0,0,1759,1761,3,166,83,0,1760,1758,1,0,0,0,1761,1764,1,0,0,0,1762,1760,1,0,0,0,1762,1763,1,0,0,0,1763,1766,1,0,0,0,1764,1762,1,0,0,0,1765,1767,5,25,0,0,1766,1765,1,0,0,0,1766,1767,1,0,0,0,1767,1768,1,0,0,0,1768,1769,5,8,0,0,1769,181,1,0,0,0,1770,1771,5,183,0,0,1771,1772,5,6,0,0,1772,1773,3,204,102,0,1773,1774,5,8,0,0,1774,183,1,0,0,0,1775,1776,5,272,0,0,1776,1777,5,6,0,0,1777,1778,3,204,102,0,1778,1779,5,8,0,0,1779,185,1,0,0,0,1780,1781,5,138,0,0,1781,1782,5,6,0,0,1782,1783,3,204,102,0,1783,1784,5,8,0,0,1784,187,1,0,0,0,1785,1786,5,106,0,0,1786,1787,5,6,0,0,1787,1788,3,204,102,0,1788,1789,5,25,0,0,1789,1790,3,204,102,0,1790,1791,5,8,0,0,1791,189,1,0,0,0,1792,1793,5,267,0,0,1793,1794,5,6,0,0,1794,1795,3,204,102,0,1795,1796,5,8,0,0,1796,191,1,0,0,0,1797,1798,5,119,0,0,1798,1799,5,6,0,0,1799,1804,3,160,80,0,1800,1801,5,25,0,0,1801,1803,3,160,80,0,1802,1800,1,0,0,0,1803,1806,1,0,0,0,1804,1802,1,0,0,0,1804,1805,1,0,0,0,1805,1808,1,0,0,0,1806,1804,1,0,0,0,1807,1809,5,25,0,0,1808,1807,1,0,0,0,1808,1809,1,0,0,0,1809,1810,1,0,0,0,1810,1811,5,8,0,0,1811,193,1,0,0,0,1812,1813,5,245,0,0,1813,1814,5,6,0,0,1814,1815,3,160,80,0,1815,1816,5,8,0,0,1816,195,1,0,0,0,1817,1818,5,284,0,0,1818,1819,5,6,0,0,1819,1820,3,204,102,0,1820,1821,5,25,0,0,1821,1822,3,160,80,0,1822,1823,5,8,0,0,1823,197,1,0,0,0,1824,1825,5,69,0,0,1825,1826,5,6,0,0,1826,1828,5,26,0,0,1827,1829,3,170,85,0,1828,1827,1,0,0,0,1828,1829,1,0,0,0,1829,1831,1,0,0,0,1830,1832,5,25,0,0,1831,1830,1,0,0,0,1831,1832,1,0,0,0,1832,1837,1,0,0,0,1833,1834,5,39,0,0,1834,1835,3,170,85,0,1835,1836,5,38,0,0,1836,1838,1,0,0,0,1837,1833,1,0,0,0,1837,1838,1,0,0,0,1838,1839,1,0,0,0,1839,1840,5,27,0,0,1840,1841,5,37,0,0,1841,1842,3,204,102,0,1842,1843,5,8,0,0,1843,199,1,0,0,0,1844,1858,3,174,87,0,1845,1858,3,176,88,0,1846,1858,3,178,89,0,1847,1858,3,180,90,0,1848,1858,3,182,91,0,1849,1858,3,184,92,0,1850,1858,3,186,93,0,1851,1858,3,188,94,0,1852,1858,3,190,95,0,1853,1858,3,192,96,0,1854,1858,3,194,97,0,1855,1858,3,196,98,0,1856,1858,3,198,99,0,1857,1844,1,0,0,0,1857,1845,1,0,0,0,1857,1846,1,0,0,0,1857,1847,1,0,0,0,1857,1848,1,0,0,0,1857,1849,1,0,0,0,1857,1850,1,0,0,0,1857,1851,1,0,0,0,1857,1852,1,0,0,0,1857,1853,1,0,0,0,1857,1854,1,0,0,0,1857,1855,1,0,0,0,1857,1856,1,0,0,0,1858,1862,1,0,0,0,1859,1861,5,28,0,0,1860,1859,1,0,0,0,1861,1864,1,0,0,0,1862,1860,1,0,0,0,1862,1863,1,0,0,0,1863,201,1,0,0,0,1864,1862,1,0,0,0,1865,1877,3,200,100,0,1866,1869,3,172,86,0,1867,1869,3,156,78,0,1868,1866,1,0,0,0,1868,1867,1,0,0,0,1869,1873,1,0,0,0,1870,1872,5,28,0,0,1871,1870,1,0,0,0,1872,1875,1,0,0,0,1873,1871,1,0,0,0,1873,1874,1,0,0,0,1874,1877,1,0,0,0,1875,1873,1,0,0,0,1876,1865,1,0,0,0,1876,1868,1,0,0,0,1877,203,1,0,0,0,1878,1881,3,202,101,0,1879,1881,3,144,72,0,1880,1878,1,0,0,0,1880,1879,1,0,0,0,1881,205,1,0,0,0,1882,1883,5,319,0,0,1883,207,1,0,0,0,1884,1885,5,309,0,0,1885,1886,5,26,0,0,1886,1887,3,14,7,0,1887,1888,5,25,0,0,1888,1889,3,14,7,0,1889,1890,5,25,0,0,1890,1891,3,14,7,0,1891,1892,5,27,0,0,1892,1908,1,0,0,0,1893,1894,5,119,0,0,1894,1895,5,26,0,0,1895,1896,3,14,7,0,1896,1897,5,25,0,0,1897,1898,3,14,7,0,1898,1899,5,27,0,0,1899,1908,1,0,0,0,1900,1901,5,69,0,0,1901,1902,5,26,0,0,1902,1903,3,14,7,0,1903,1904,5,25,0,0,1904,1905,3,14,7,0,1905,1906,5,27,0,0,1906,1908,1,0,0,0,1907,1884,1,0,0,0,1907,1893,1,0,0,0,1907,1900,1,0,0,0,1908,209,1,0,0,0,1909,1910,5,97,0,0,1910,1911,3,144,72,0,1911,1912,5,51,0,0,1912,1915,3,202,101,0,1913,1914,5,2,0,0,1914,1916,3,142,71,0,1915,1913,1,0,0,0,1915,1916,1,0,0,0,1916,211,1,0,0,0,1917,1919,5,24,0,0,1918,1917,1,0,0,0,1918,1919,1,0,0,0,1919,1920,1,0,0,0,1920,1925,3,790,395,0,1921,1922,5,24,0,0,1922,1924,3,790,395,0,1923,1921,1,0,0,0,1924,1927,1,0,0,0,1925,1923,1,0,0,0,1925,1926,1,0,0,0,1926,213,1,0,0,0,1927,1925,1,0,0,0,1928,1929,5,158,0,0,1929,1930,3,212,106,0,1930,1931,5,276,0,0,1931,1932,3,152,76,0,1932,215,1,0,0,0,1933,1934,5,130,0,0,1934,1935,3,148,74,0,1935,217,1,0,0,0,1936,1939,3,144,72,0,1937,1939,5,116,0,0,1938,1936,1,0,0,0,1938,1937,1,0,0,0,1939,1940,1,0,0,0,1940,1942,5,26,0,0,1941,1943,3,112,56,0,1942,1941,1,0,0,0,1942,1943,1,0,0,0,1943,1944,1,0,0,0,1944,1945,5,27,0,0,1945,219,1,0,0,0,1946,1947,5,64,0,0,1947,1948,3,626,313,0,1948,1949,5,118,0,0,1949,1950,5,111,0,0,1950,221,1,0,0,0,1951,1954,5,111,0,0,1952,1955,3,218,109,0,1953,1955,3,220,110,0,1954,1952,1,0,0,0,1954,1953,1,0,0,0,1955,223,1,0,0,0,1956,1957,5,225,0,0,1957,1958,3,820,410,0,1958,1972,3,790,395,0,1959,1960,5,2,0,0,1960,1973,3,226,113,0,1961,1962,5,26,0,0,1962,1967,3,226,113,0,1963,1964,5,25,0,0,1964,1966,3,226,113,0,1965,1963,1,0,0,0,1966,1969,1,0,0,0,1967,1965,1,0,0,0,1967,1968,1,0,0,0,1968,1970,1,0,0,0,1969,1967,1,0,0,0,1970,1971,5,27,0,0,1971,1973,1,0,0,0,1972,1959,1,0,0,0,1972,1961,1,0,0,0,1972,1973,1,0,0,0,1973,225,1,0,0,0,1974,1980,3,154,77,0,1975,1980,3,772,386,0,1976,1980,5,319,0,0,1977,1980,3,850,425,0,1978,1980,3,144,72,0,1979,1974,1,0,0,0,1979,1975,1,0,0,0,1979,1976,1,0,0,0,1979,1977,1,0,0,0,1979,1978,1,0,0,0,1980,227,1,0,0,0,1981,1983,3,14,7,0,1982,1984,7,9,0,0,1983,1982,1,0,0,0,1983,1984,1,0,0,0,1984,229,1,0,0,0,1985,1990,3,228,114,0,1986,1987,5,25,0,0,1987,1989,3,228,114,0,1988,1986,1,0,0,0,1989,1992,1,0,0,0,1990,1988,1,0,0,0,1990,1991,1,0,0,0,1991,231,1,0,0,0,1992,1990,1,0,0,0,1993,1999,3,236,118,0,1994,1995,3,238,119,0,1995,1996,3,236,118,0,1996,1998,1,0,0,0,1997,1994,1,0,0,0,1998,2001,1,0,0,0,1999,1997,1,0,0,0,1999,2e3,1,0,0,0,2e3,233,1,0,0,0,2001,1999,1,0,0,0,2002,2008,3,240,120,0,2003,2004,3,238,119,0,2004,2005,3,236,118,0,2005,2007,1,0,0,0,2006,2003,1,0,0,0,2007,2010,1,0,0,0,2008,2006,1,0,0,0,2008,2009,1,0,0,0,2009,235,1,0,0,0,2010,2008,1,0,0,0,2011,2017,3,240,120,0,2012,2013,5,26,0,0,2013,2014,3,240,120,0,2014,2015,5,27,0,0,2015,2017,1,0,0,0,2016,2011,1,0,0,0,2016,2012,1,0,0,0,2017,237,1,0,0,0,2018,2020,5,298,0,0,2019,2021,5,44,0,0,2020,2019,1,0,0,0,2020,2021,1,0,0,0,2021,2025,1,0,0,0,2022,2025,5,169,0,0,2023,2025,5,124,0,0,2024,2018,1,0,0,0,2024,2022,1,0,0,0,2024,2023,1,0,0,0,2025,239,1,0,0,0,2026,2033,3,242,121,0,2027,2028,5,182,0,0,2028,2031,3,14,7,0,2029,2030,7,10,0,0,2030,2032,3,14,7,0,2031,2029,1,0,0,0,2031,2032,1,0,0,0,2032,2034,1,0,0,0,2033,2027,1,0,0,0,2033,2034,1,0,0,0,2034,241,1,0,0,0,2035,2037,5,109,0,0,2036,2035,1,0,0,0,2036,2037,1,0,0,0,2037,2041,1,0,0,0,2038,2042,3,244,122,0,2039,2042,3,250,125,0,2040,2042,3,254,127,0,2041,2038,1,0,0,0,2041,2039,1,0,0,0,2041,2040,1,0,0,0,2042,2046,1,0,0,0,2043,2044,5,170,0,0,2044,2045,5,249,0,0,2045,2047,3,116,58,0,2046,2043,1,0,0,0,2046,2047,1,0,0,0,2047,243,1,0,0,0,2048,2050,5,230,0,0,2049,2051,5,272,0,0,2050,2049,1,0,0,0,2050,2051,1,0,0,0,2051,2052,1,0,0,0,2052,2057,3,346,173,0,2053,2054,5,25,0,0,2054,2056,3,346,173,0,2055,2053,1,0,0,0,2056,2059,1,0,0,0,2057,2055,1,0,0,0,2057,2058,1,0,0,0,2058,2081,1,0,0,0,2059,2057,1,0,0,0,2060,2061,5,306,0,0,2061,2064,3,136,68,0,2062,2063,5,51,0,0,2063,2065,3,790,395,0,2064,2062,1,0,0,0,2064,2065,1,0,0,0,2065,2068,1,0,0,0,2066,2067,5,315,0,0,2067,2069,3,248,124,0,2068,2066,1,0,0,0,2068,2069,1,0,0,0,2069,2071,1,0,0,0,2070,2072,3,866,433,0,2071,2070,1,0,0,0,2071,2072,1,0,0,0,2072,2075,1,0,0,0,2073,2074,5,152,0,0,2074,2076,3,14,7,0,2075,2073,1,0,0,0,2075,2076,1,0,0,0,2076,2079,1,0,0,0,2077,2078,5,53,0,0,2078,2080,3,314,157,0,2079,2077,1,0,0,0,2079,2080,1,0,0,0,2080,2082,1,0,0,0,2081,2060,1,0,0,0,2081,2082,1,0,0,0,2082,245,1,0,0,0,2083,2084,3,790,395,0,2084,2085,5,2,0,0,2085,2086,3,14,7,0,2086,247,1,0,0,0,2087,2092,3,246,123,0,2088,2089,5,25,0,0,2089,2091,3,246,123,0,2090,2088,1,0,0,0,2091,2094,1,0,0,0,2092,2090,1,0,0,0,2092,2093,1,0,0,0,2093,249,1,0,0,0,2094,2092,1,0,0,0,2095,2096,5,234,0,0,2096,2101,3,346,173,0,2097,2098,5,25,0,0,2098,2100,3,346,173,0,2099,2097,1,0,0,0,2100,2103,1,0,0,0,2101,2099,1,0,0,0,2101,2102,1,0,0,0,2102,2106,1,0,0,0,2103,2101,1,0,0,0,2104,2105,5,227,0,0,2105,2107,3,230,115,0,2106,2104,1,0,0,0,2106,2107,1,0,0,0,2107,2108,1,0,0,0,2108,2109,5,205,0,0,2109,2110,3,124,62,0,2110,2112,5,306,0,0,2111,2113,5,44,0,0,2112,2111,1,0,0,0,2112,2113,1,0,0,0,2113,2114,1,0,0,0,2114,2117,3,136,68,0,2115,2116,5,51,0,0,2116,2118,3,790,395,0,2117,2115,1,0,0,0,2117,2118,1,0,0,0,2118,2120,1,0,0,0,2119,2121,3,866,433,0,2120,2119,1,0,0,0,2120,2121,1,0,0,0,2121,2124,1,0,0,0,2122,2123,5,152,0,0,2123,2125,3,14,7,0,2124,2122,1,0,0,0,2124,2125,1,0,0,0,2125,2128,1,0,0,0,2126,2127,5,53,0,0,2127,2129,3,314,157,0,2128,2126,1,0,0,0,2128,2129,1,0,0,0,2129,251,1,0,0,0,2130,2132,7,11,0,0,2131,2130,1,0,0,0,2131,2132,1,0,0,0,2132,253,1,0,0,0,2133,2135,3,868,434,0,2134,2133,1,0,0,0,2134,2135,1,0,0,0,2135,2136,1,0,0,0,2136,2138,5,265,0,0,2137,2139,5,272,0,0,2138,2137,1,0,0,0,2138,2139,1,0,0,0,2139,2140,1,0,0,0,2140,2141,3,252,126,0,2141,2146,3,336,168,0,2142,2143,5,25,0,0,2143,2145,3,336,168,0,2144,2142,1,0,0,0,2145,2148,1,0,0,0,2146,2144,1,0,0,0,2146,2147,1,0,0,0,2147,2150,1,0,0,0,2148,2146,1,0,0,0,2149,2151,5,25,0,0,2150,2149,1,0,0,0,2150,2151,1,0,0,0,2151,2154,1,0,0,0,2152,2153,5,316,0,0,2153,2155,3,126,63,0,2154,2152,1,0,0,0,2154,2155,1,0,0,0,2155,2157,1,0,0,0,2156,2158,3,868,434,0,2157,2156,1,0,0,0,2157,2158,1,0,0,0,2158,2160,1,0,0,0,2159,2161,3,866,433,0,2160,2159,1,0,0,0,2160,2161,1,0,0,0,2161,2163,1,0,0,0,2162,2164,3,318,159,0,2163,2162,1,0,0,0,2163,2164,1,0,0,0,2164,2167,1,0,0,0,2165,2166,5,152,0,0,2166,2168,3,14,7,0,2167,2165,1,0,0,0,2167,2168,1,0,0,0,2168,2170,1,0,0,0,2169,2171,3,724,362,0,2170,2169,1,0,0,0,2170,2171,1,0,0,0,2171,2173,1,0,0,0,2172,2174,3,316,158,0,2173,2172,1,0,0,0,2173,2174,1,0,0,0,2174,255,1,0,0,0,2175,2176,5,188,0,0,2176,2178,5,26,0,0,2177,2179,3,738,369,0,2178,2177,1,0,0,0,2178,2179,1,0,0,0,2179,2181,1,0,0,0,2180,2182,3,314,157,0,2181,2180,1,0,0,0,2181,2182,1,0,0,0,2182,2184,1,0,0,0,2183,2185,3,262,131,0,2184,2183,1,0,0,0,2184,2185,1,0,0,0,2185,2187,1,0,0,0,2186,2188,3,258,129,0,2187,2186,1,0,0,0,2187,2188,1,0,0,0,2188,2189,1,0,0,0,2189,2190,3,268,134,0,2190,2191,5,27,0,0,2191,257,1,0,0,0,2192,2193,5,206,0,0,2193,2194,5,258,0,0,2194,2195,5,221,0,0,2195,2204,5,186,0,0,2196,2197,5,44,0,0,2197,2198,5,259,0,0,2198,2199,5,221,0,0,2199,2201,5,186,0,0,2200,2202,3,260,130,0,2201,2200,1,0,0,0,2201,2202,1,0,0,0,2202,2204,1,0,0,0,2203,2192,1,0,0,0,2203,2196,1,0,0,0,2204,259,1,0,0,0,2205,2206,5,269,0,0,2206,2207,5,115,0,0,2207,2215,5,187,0,0,2208,2209,5,204,0,0,2209,2210,5,115,0,0,2210,2215,5,187,0,0,2211,2212,5,315,0,0,2212,2213,5,301,0,0,2213,2215,5,259,0,0,2214,2205,1,0,0,0,2214,2208,1,0,0,0,2214,2211,1,0,0,0,2215,261,1,0,0,0,2216,2217,5,189,0,0,2217,2218,3,264,132,0,2218,263,1,0,0,0,2219,2224,3,266,133,0,2220,2221,5,25,0,0,2221,2223,3,266,133,0,2222,2220,1,0,0,0,2223,2226,1,0,0,0,2224,2222,1,0,0,0,2224,2225,1,0,0,0,2225,265,1,0,0,0,2226,2224,1,0,0,0,2227,2228,3,14,7,0,2228,2229,5,51,0,0,2229,2230,3,790,395,0,2230,267,1,0,0,0,2231,2232,5,43,0,0,2232,2233,5,186,0,0,2233,2235,3,270,135,0,2234,2231,1,0,0,0,2234,2235,1,0,0,0,2235,2237,1,0,0,0,2236,2238,3,274,137,0,2237,2236,1,0,0,0,2237,2238,1,0,0,0,2238,2239,1,0,0,0,2239,2240,5,220,0,0,2240,2241,5,26,0,0,2241,2242,3,276,138,0,2242,2244,5,27,0,0,2243,2245,3,290,145,0,2244,2243,1,0,0,0,2244,2245,1,0,0,0,2245,2246,1,0,0,0,2246,2247,5,101,0,0,2247,2248,3,302,151,0,2248,269,1,0,0,0,2249,2250,5,270,0,0,2250,2251,5,289,0,0,2251,2252,5,195,0,0,2252,2269,5,258,0,0,2253,2254,5,270,0,0,2254,2255,5,219,0,0,2255,2256,5,178,0,0,2256,2269,5,258,0,0,2257,2258,5,270,0,0,2258,2259,5,289,0,0,2259,2260,5,136,0,0,2260,2269,3,272,136,0,2261,2262,5,270,0,0,2262,2263,5,289,0,0,2263,2264,5,178,0,0,2264,2269,3,272,136,0,2265,2266,5,270,0,0,2266,2267,5,289,0,0,2267,2269,3,272,136,0,2268,2249,1,0,0,0,2268,2253,1,0,0,0,2268,2257,1,0,0,0,2268,2261,1,0,0,0,2268,2265,1,0,0,0,2269,271,1,0,0,0,2270,2271,3,312,156,0,2271,273,1,0,0,0,2272,2273,7,12,0,0,2273,275,1,0,0,0,2274,2279,3,278,139,0,2275,2276,5,13,0,0,2276,2278,3,278,139,0,2277,2275,1,0,0,0,2278,2281,1,0,0,0,2279,2277,1,0,0,0,2279,2280,1,0,0,0,2280,277,1,0,0,0,2281,2279,1,0,0,0,2282,2284,3,280,140,0,2283,2282,1,0,0,0,2284,2285,1,0,0,0,2285,2283,1,0,0,0,2285,2286,1,0,0,0,2286,279,1,0,0,0,2287,2289,3,284,142,0,2288,2290,3,282,141,0,2289,2288,1,0,0,0,2289,2290,1,0,0,0,2290,281,1,0,0,0,2291,2293,5,20,0,0,2292,2294,5,28,0,0,2293,2292,1,0,0,0,2293,2294,1,0,0,0,2294,2320,1,0,0,0,2295,2297,5,17,0,0,2296,2298,5,28,0,0,2297,2296,1,0,0,0,2297,2298,1,0,0,0,2298,2320,1,0,0,0,2299,2301,5,28,0,0,2300,2302,5,28,0,0,2301,2300,1,0,0,0,2301,2302,1,0,0,0,2302,2320,1,0,0,0,2303,2305,5,33,0,0,2304,2306,3,854,427,0,2305,2304,1,0,0,0,2305,2306,1,0,0,0,2306,2307,1,0,0,0,2307,2309,5,25,0,0,2308,2310,3,854,427,0,2309,2308,1,0,0,0,2309,2310,1,0,0,0,2310,2311,1,0,0,0,2311,2313,5,34,0,0,2312,2314,5,28,0,0,2313,2312,1,0,0,0,2313,2314,1,0,0,0,2314,2320,1,0,0,0,2315,2316,5,33,0,0,2316,2317,3,854,427,0,2317,2318,5,34,0,0,2318,2320,1,0,0,0,2319,2291,1,0,0,0,2319,2295,1,0,0,0,2319,2299,1,0,0,0,2319,2303,1,0,0,0,2319,2315,1,0,0,0,2320,283,1,0,0,0,2321,2337,3,286,143,0,2322,2337,5,32,0,0,2323,2337,5,35,0,0,2324,2326,5,26,0,0,2325,2327,3,276,138,0,2326,2325,1,0,0,0,2326,2327,1,0,0,0,2327,2328,1,0,0,0,2328,2337,5,27,0,0,2329,2330,5,33,0,0,2330,2331,5,18,0,0,2331,2332,3,276,138,0,2332,2333,5,18,0,0,2333,2334,5,34,0,0,2334,2337,1,0,0,0,2335,2337,3,288,144,0,2336,2321,1,0,0,0,2336,2322,1,0,0,0,2336,2323,1,0,0,0,2336,2324,1,0,0,0,2336,2329,1,0,0,0,2336,2335,1,0,0,0,2337,285,1,0,0,0,2338,2339,3,312,156,0,2339,287,1,0,0,0,2340,2341,5,222,0,0,2341,2342,5,26,0,0,2342,2347,3,276,138,0,2343,2344,5,25,0,0,2344,2346,3,276,138,0,2345,2343,1,0,0,0,2346,2349,1,0,0,0,2347,2345,1,0,0,0,2347,2348,1,0,0,0,2348,2350,1,0,0,0,2349,2347,1,0,0,0,2350,2351,5,27,0,0,2351,289,1,0,0,0,2352,2353,5,275,0,0,2353,2354,3,292,146,0,2354,291,1,0,0,0,2355,2360,3,294,147,0,2356,2357,5,25,0,0,2357,2359,3,294,147,0,2358,2356,1,0,0,0,2359,2362,1,0,0,0,2360,2358,1,0,0,0,2360,2361,1,0,0,0,2361,293,1,0,0,0,2362,2360,1,0,0,0,2363,2364,3,296,148,0,2364,2365,5,2,0,0,2365,2366,5,26,0,0,2366,2367,3,298,149,0,2367,2368,5,27,0,0,2368,295,1,0,0,0,2369,2370,3,312,156,0,2370,297,1,0,0,0,2371,2376,3,300,150,0,2372,2373,5,25,0,0,2373,2375,3,300,150,0,2374,2372,1,0,0,0,2375,2378,1,0,0,0,2376,2374,1,0,0,0,2376,2377,1,0,0,0,2377,299,1,0,0,0,2378,2376,1,0,0,0,2379,2380,3,312,156,0,2380,301,1,0,0,0,2381,2386,3,304,152,0,2382,2383,5,25,0,0,2383,2385,3,304,152,0,2384,2382,1,0,0,0,2385,2388,1,0,0,0,2386,2384,1,0,0,0,2386,2387,1,0,0,0,2387,303,1,0,0,0,2388,2386,1,0,0,0,2389,2390,3,306,153,0,2390,2391,5,51,0,0,2391,2392,3,308,154,0,2392,305,1,0,0,0,2393,2394,3,312,156,0,2394,307,1,0,0,0,2395,2396,3,310,155,0,2396,309,1,0,0,0,2397,2398,3,14,7,0,2398,311,1,0,0,0,2399,2400,3,770,385,0,2400,313,1,0,0,0,2401,2402,5,211,0,0,2402,2403,5,68,0,0,2403,2404,3,230,115,0,2404,315,1,0,0,0,2405,2407,5,53,0,0,2406,2405,1,0,0,0,2406,2407,1,0,0,0,2407,2408,1,0,0,0,2408,2409,3,314,157,0,2409,317,1,0,0,0,2410,2412,5,148,0,0,2411,2413,5,80,0,0,2412,2411,1,0,0,0,2412,2413,1,0,0,0,2413,2414,1,0,0,0,2414,2415,5,68,0,0,2415,2416,3,252,126,0,2416,2419,3,320,160,0,2417,2418,5,315,0,0,2418,2420,3,790,395,0,2419,2417,1,0,0,0,2419,2420,1,0,0,0,2420,319,1,0,0,0,2421,2426,3,322,161,0,2422,2423,5,25,0,0,2423,2425,3,322,161,0,2424,2422,1,0,0,0,2425,2428,1,0,0,0,2426,2424,1,0,0,0,2426,2427,1,0,0,0,2427,321,1,0,0,0,2428,2426,1,0,0,0,2429,2435,3,324,162,0,2430,2435,3,328,164,0,2431,2435,3,330,165,0,2432,2435,3,332,166,0,2433,2435,3,334,167,0,2434,2429,1,0,0,0,2434,2430,1,0,0,0,2434,2431,1,0,0,0,2434,2432,1,0,0,0,2434,2433,1,0,0,0,2435,323,1,0,0,0,2436,2437,3,128,64,0,2437,325,1,0,0,0,2438,2443,3,324,162,0,2439,2440,5,25,0,0,2440,2442,3,324,162,0,2441,2439,1,0,0,0,2442,2445,1,0,0,0,2443,2441,1,0,0,0,2443,2444,1,0,0,0,2444,327,1,0,0,0,2445,2443,1,0,0,0,2446,2447,5,257,0,0,2447,2448,5,26,0,0,2448,2449,3,326,163,0,2449,2450,5,27,0,0,2450,329,1,0,0,0,2451,2452,5,89,0,0,2452,2453,5,26,0,0,2453,2454,3,326,163,0,2454,2455,5,27,0,0,2455,331,1,0,0,0,2456,2457,5,149,0,0,2457,2458,5,268,0,0,2458,2459,5,26,0,0,2459,2460,3,320,160,0,2460,2461,5,27,0,0,2461,333,1,0,0,0,2462,2463,5,153,0,0,2463,2464,5,26,0,0,2464,2465,3,14,7,0,2465,2466,5,25,0,0,2466,2467,3,14,7,0,2467,2468,5,25,0,0,2468,2469,3,14,7,0,2469,2470,5,25,0,0,2470,2471,3,14,7,0,2471,2472,5,27,0,0,2472,335,1,0,0,0,2473,2474,3,814,407,0,2474,2475,5,20,0,0,2475,2483,1,0,0,0,2476,2480,3,14,7,0,2477,2478,5,51,0,0,2478,2481,3,792,396,0,2479,2481,3,810,405,0,2480,2477,1,0,0,0,2480,2479,1,0,0,0,2480,2481,1,0,0,0,2481,2483,1,0,0,0,2482,2473,1,0,0,0,2482,2476,1,0,0,0,2483,337,1,0,0,0,2484,2486,5,49,0,0,2485,2484,1,0,0,0,2485,2486,1,0,0,0,2486,2487,1,0,0,0,2487,2498,3,344,172,0,2488,2490,3,358,179,0,2489,2491,5,49,0,0,2490,2489,1,0,0,0,2490,2491,1,0,0,0,2491,2492,1,0,0,0,2492,2494,3,344,172,0,2493,2495,3,360,180,0,2494,2493,1,0,0,0,2494,2495,1,0,0,0,2495,2497,1,0,0,0,2496,2488,1,0,0,0,2497,2500,1,0,0,0,2498,2496,1,0,0,0,2498,2499,1,0,0,0,2499,339,1,0,0,0,2500,2498,1,0,0,0,2501,2504,3,120,60,0,2502,2503,5,51,0,0,2503,2505,3,790,395,0,2504,2502,1,0,0,0,2504,2505,1,0,0,0,2505,341,1,0,0,0,2506,2515,3,340,170,0,2507,2508,5,26,0,0,2508,2510,3,130,65,0,2509,2511,5,25,0,0,2510,2509,1,0,0,0,2510,2511,1,0,0,0,2511,2512,1,0,0,0,2512,2513,5,27,0,0,2513,2515,1,0,0,0,2514,2506,1,0,0,0,2514,2507,1,0,0,0,2515,343,1,0,0,0,2516,2526,3,346,173,0,2517,2524,5,137,0,0,2518,2520,7,13,0,0,2519,2518,1,0,0,0,2519,2520,1,0,0,0,2520,2521,1,0,0,0,2521,2522,5,68,0,0,2522,2525,3,342,171,0,2523,2525,5,78,0,0,2524,2519,1,0,0,0,2524,2523,1,0,0,0,2525,2527,1,0,0,0,2526,2517,1,0,0,0,2526,2527,1,0,0,0,2527,345,1,0,0,0,2528,2530,3,348,174,0,2529,2531,3,256,128,0,2530,2529,1,0,0,0,2530,2531,1,0,0,0,2531,2540,1,0,0,0,2532,2533,5,51,0,0,2533,2536,3,790,395,0,2534,2536,3,810,405,0,2535,2532,1,0,0,0,2535,2534,1,0,0,0,2536,2538,1,0,0,0,2537,2539,3,114,57,0,2538,2537,1,0,0,0,2538,2539,1,0,0,0,2539,2541,1,0,0,0,2540,2535,1,0,0,0,2540,2541,1,0,0,0,2541,2544,1,0,0,0,2542,2545,3,350,175,0,2543,2545,3,352,176,0,2544,2542,1,0,0,0,2544,2543,1,0,0,0,2544,2545,1,0,0,0,2545,347,1,0,0,0,2546,2556,3,632,316,0,2547,2548,5,26,0,0,2548,2549,3,232,116,0,2549,2550,5,27,0,0,2550,2556,1,0,0,0,2551,2552,5,26,0,0,2552,2553,3,370,185,0,2553,2554,5,27,0,0,2554,2556,1,0,0,0,2555,2546,1,0,0,0,2555,2547,1,0,0,0,2555,2551,1,0,0,0,2556,349,1,0,0,0,2557,2558,5,260,0,0,2558,2559,3,14,7,0,2559,351,1,0,0,0,2560,2561,5,282,0,0,2561,2562,3,354,177,0,2562,2563,5,26,0,0,2563,2564,3,14,7,0,2564,2566,5,27,0,0,2565,2567,3,356,178,0,2566,2565,1,0,0,0,2566,2567,1,0,0,0,2567,353,1,0,0,0,2568,2569,7,14,0,0,2569,355,1,0,0,0,2570,2571,5,241,0,0,2571,2572,5,26,0,0,2572,2573,3,14,7,0,2573,2574,5,27,0,0,2574,357,1,0,0,0,2575,2600,5,25,0,0,2576,2578,5,194,0,0,2577,2576,1,0,0,0,2577,2578,1,0,0,0,2578,2596,1,0,0,0,2579,2581,5,179,0,0,2580,2582,7,15,0,0,2581,2580,1,0,0,0,2581,2582,1,0,0,0,2582,2590,1,0,0,0,2583,2585,5,254,0,0,2584,2586,7,15,0,0,2585,2584,1,0,0,0,2585,2586,1,0,0,0,2586,2590,1,0,0,0,2587,2590,5,126,0,0,2588,2590,5,143,0,0,2589,2579,1,0,0,0,2589,2583,1,0,0,0,2589,2587,1,0,0,0,2589,2588,1,0,0,0,2589,2590,1,0,0,0,2590,2592,1,0,0,0,2591,2593,5,213,0,0,2592,2591,1,0,0,0,2592,2593,1,0,0,0,2593,2597,1,0,0,0,2594,2597,5,166,0,0,2595,2597,5,88,0,0,2596,2589,1,0,0,0,2596,2594,1,0,0,0,2596,2595,1,0,0,0,2597,2598,1,0,0,0,2598,2600,5,173,0,0,2599,2575,1,0,0,0,2599,2577,1,0,0,0,2600,359,1,0,0,0,2601,2602,5,205,0,0,2602,2606,3,14,7,0,2603,2604,5,306,0,0,2604,2606,3,118,59,0,2605,2601,1,0,0,0,2605,2603,1,0,0,0,2606,361,1,0,0,0,2607,2617,5,251,0,0,2608,2618,5,20,0,0,2609,2614,3,790,395,0,2610,2611,5,25,0,0,2611,2613,3,790,395,0,2612,2610,1,0,0,0,2613,2616,1,0,0,0,2614,2612,1,0,0,0,2614,2615,1,0,0,0,2615,2618,1,0,0,0,2616,2614,1,0,0,0,2617,2608,1,0,0,0,2617,2609,1,0,0,0,2618,363,1,0,0,0,2619,2632,5,167,0,0,2620,2621,5,167,0,0,2621,2622,5,210,0,0,2622,2632,5,40,0,0,2623,2624,5,167,0,0,2624,2625,5,210,0,0,2625,2632,5,252,0,0,2626,2627,5,167,0,0,2627,2628,5,210,0,0,2628,2632,5,155,0,0,2629,2632,5,303,0,0,2630,2632,5,242,0,0,2631,2619,1,0,0,0,2631,2620,1,0,0,0,2631,2623,1,0,0,0,2631,2626,1,0,0,0,2631,2629,1,0,0,0,2631,2630,1,0,0,0,2632,2633,1,0,0,0,2633,2634,5,170,0,0,2634,2635,3,648,324,0,2635,2637,3,368,184,0,2636,2638,3,362,181,0,2637,2636,1,0,0,0,2637,2638,1,0,0,0,2638,365,1,0,0,0,2639,2651,5,167,0,0,2640,2641,5,167,0,0,2641,2642,5,210,0,0,2642,2651,5,40,0,0,2643,2644,5,167,0,0,2644,2645,5,210,0,0,2645,2651,5,252,0,0,2646,2647,5,167,0,0,2647,2648,5,210,0,0,2648,2651,5,155,0,0,2649,2651,5,242,0,0,2650,2639,1,0,0,0,2650,2640,1,0,0,0,2650,2643,1,0,0,0,2650,2646,1,0,0,0,2650,2649,1,0,0,0,2651,2652,1,0,0,0,2652,2653,5,170,0,0,2653,2654,3,648,324,0,2654,2655,3,368,184,0,2655,367,1,0,0,0,2656,2658,3,114,57,0,2657,2656,1,0,0,0,2657,2658,1,0,0,0,2658,2659,1,0,0,0,2659,2663,3,372,186,0,2660,2661,5,98,0,0,2661,2663,5,308,0,0,2662,2657,1,0,0,0,2662,2660,1,0,0,0,2663,369,1,0,0,0,2664,2665,5,308,0,0,2665,2666,3,374,187,0,2666,371,1,0,0,0,2667,2670,3,370,185,0,2668,2670,3,232,116,0,2669,2667,1,0,0,0,2669,2668,1,0,0,0,2670,373,1,0,0,0,2671,2676,3,376,188,0,2672,2673,5,25,0,0,2673,2675,3,376,188,0,2674,2672,1,0,0,0,2675,2678,1,0,0,0,2676,2674,1,0,0,0,2676,2677,1,0,0,0,2677,375,1,0,0,0,2678,2676,1,0,0,0,2679,2680,5,26,0,0,2680,2681,3,112,56,0,2681,2682,5,27,0,0,2682,377,1,0,0,0,2683,2686,3,112,56,0,2684,2686,3,232,116,0,2685,2683,1,0,0,0,2685,2684,1,0,0,0,2686,379,1,0,0,0,2687,2690,5,87,0,0,2688,2689,5,210,0,0,2689,2691,5,242,0,0,2690,2688,1,0,0,0,2690,2691,1,0,0,0,2691,2692,1,0,0,0,2692,2693,5,131,0,0,2693,2694,5,94,0,0,2694,2698,5,271,0,0,2695,2696,5,154,0,0,2696,2697,5,197,0,0,2697,2699,5,128,0,0,2698,2695,1,0,0,0,2698,2699,1,0,0,0,2699,2700,1,0,0,0,2700,2701,3,642,321,0,2701,2702,3,456,228,0,2702,381,1,0,0,0,2703,2704,5,45,0,0,2704,2705,5,131,0,0,2705,2706,5,94,0,0,2706,2707,5,271,0,0,2707,2708,3,642,321,0,2708,2713,3,384,192,0,2709,2710,5,25,0,0,2710,2712,3,384,192,0,2711,2709,1,0,0,0,2712,2715,1,0,0,0,2713,2711,1,0,0,0,2713,2714,1,0,0,0,2714,383,1,0,0,0,2715,2713,1,0,0,0,2716,2720,3,488,244,0,2717,2720,3,490,245,0,2718,2720,3,492,246,0,2719,2716,1,0,0,0,2719,2717,1,0,0,0,2719,2718,1,0,0,0,2720,385,1,0,0,0,2721,2722,5,112,0,0,2722,2723,5,131,0,0,2723,2724,5,94,0,0,2724,2727,5,271,0,0,2725,2726,5,154,0,0,2726,2728,5,128,0,0,2727,2725,1,0,0,0,2727,2728,1,0,0,0,2728,2729,1,0,0,0,2729,2730,3,642,321,0,2730,387,1,0,0,0,2731,2732,5,87,0,0,2732,2736,5,310,0,0,2733,2734,5,154,0,0,2734,2735,5,197,0,0,2735,2737,5,128,0,0,2736,2733,1,0,0,0,2736,2737,1,0,0,0,2737,2738,1,0,0,0,2738,2740,3,642,321,0,2739,2741,3,396,198,0,2740,2739,1,0,0,0,2740,2741,1,0,0,0,2741,2742,1,0,0,0,2742,2743,5,51,0,0,2743,2744,3,232,116,0,2744,389,1,0,0,0,2745,2746,5,112,0,0,2746,2749,5,310,0,0,2747,2748,5,154,0,0,2748,2750,5,128,0,0,2749,2747,1,0,0,0,2749,2750,1,0,0,0,2750,2751,1,0,0,0,2751,2752,3,642,321,0,2752,391,1,0,0,0,2753,2754,5,303,0,0,2754,2755,5,201,0,0,2755,2756,3,642,321,0,2756,2757,5,26,0,0,2757,2758,5,295,0,0,2758,2759,3,416,208,0,2759,2761,5,27,0,0,2760,2762,3,396,198,0,2761,2760,1,0,0,0,2761,2762,1,0,0,0,2762,393,1,0,0,0,2763,2764,5,87,0,0,2764,2768,5,201,0,0,2765,2766,5,154,0,0,2766,2767,5,197,0,0,2767,2769,5,128,0,0,2768,2765,1,0,0,0,2768,2769,1,0,0,0,2769,2770,1,0,0,0,2770,2771,3,642,321,0,2771,2772,5,26,0,0,2772,2773,5,295,0,0,2773,2774,3,416,208,0,2774,2776,5,27,0,0,2775,2777,3,396,198,0,2776,2775,1,0,0,0,2776,2777,1,0,0,0,2777,395,1,0,0,0,2778,2779,5,315,0,0,2779,2780,3,414,207,0,2780,397,1,0,0,0,2781,2782,5,45,0,0,2782,2783,5,201,0,0,2783,2784,3,642,321,0,2784,2785,5,26,0,0,2785,2786,5,295,0,0,2786,2787,3,416,208,0,2787,2788,5,27,0,0,2788,2789,3,400,200,0,2789,399,1,0,0,0,2790,2791,5,267,0,0,2791,2792,3,414,207,0,2792,401,1,0,0,0,2793,2794,5,112,0,0,2794,2797,5,201,0,0,2795,2796,5,154,0,0,2796,2798,5,128,0,0,2797,2795,1,0,0,0,2797,2798,1,0,0,0,2798,2799,1,0,0,0,2799,2800,3,642,321,0,2800,2801,5,26,0,0,2801,2802,5,295,0,0,2802,2803,3,416,208,0,2803,2805,5,27,0,0,2804,2806,3,404,202,0,2805,2804,1,0,0,0,2805,2806,1,0,0,0,2806,403,1,0,0,0,2807,2808,5,315,0,0,2808,2809,3,414,207,0,2809,405,1,0,0,0,2810,2815,3,818,409,0,2811,2815,3,144,72,0,2812,2815,5,319,0,0,2813,2815,3,850,425,0,2814,2810,1,0,0,0,2814,2811,1,0,0,0,2814,2812,1,0,0,0,2814,2813,1,0,0,0,2815,407,1,0,0,0,2816,2817,3,792,396,0,2817,2818,5,2,0,0,2818,2819,3,406,203,0,2819,409,1,0,0,0,2820,2821,3,792,396,0,2821,411,1,0,0,0,2822,2825,3,408,204,0,2823,2825,3,410,205,0,2824,2822,1,0,0,0,2824,2823,1,0,0,0,2825,413,1,0,0,0,2826,2839,3,412,206,0,2827,2828,5,26,0,0,2828,2833,3,412,206,0,2829,2830,5,25,0,0,2830,2832,3,412,206,0,2831,2829,1,0,0,0,2832,2835,1,0,0,0,2833,2831,1,0,0,0,2833,2834,1,0,0,0,2834,2836,1,0,0,0,2835,2833,1,0,0,0,2836,2837,5,27,0,0,2837,2839,1,0,0,0,2838,2826,1,0,0,0,2838,2827,1,0,0,0,2839,415,1,0,0,0,2840,2841,3,792,396,0,2841,417,1,0,0,0,2842,2845,5,87,0,0,2843,2844,5,210,0,0,2844,2846,5,242,0,0,2845,2843,1,0,0,0,2845,2846,1,0,0,0,2846,2855,1,0,0,0,2847,2856,5,280,0,0,2848,2856,5,283,0,0,2849,2850,5,131,0,0,2850,2856,5,280,0,0,2851,2852,5,285,0,0,2852,2856,5,280,0,0,2853,2854,5,286,0,0,2854,2856,5,280,0,0,2855,2847,1,0,0,0,2855,2848,1,0,0,0,2855,2849,1,0,0,0,2855,2851,1,0,0,0,2855,2853,1,0,0,0,2856,2860,1,0,0,0,2857,2858,5,154,0,0,2858,2859,5,197,0,0,2859,2861,5,128,0,0,2860,2857,1,0,0,0,2860,2861,1,0,0,0,2861,2862,1,0,0,0,2862,2863,3,646,323,0,2863,2864,5,26,0,0,2864,2869,3,420,210,0,2865,2866,5,25,0,0,2866,2868,3,420,210,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,2873,1,0,0,0,2871,2869,1,0,0,0,2872,2874,5,25,0,0,2873,2872,1,0,0,0,2873,2874,1,0,0,0,2874,2875,1,0,0,0,2875,2877,5,27,0,0,2876,2878,3,452,226,0,2877,2876,1,0,0,0,2877,2878,1,0,0,0,2878,2880,1,0,0,0,2879,2881,3,454,227,0,2880,2879,1,0,0,0,2880,2881,1,0,0,0,2881,2883,1,0,0,0,2882,2884,3,456,228,0,2883,2882,1,0,0,0,2883,2884,1,0,0,0,2884,2886,1,0,0,0,2885,2887,3,458,229,0,2886,2885,1,0,0,0,2886,2887,1,0,0,0,2887,2889,1,0,0,0,2888,2890,3,462,231,0,2889,2888,1,0,0,0,2889,2890,1,0,0,0,2890,419,1,0,0,0,2891,2898,3,510,255,0,2892,2898,3,518,259,0,2893,2898,3,520,260,0,2894,2898,3,550,275,0,2895,2898,3,536,268,0,2896,2898,3,794,397,0,2897,2891,1,0,0,0,2897,2892,1,0,0,0,2897,2893,1,0,0,0,2897,2894,1,0,0,0,2897,2895,1,0,0,0,2897,2896,1,0,0,0,2898,421,1,0,0,0,2899,2900,5,87,0,0,2900,2902,3,442,221,0,2901,2903,3,428,214,0,2902,2901,1,0,0,0,2902,2903,1,0,0,0,2903,2904,1,0,0,0,2904,2905,5,315,0,0,2905,2906,5,26,0,0,2906,2907,3,444,222,0,2907,2908,5,27,0,0,2908,423,1,0,0,0,2909,2910,5,45,0,0,2910,2913,3,442,221,0,2911,2914,3,434,217,0,2912,2914,3,438,219,0,2913,2911,1,0,0,0,2913,2912,1,0,0,0,2914,425,1,0,0,0,2915,2916,5,112,0,0,2916,2917,3,442,221,0,2917,427,1,0,0,0,2918,2921,5,95,0,0,2919,2921,3,430,215,0,2920,2918,1,0,0,0,2920,2919,1,0,0,0,2921,429,1,0,0,0,2922,2923,5,26,0,0,2923,2924,3,432,216,0,2924,2925,5,27,0,0,2925,431,1,0,0,0,2926,2927,5,280,0,0,2927,2933,3,802,401,0,2928,2929,5,25,0,0,2929,2930,5,280,0,0,2930,2932,3,802,401,0,2931,2928,1,0,0,0,2932,2935,1,0,0,0,2933,2931,1,0,0,0,2933,2934,1,0,0,0,2934,433,1,0,0,0,2935,2933,1,0,0,0,2936,2941,3,436,218,0,2937,2938,5,25,0,0,2938,2940,3,436,218,0,2939,2937,1,0,0,0,2940,2943,1,0,0,0,2941,2939,1,0,0,0,2941,2942,1,0,0,0,2942,435,1,0,0,0,2943,2941,1,0,0,0,2944,2947,3,490,245,0,2945,2947,3,492,246,0,2946,2944,1,0,0,0,2946,2945,1,0,0,0,2947,437,1,0,0,0,2948,2953,3,440,220,0,2949,2950,5,25,0,0,2950,2952,3,440,220,0,2951,2949,1,0,0,0,2952,2955,1,0,0,0,2953,2951,1,0,0,0,2953,2954,1,0,0,0,2954,439,1,0,0,0,2955,2953,1,0,0,0,2956,2957,5,42,0,0,2957,2967,5,95,0,0,2958,2959,5,112,0,0,2959,2967,5,95,0,0,2960,2961,5,42,0,0,2961,2962,5,280,0,0,2962,2967,3,802,401,0,2963,2964,5,112,0,0,2964,2965,5,280,0,0,2965,2967,3,802,401,0,2966,2956,1,0,0,0,2966,2958,1,0,0,0,2966,2960,1,0,0,0,2966,2963,1,0,0,0,2967,441,1,0,0,0,2968,2969,5,61,0,0,2969,2970,5,62,0,0,2970,2971,3,642,321,0,2971,443,1,0,0,0,2972,2977,3,446,223,0,2973,2974,5,25,0,0,2974,2976,3,446,223,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,445,1,0,0,0,2979,2977,1,0,0,0,2980,2981,3,790,395,0,2981,2982,5,2,0,0,2982,2983,3,548,274,0,2983,447,1,0,0,0,2984,2985,5,61,0,0,2985,2987,3,642,321,0,2986,2988,5,160,0,0,2987,2986,1,0,0,0,2987,2988,1,0,0,0,2988,449,1,0,0,0,2989,2990,5,247,0,0,2990,2993,3,642,321,0,2991,2992,5,56,0,0,2992,2994,5,319,0,0,2993,2991,1,0,0,0,2993,2994,1,0,0,0,2994,451,1,0,0,0,2995,2996,5,163,0,0,2996,2997,5,26,0,0,2997,3002,3,644,322,0,2998,2999,5,25,0,0,2999,3001,3,644,322,0,3e3,2998,1,0,0,0,3001,3004,1,0,0,0,3002,3e3,1,0,0,0,3002,3003,1,0,0,0,3003,3005,1,0,0,0,3004,3002,1,0,0,0,3005,3006,5,27,0,0,3006,453,1,0,0,0,3007,3008,5,216,0,0,3008,3009,5,68,0,0,3009,3010,5,151,0,0,3010,3011,3,114,57,0,3011,455,1,0,0,0,3012,3013,5,315,0,0,3013,3014,5,26,0,0,3014,3019,3,460,230,0,3015,3016,5,25,0,0,3016,3018,3,460,230,0,3017,3015,1,0,0,0,3018,3021,1,0,0,0,3019,3017,1,0,0,0,3019,3020,1,0,0,0,3020,3022,1,0,0,0,3021,3019,1,0,0,0,3022,3023,5,27,0,0,3023,457,1,0,0,0,3024,3025,5,283,0,0,3025,3026,3,644,322,0,3026,459,1,0,0,0,3027,3028,3,790,395,0,3028,3029,5,2,0,0,3029,3030,3,548,274,0,3030,461,1,0,0,0,3031,3032,5,51,0,0,3032,3033,3,372,186,0,3033,463,1,0,0,0,3034,3035,5,45,0,0,3035,3036,5,280,0,0,3036,3037,3,646,323,0,3037,3042,3,466,233,0,3038,3039,5,25,0,0,3039,3041,3,466,233,0,3040,3038,1,0,0,0,3041,3044,1,0,0,0,3042,3040,1,0,0,0,3042,3043,1,0,0,0,3043,465,1,0,0,0,3044,3042,1,0,0,0,3045,3063,3,476,238,0,3046,3063,3,478,239,0,3047,3063,3,480,240,0,3048,3063,3,484,242,0,3049,3063,3,486,243,0,3050,3063,3,488,244,0,3051,3063,3,490,245,0,3052,3063,3,492,246,0,3053,3063,3,494,247,0,3054,3063,3,496,248,0,3055,3063,3,498,249,0,3056,3063,3,502,251,0,3057,3063,3,504,252,0,3058,3063,3,506,253,0,3059,3063,3,500,250,0,3060,3063,3,508,254,0,3061,3063,3,482,241,0,3062,3045,1,0,0,0,3062,3046,1,0,0,0,3062,3047,1,0,0,0,3062,3048,1,0,0,0,3062,3049,1,0,0,0,3062,3050,1,0,0,0,3062,3051,1,0,0,0,3062,3052,1,0,0,0,3062,3053,1,0,0,0,3062,3054,1,0,0,0,3062,3055,1,0,0,0,3062,3056,1,0,0,0,3062,3057,1,0,0,0,3062,3058,1,0,0,0,3062,3059,1,0,0,0,3062,3060,1,0,0,0,3062,3061,1,0,0,0,3063,467,1,0,0,0,3064,3065,5,45,0,0,3065,3066,5,131,0,0,3066,3067,5,280,0,0,3067,3068,3,646,323,0,3068,3073,3,470,235,0,3069,3070,5,25,0,0,3070,3072,3,470,235,0,3071,3069,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3073,3074,1,0,0,0,3074,469,1,0,0,0,3075,3073,1,0,0,0,3076,3082,3,476,238,0,3077,3082,3,478,239,0,3078,3082,3,488,244,0,3079,3082,3,490,245,0,3080,3082,3,492,246,0,3081,3076,1,0,0,0,3081,3077,1,0,0,0,3081,3078,1,0,0,0,3081,3079,1,0,0,0,3081,3080,1,0,0,0,3082,471,1,0,0,0,3083,3084,5,45,0,0,3084,3085,5,283,0,0,3085,3086,3,642,321,0,3086,3091,3,474,237,0,3087,3088,5,25,0,0,3088,3090,3,474,237,0,3089,3087,1,0,0,0,3090,3093,1,0,0,0,3091,3089,1,0,0,0,3091,3092,1,0,0,0,3092,473,1,0,0,0,3093,3091,1,0,0,0,3094,3097,3,476,238,0,3095,3097,3,478,239,0,3096,3094,1,0,0,0,3096,3095,1,0,0,0,3097,475,1,0,0,0,3098,3100,5,42,0,0,3099,3101,5,77,0,0,3100,3099,1,0,0,0,3100,3101,1,0,0,0,3101,3102,1,0,0,0,3102,3103,3,510,255,0,3103,477,1,0,0,0,3104,3106,5,112,0,0,3105,3107,5,77,0,0,3106,3105,1,0,0,0,3106,3107,1,0,0,0,3107,3108,1,0,0,0,3108,3109,3,790,395,0,3109,479,1,0,0,0,3110,3111,5,45,0,0,3111,3112,5,77,0,0,3112,3113,3,790,395,0,3113,3114,5,267,0,0,3114,3115,3,512,256,0,3115,481,1,0,0,0,3116,3117,5,45,0,0,3117,3118,5,77,0,0,3118,3119,3,790,395,0,3119,3120,5,112,0,0,3120,3121,5,197,0,0,3121,3122,5,199,0,0,3122,483,1,0,0,0,3123,3124,5,42,0,0,3124,3125,3,550,275,0,3125,485,1,0,0,0,3126,3127,5,45,0,0,3127,3128,5,134,0,0,3128,3129,3,790,395,0,3129,3130,5,267,0,0,3130,3131,3,790,395,0,3131,3132,3,556,278,0,3132,487,1,0,0,0,3133,3134,5,267,0,0,3134,3135,3,790,395,0,3135,3136,3,548,274,0,3136,489,1,0,0,0,3137,3138,5,267,0,0,3138,3139,5,26,0,0,3139,3144,3,546,273,0,3140,3141,5,25,0,0,3141,3143,3,546,273,0,3142,3140,1,0,0,0,3143,3146,1,0,0,0,3144,3142,1,0,0,0,3144,3145,1,0,0,0,3145,3147,1,0,0,0,3146,3144,1,0,0,0,3147,3148,5,27,0,0,3148,491,1,0,0,0,3149,3150,5,244,0,0,3150,3151,5,26,0,0,3151,3156,3,790,395,0,3152,3153,5,25,0,0,3153,3155,3,790,395,0,3154,3152,1,0,0,0,3155,3158,1,0,0,0,3156,3154,1,0,0,0,3156,3157,1,0,0,0,3157,3159,1,0,0,0,3158,3156,1,0,0,0,3159,3160,5,27,0,0,3160,493,1,0,0,0,3161,3162,5,42,0,0,3162,3163,3,520,260,0,3163,495,1,0,0,0,3164,3165,5,112,0,0,3165,3166,5,161,0,0,3166,3167,3,790,395,0,3167,497,1,0,0,0,3168,3169,5,240,0,0,3169,3170,5,289,0,0,3170,3171,3,802,401,0,3171,499,1,0,0,0,3172,3173,5,240,0,0,3173,3174,5,161,0,0,3174,3175,3,790,395,0,3175,3176,5,289,0,0,3176,3177,3,790,395,0,3177,501,1,0,0,0,3178,3179,5,42,0,0,3179,3180,3,536,268,0,3180,503,1,0,0,0,3181,3182,5,45,0,0,3182,3183,5,73,0,0,3183,3184,3,790,395,0,3184,3185,3,544,272,0,3185,505,1,0,0,0,3186,3187,5,112,0,0,3187,3188,5,73,0,0,3188,3189,3,790,395,0,3189,507,1,0,0,0,3190,3191,5,45,0,0,3191,3192,5,161,0,0,3192,3193,3,790,395,0,3193,3194,3,562,281,0,3194,509,1,0,0,0,3195,3196,3,794,397,0,3196,3198,3,204,102,0,3197,3199,3,512,256,0,3198,3197,1,0,0,0,3198,3199,1,0,0,0,3199,3200,1,0,0,0,3200,3201,3,514,257,0,3201,511,1,0,0,0,3202,3203,5,134,0,0,3203,3204,3,790,395,0,3204,513,1,0,0,0,3205,3207,5,197,0,0,3206,3205,1,0,0,0,3206,3207,1,0,0,0,3207,3208,1,0,0,0,3208,3210,5,199,0,0,3209,3206,1,0,0,0,3209,3210,1,0,0,0,3210,3213,1,0,0,0,3211,3212,5,98,0,0,3212,3214,3,14,7,0,3213,3211,1,0,0,0,3213,3214,1,0,0,0,3214,515,1,0,0,0,3215,3217,3,790,395,0,3216,3218,7,9,0,0,3217,3216,1,0,0,0,3217,3218,1,0,0,0,3218,517,1,0,0,0,3219,3220,5,228,0,0,3220,3221,5,177,0,0,3221,3222,5,26,0,0,3222,3227,3,790,395,0,3223,3224,5,25,0,0,3224,3226,3,790,395,0,3225,3223,1,0,0,0,3226,3229,1,0,0,0,3227,3225,1,0,0,0,3227,3228,1,0,0,0,3228,3230,1,0,0,0,3229,3227,1,0,0,0,3230,3231,5,27,0,0,3231,3259,1,0,0,0,3232,3233,5,216,0,0,3233,3234,5,68,0,0,3234,3235,5,26,0,0,3235,3240,3,790,395,0,3236,3237,5,25,0,0,3237,3239,3,790,395,0,3238,3236,1,0,0,0,3239,3242,1,0,0,0,3240,3238,1,0,0,0,3240,3241,1,0,0,0,3241,3243,1,0,0,0,3242,3240,1,0,0,0,3243,3244,5,27,0,0,3244,3259,1,0,0,0,3245,3246,5,211,0,0,3246,3247,5,68,0,0,3247,3248,5,26,0,0,3248,3253,3,516,258,0,3249,3250,5,25,0,0,3250,3252,3,516,258,0,3251,3249,1,0,0,0,3252,3255,1,0,0,0,3253,3251,1,0,0,0,3253,3254,1,0,0,0,3254,3256,1,0,0,0,3255,3253,1,0,0,0,3256,3257,5,27,0,0,3257,3259,1,0,0,0,3258,3219,1,0,0,0,3258,3232,1,0,0,0,3258,3245,1,0,0,0,3259,519,1,0,0,0,3260,3261,5,161,0,0,3261,3262,3,790,395,0,3262,3263,3,522,261,0,3263,3264,5,205,0,0,3264,3265,5,26,0,0,3265,3270,3,794,397,0,3266,3267,5,25,0,0,3267,3269,3,794,397,0,3268,3266,1,0,0,0,3269,3272,1,0,0,0,3270,3268,1,0,0,0,3270,3271,1,0,0,0,3271,3273,1,0,0,0,3272,3270,1,0,0,0,3273,3286,5,27,0,0,3274,3275,5,86,0,0,3275,3276,5,26,0,0,3276,3281,3,794,397,0,3277,3278,5,25,0,0,3278,3280,3,794,397,0,3279,3277,1,0,0,0,3280,3283,1,0,0,0,3281,3279,1,0,0,0,3281,3282,1,0,0,0,3282,3284,1,0,0,0,3283,3281,1,0,0,0,3284,3285,5,27,0,0,3285,3287,1,0,0,0,3286,3274,1,0,0,0,3286,3287,1,0,0,0,3287,3289,1,0,0,0,3288,3290,3,530,265,0,3289,3288,1,0,0,0,3289,3290,1,0,0,0,3290,521,1,0,0,0,3291,3294,3,524,262,0,3292,3294,3,526,263,0,3293,3291,1,0,0,0,3293,3292,1,0,0,0,3294,3297,1,0,0,0,3295,3296,5,306,0,0,3296,3298,3,528,264,0,3297,3295,1,0,0,0,3297,3298,1,0,0,0,3298,523,1,0,0,0,3299,3301,5,146,0,0,3300,3302,5,299,0,0,3301,3300,1,0,0,0,3301,3302,1,0,0,0,3302,3304,1,0,0,0,3303,3305,7,16,0,0,3304,3303,1,0,0,0,3304,3305,1,0,0,0,3305,525,1,0,0,0,3306,3307,5,184,0,0,3307,527,1,0,0,0,3308,3309,3,790,395,0,3309,529,1,0,0,0,3310,3311,5,315,0,0,3311,3312,5,26,0,0,3312,3317,3,532,266,0,3313,3314,5,25,0,0,3314,3316,3,532,266,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,3321,1,0,0,0,3319,3317,1,0,0,0,3320,3322,5,25,0,0,3321,3320,1,0,0,0,3321,3322,1,0,0,0,3322,3323,1,0,0,0,3323,3324,5,27,0,0,3324,531,1,0,0,0,3325,3326,3,790,395,0,3326,3327,5,2,0,0,3327,3328,3,534,267,0,3328,533,1,0,0,0,3329,3334,3,818,409,0,3330,3334,5,319,0,0,3331,3334,3,854,427,0,3332,3334,3,850,425,0,3333,3329,1,0,0,0,3333,3330,1,0,0,0,3333,3331,1,0,0,0,3333,3332,1,0,0,0,3334,535,1,0,0,0,3335,3336,5,73,0,0,3336,3337,3,790,395,0,3337,3338,5,315,0,0,3338,3339,5,26,0,0,3339,3340,3,538,269,0,3340,3341,5,27,0,0,3341,537,1,0,0,0,3342,3347,3,540,270,0,3343,3344,5,25,0,0,3344,3346,3,540,270,0,3345,3343,1,0,0,0,3346,3349,1,0,0,0,3347,3345,1,0,0,0,3347,3348,1,0,0,0,3348,539,1,0,0,0,3349,3347,1,0,0,0,3350,3351,3,790,395,0,3351,3352,5,2,0,0,3352,3353,3,542,271,0,3353,541,1,0,0,0,3354,3355,3,14,7,0,3355,543,1,0,0,0,3356,3363,5,108,0,0,3357,3358,5,267,0,0,3358,3359,5,26,0,0,3359,3360,3,538,269,0,3360,3361,5,27,0,0,3361,3363,1,0,0,0,3362,3356,1,0,0,0,3362,3357,1,0,0,0,3363,545,1,0,0,0,3364,3365,3,790,395,0,3365,3366,5,2,0,0,3366,3367,3,548,274,0,3367,547,1,0,0,0,3368,3381,3,772,386,0,3369,3381,5,319,0,0,3370,3381,3,854,427,0,3371,3381,3,558,279,0,3372,3373,3,14,7,0,3373,3374,5,205,0,0,3374,3377,3,790,395,0,3375,3376,5,51,0,0,3376,3378,7,17,0,0,3377,3375,1,0,0,0,3377,3378,1,0,0,0,3378,3381,1,0,0,0,3379,3381,3,850,425,0,3380,3368,1,0,0,0,3380,3369,1,0,0,0,3380,3370,1,0,0,0,3380,3371,1,0,0,0,3380,3372,1,0,0,0,3380,3379,1,0,0,0,3381,549,1,0,0,0,3382,3383,5,134,0,0,3383,3384,3,790,395,0,3384,3385,3,552,276,0,3385,551,1,0,0,0,3386,3395,5,26,0,0,3387,3392,3,554,277,0,3388,3389,5,25,0,0,3389,3391,3,554,277,0,3390,3388,1,0,0,0,3391,3394,1,0,0,0,3392,3390,1,0,0,0,3392,3393,1,0,0,0,3393,3396,1,0,0,0,3394,3392,1,0,0,0,3395,3387,1,0,0,0,3395,3396,1,0,0,0,3396,3397,1,0,0,0,3397,3398,5,27,0,0,3398,553,1,0,0,0,3399,3400,3,790,395,0,3400,3401,5,2,0,0,3401,3402,3,556,278,0,3402,555,1,0,0,0,3403,3406,5,319,0,0,3404,3406,3,854,427,0,3405,3403,1,0,0,0,3405,3404,1,0,0,0,3406,557,1,0,0,0,3407,3408,5,26,0,0,3408,3413,3,560,280,0,3409,3410,5,25,0,0,3410,3412,3,560,280,0,3411,3409,1,0,0,0,3412,3415,1,0,0,0,3413,3411,1,0,0,0,3413,3414,1,0,0,0,3414,3416,1,0,0,0,3415,3413,1,0,0,0,3416,3417,5,27,0,0,3417,3420,1,0,0,0,3418,3420,3,560,280,0,3419,3407,1,0,0,0,3419,3418,1,0,0,0,3420,559,1,0,0,0,3421,3422,5,26,0,0,3422,3427,3,142,71,0,3423,3424,5,25,0,0,3424,3426,3,142,71,0,3425,3423,1,0,0,0,3426,3429,1,0,0,0,3427,3425,1,0,0,0,3427,3428,1,0,0,0,3428,3430,1,0,0,0,3429,3427,1,0,0,0,3430,3431,5,27,0,0,3431,561,1,0,0,0,3432,3436,3,488,244,0,3433,3436,3,490,245,0,3434,3436,3,492,246,0,3435,3432,1,0,0,0,3435,3433,1,0,0,0,3435,3434,1,0,0,0,3436,563,1,0,0,0,3437,3442,5,112,0,0,3438,3443,5,280,0,0,3439,3443,5,283,0,0,3440,3441,5,131,0,0,3441,3443,5,280,0,0,3442,3438,1,0,0,0,3442,3439,1,0,0,0,3442,3440,1,0,0,0,3443,3446,1,0,0,0,3444,3445,5,154,0,0,3445,3447,5,128,0,0,3446,3444,1,0,0,0,3446,3447,1,0,0,0,3447,3448,1,0,0,0,3448,3449,3,646,323,0,3449,565,1,0,0,0,3450,3451,5,87,0,0,3451,3452,5,305,0,0,3452,3454,3,576,288,0,3453,3455,3,578,289,0,3454,3453,1,0,0,0,3454,3455,1,0,0,0,3455,567,1,0,0,0,3456,3457,5,45,0,0,3457,3458,5,305,0,0,3458,3466,3,576,288,0,3459,3461,5,315,0,0,3460,3459,1,0,0,0,3460,3461,1,0,0,0,3461,3462,1,0,0,0,3462,3467,3,578,289,0,3463,3464,5,240,0,0,3464,3465,5,289,0,0,3465,3467,3,576,288,0,3466,3460,1,0,0,0,3466,3463,1,0,0,0,3467,569,1,0,0,0,3468,3469,5,87,0,0,3469,3470,5,148,0,0,3470,3484,3,576,288,0,3471,3472,5,315,0,0,3472,3473,5,305,0,0,3473,3478,3,576,288,0,3474,3475,5,25,0,0,3475,3477,3,576,288,0,3476,3474,1,0,0,0,3477,3480,1,0,0,0,3478,3476,1,0,0,0,3478,3479,1,0,0,0,3479,3482,1,0,0,0,3480,3478,1,0,0,0,3481,3483,5,25,0,0,3482,3481,1,0,0,0,3482,3483,1,0,0,0,3483,3485,1,0,0,0,3484,3471,1,0,0,0,3484,3485,1,0,0,0,3485,571,1,0,0,0,3486,3487,5,45,0,0,3487,3488,5,148,0,0,3488,3505,3,576,288,0,3489,3490,7,18,0,0,3490,3491,5,305,0,0,3491,3496,3,576,288,0,3492,3493,5,25,0,0,3493,3495,3,576,288,0,3494,3492,1,0,0,0,3495,3498,1,0,0,0,3496,3494,1,0,0,0,3496,3497,1,0,0,0,3497,3500,1,0,0,0,3498,3496,1,0,0,0,3499,3501,5,25,0,0,3500,3499,1,0,0,0,3500,3501,1,0,0,0,3501,3506,1,0,0,0,3502,3503,5,240,0,0,3503,3504,5,289,0,0,3504,3506,3,576,288,0,3505,3489,1,0,0,0,3505,3502,1,0,0,0,3506,573,1,0,0,0,3507,3508,5,112,0,0,3508,3511,7,19,0,0,3509,3510,5,154,0,0,3510,3512,5,128,0,0,3511,3509,1,0,0,0,3511,3512,1,0,0,0,3512,3513,1,0,0,0,3513,3518,3,576,288,0,3514,3515,5,25,0,0,3515,3517,3,576,288,0,3516,3514,1,0,0,0,3517,3520,1,0,0,0,3518,3516,1,0,0,0,3518,3519,1,0,0,0,3519,3522,1,0,0,0,3520,3518,1,0,0,0,3521,3523,5,25,0,0,3522,3521,1,0,0,0,3522,3523,1,0,0,0,3523,575,1,0,0,0,3524,3527,3,792,396,0,3525,3527,3,144,72,0,3526,3524,1,0,0,0,3526,3525,1,0,0,0,3527,577,1,0,0,0,3528,3530,5,117,0,0,3529,3528,1,0,0,0,3529,3530,1,0,0,0,3530,3531,1,0,0,0,3531,3532,5,218,0,0,3532,3533,3,14,7,0,3533,579,1,0,0,0,3534,3535,5,147,0,0,3535,3536,3,588,294,0,3536,3537,5,205,0,0,3537,3542,3,794,397,0,3538,3539,5,25,0,0,3539,3541,3,794,397,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,3545,1,0,0,0,3544,3542,1,0,0,0,3545,3546,5,289,0,0,3546,3551,3,576,288,0,3547,3548,5,25,0,0,3548,3550,3,576,288,0,3549,3547,1,0,0,0,3550,3553,1,0,0,0,3551,3549,1,0,0,0,3551,3552,1,0,0,0,3552,3555,1,0,0,0,3553,3551,1,0,0,0,3554,3556,5,25,0,0,3555,3554,1,0,0,0,3555,3556,1,0,0,0,3556,3560,1,0,0,0,3557,3558,5,315,0,0,3558,3559,5,147,0,0,3559,3561,5,208,0,0,3560,3557,1,0,0,0,3560,3561,1,0,0,0,3561,581,1,0,0,0,3562,3566,5,253,0,0,3563,3564,5,147,0,0,3564,3565,5,208,0,0,3565,3567,5,140,0,0,3566,3563,1,0,0,0,3566,3567,1,0,0,0,3567,3568,1,0,0,0,3568,3569,3,588,294,0,3569,3570,5,205,0,0,3570,3575,3,794,397,0,3571,3572,5,25,0,0,3572,3574,3,794,397,0,3573,3571,1,0,0,0,3574,3577,1,0,0,0,3575,3573,1,0,0,0,3575,3576,1,0,0,0,3576,3578,1,0,0,0,3577,3575,1,0,0,0,3578,3579,5,142,0,0,3579,3584,3,576,288,0,3580,3581,5,25,0,0,3581,3583,3,576,288,0,3582,3580,1,0,0,0,3583,3586,1,0,0,0,3584,3582,1,0,0,0,3584,3585,1,0,0,0,3585,583,1,0,0,0,3586,3584,1,0,0,0,3587,3612,5,83,0,0,3588,3612,5,183,0,0,3589,3612,5,167,0,0,3590,3612,5,185,0,0,3591,3612,5,112,0,0,3592,3612,5,147,0,0,3593,3594,5,192,0,0,3594,3612,7,20,0,0,3595,3596,7,21,0,0,3596,3612,5,258,0,0,3597,3598,7,22,0,0,3598,3612,5,262,0,0,3599,3601,5,265,0,0,3600,3602,7,23,0,0,3601,3600,1,0,0,0,3601,3602,1,0,0,0,3602,3612,1,0,0,0,3603,3605,7,24,0,0,3604,3606,5,180,0,0,3605,3604,1,0,0,0,3605,3606,1,0,0,0,3606,3612,1,0,0,0,3607,3609,5,87,0,0,3608,3610,7,25,0,0,3609,3608,1,0,0,0,3609,3610,1,0,0,0,3610,3612,1,0,0,0,3611,3587,1,0,0,0,3611,3588,1,0,0,0,3611,3589,1,0,0,0,3611,3590,1,0,0,0,3611,3591,1,0,0,0,3611,3592,1,0,0,0,3611,3593,1,0,0,0,3611,3595,1,0,0,0,3611,3597,1,0,0,0,3611,3599,1,0,0,0,3611,3603,1,0,0,0,3611,3607,1,0,0,0,3612,585,1,0,0,0,3613,3616,3,584,292,0,3614,3616,5,319,0,0,3615,3613,1,0,0,0,3615,3614,1,0,0,0,3616,587,1,0,0,0,3617,3622,3,586,293,0,3618,3619,5,25,0,0,3619,3621,3,586,293,0,3620,3618,1,0,0,0,3621,3624,1,0,0,0,3622,3620,1,0,0,0,3622,3623,1,0,0,0,3623,3626,1,0,0,0,3624,3622,1,0,0,0,3625,3627,5,25,0,0,3626,3625,1,0,0,0,3626,3627,1,0,0,0,3627,3633,1,0,0,0,3628,3630,5,44,0,0,3629,3631,5,229,0,0,3630,3629,1,0,0,0,3630,3631,1,0,0,0,3631,3633,1,0,0,0,3632,3617,1,0,0,0,3632,3628,1,0,0,0,3633,589,1,0,0,0,3634,3635,5,87,0,0,3635,3636,5,245,0,0,3636,3637,5,224,0,0,3637,3638,3,642,321,0,3638,3639,3,456,228,0,3639,591,1,0,0,0,3640,3641,5,45,0,0,3641,3642,5,245,0,0,3642,3643,5,224,0,0,3643,3644,3,642,321,0,3644,3649,3,594,297,0,3645,3646,5,25,0,0,3646,3648,3,594,297,0,3647,3645,1,0,0,0,3648,3651,1,0,0,0,3649,3647,1,0,0,0,3649,3650,1,0,0,0,3650,593,1,0,0,0,3651,3649,1,0,0,0,3652,3655,3,490,245,0,3653,3655,3,492,246,0,3654,3652,1,0,0,0,3654,3653,1,0,0,0,3655,595,1,0,0,0,3656,3657,5,112,0,0,3657,3658,5,245,0,0,3658,3659,5,224,0,0,3659,3660,3,642,321,0,3660,597,1,0,0,0,3661,3662,5,87,0,0,3662,3663,5,245,0,0,3663,3664,5,224,0,0,3664,3665,5,75,0,0,3665,3666,3,642,321,0,3666,3667,3,456,228,0,3667,599,1,0,0,0,3668,3669,5,45,0,0,3669,3670,5,245,0,0,3670,3671,5,224,0,0,3671,3672,5,75,0,0,3672,3673,3,642,321,0,3673,3678,3,602,301,0,3674,3675,5,25,0,0,3675,3677,3,602,301,0,3676,3674,1,0,0,0,3677,3680,1,0,0,0,3678,3676,1,0,0,0,3678,3679,1,0,0,0,3679,601,1,0,0,0,3680,3678,1,0,0,0,3681,3684,3,490,245,0,3682,3684,3,492,246,0,3683,3681,1,0,0,0,3683,3682,1,0,0,0,3684,603,1,0,0,0,3685,3686,5,112,0,0,3686,3687,5,245,0,0,3687,3688,5,224,0,0,3688,3689,5,75,0,0,3689,3690,3,642,321,0,3690,605,1,0,0,0,3691,3692,5,87,0,0,3692,3693,5,55,0,0,3693,3694,5,243,0,0,3694,3695,3,642,321,0,3695,3696,5,140,0,0,3696,3701,3,608,304,0,3697,3698,5,25,0,0,3698,3700,3,608,304,0,3699,3697,1,0,0,0,3700,3703,1,0,0,0,3701,3699,1,0,0,0,3701,3702,1,0,0,0,3702,3704,1,0,0,0,3703,3701,1,0,0,0,3704,3705,5,315,0,0,3705,3706,5,26,0,0,3706,3707,3,610,305,0,3707,3708,5,27,0,0,3708,607,1,0,0,0,3709,3710,3,642,321,0,3710,3711,3,864,432,0,3711,609,1,0,0,0,3712,3717,3,612,306,0,3713,3714,5,25,0,0,3714,3716,3,612,306,0,3715,3713,1,0,0,0,3716,3719,1,0,0,0,3717,3715,1,0,0,0,3717,3718,1,0,0,0,3718,611,1,0,0,0,3719,3717,1,0,0,0,3720,3721,3,790,395,0,3721,3722,5,2,0,0,3722,3723,5,319,0,0,3723,613,1,0,0,0,3724,3725,5,45,0,0,3725,3726,5,55,0,0,3726,3727,5,243,0,0,3727,3728,3,642,321,0,3728,3733,3,616,308,0,3729,3730,5,25,0,0,3730,3732,3,616,308,0,3731,3729,1,0,0,0,3732,3735,1,0,0,0,3733,3731,1,0,0,0,3733,3734,1,0,0,0,3734,615,1,0,0,0,3735,3733,1,0,0,0,3736,3737,3,618,309,0,3737,617,1,0,0,0,3738,3739,5,267,0,0,3739,3740,5,26,0,0,3740,3741,3,610,305,0,3741,3742,5,27,0,0,3742,619,1,0,0,0,3743,3744,5,112,0,0,3744,3745,5,55,0,0,3745,3746,5,243,0,0,3746,3748,3,642,321,0,3747,3749,5,70,0,0,3748,3747,1,0,0,0,3748,3749,1,0,0,0,3749,621,1,0,0,0,3750,3755,3,146,73,0,3751,3752,5,25,0,0,3752,3754,3,146,73,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,623,1,0,0,0,3757,3755,1,0,0,0,3758,3759,5,101,0,0,3759,3760,7,26,0,0,3760,3761,3,144,72,0,3761,3763,5,26,0,0,3762,3764,3,622,311,0,3763,3762,1,0,0,0,3763,3764,1,0,0,0,3764,3765,1,0,0,0,3765,3766,5,27,0,0,3766,3767,5,51,0,0,3767,3768,3,626,313,0,3768,3769,5,118,0,0,3769,3770,5,101,0,0,3770,625,1,0,0,0,3771,3773,5,23,0,0,3772,3771,1,0,0,0,3773,3776,1,0,0,0,3774,3772,1,0,0,0,3774,3775,1,0,0,0,3775,3795,1,0,0,0,3776,3774,1,0,0,0,3777,3786,3,12,6,0,3778,3780,5,23,0,0,3779,3778,1,0,0,0,3780,3781,1,0,0,0,3781,3779,1,0,0,0,3781,3782,1,0,0,0,3782,3783,1,0,0,0,3783,3785,3,12,6,0,3784,3779,1,0,0,0,3785,3788,1,0,0,0,3786,3784,1,0,0,0,3786,3787,1,0,0,0,3787,3792,1,0,0,0,3788,3786,1,0,0,0,3789,3791,5,23,0,0,3790,3789,1,0,0,0,3791,3794,1,0,0,0,3792,3790,1,0,0,0,3792,3793,1,0,0,0,3793,3796,1,0,0,0,3794,3792,1,0,0,0,3795,3777,1,0,0,0,3795,3796,1,0,0,0,3796,627,1,0,0,0,3797,3799,5,123,0,0,3798,3797,1,0,0,0,3798,3799,1,0,0,0,3799,3800,1,0,0,0,3800,3801,5,154,0,0,3801,3802,3,14,7,0,3802,3805,3,222,111,0,3803,3804,5,114,0,0,3804,3806,3,222,111,0,3805,3803,1,0,0,0,3805,3806,1,0,0,0,3806,629,1,0,0,0,3807,3809,5,123,0,0,3808,3807,1,0,0,0,3808,3809,1,0,0,0,3809,3811,1,0,0,0,3810,3812,5,215,0,0,3811,3810,1,0,0,0,3811,3812,1,0,0,0,3812,3813,1,0,0,0,3813,3814,5,140,0,0,3814,3815,3,144,72,0,3815,3816,5,159,0,0,3816,3817,3,14,7,0,3817,3820,3,222,111,0,3818,3819,5,114,0,0,3819,3821,3,222,111,0,3820,3818,1,0,0,0,3820,3821,1,0,0,0,3821,631,1,0,0,0,3822,3823,3,816,408,0,3823,3824,5,24,0,0,3824,3826,1,0,0,0,3825,3822,1,0,0,0,3825,3826,1,0,0,0,3826,3828,1,0,0,0,3827,3829,5,30,0,0,3828,3827,1,0,0,0,3828,3829,1,0,0,0,3829,3860,1,0,0,0,3830,3861,3,634,317,0,3831,3832,3,796,398,0,3832,3844,5,26,0,0,3833,3838,3,636,318,0,3834,3835,5,25,0,0,3835,3837,3,636,318,0,3836,3834,1,0,0,0,3837,3840,1,0,0,0,3838,3836,1,0,0,0,3838,3839,1,0,0,0,3839,3842,1,0,0,0,3840,3838,1,0,0,0,3841,3843,5,25,0,0,3842,3841,1,0,0,0,3842,3843,1,0,0,0,3843,3845,1,0,0,0,3844,3833,1,0,0,0,3844,3845,1,0,0,0,3845,3846,1,0,0,0,3846,3847,5,27,0,0,3847,3861,1,0,0,0,3848,3854,3,144,72,0,3849,3851,5,26,0,0,3850,3852,3,112,56,0,3851,3850,1,0,0,0,3851,3852,1,0,0,0,3852,3853,1,0,0,0,3853,3855,5,27,0,0,3854,3849,1,0,0,0,3854,3855,1,0,0,0,3855,3858,1,0,0,0,3856,3857,5,310,0,0,3857,3859,3,812,406,0,3858,3856,1,0,0,0,3858,3859,1,0,0,0,3859,3861,1,0,0,0,3860,3830,1,0,0,0,3860,3831,1,0,0,0,3860,3848,1,0,0,0,3861,3863,1,0,0,0,3862,3864,3,638,319,0,3863,3862,1,0,0,0,3863,3864,1,0,0,0,3864,633,1,0,0,0,3865,3868,3,824,412,0,3866,3867,5,310,0,0,3867,3869,3,812,406,0,3868,3866,1,0,0,0,3868,3869,1,0,0,0,3869,635,1,0,0,0,3870,3872,5,30,0,0,3871,3870,1,0,0,0,3871,3872,1,0,0,0,3872,3873,1,0,0,0,3873,3876,3,128,64,0,3874,3875,5,310,0,0,3875,3877,3,812,406,0,3876,3874,1,0,0,0,3876,3877,1,0,0,0,3877,637,1,0,0,0,3878,3891,5,315,0,0,3879,3892,3,640,320,0,3880,3881,5,26,0,0,3881,3886,3,640,320,0,3882,3883,5,25,0,0,3883,3885,3,640,320,0,3884,3882,1,0,0,0,3885,3888,1,0,0,0,3886,3884,1,0,0,0,3886,3887,1,0,0,0,3887,3889,1,0,0,0,3888,3886,1,0,0,0,3889,3890,5,27,0,0,3890,3892,1,0,0,0,3891,3879,1,0,0,0,3891,3880,1,0,0,0,3892,639,1,0,0,0,3893,3912,3,806,403,0,3894,3910,5,2,0,0,3895,3911,3,160,80,0,3896,3897,5,26,0,0,3897,3902,3,160,80,0,3898,3899,5,25,0,0,3899,3901,3,160,80,0,3900,3898,1,0,0,0,3901,3904,1,0,0,0,3902,3900,1,0,0,0,3902,3903,1,0,0,0,3903,3906,1,0,0,0,3904,3902,1,0,0,0,3905,3907,5,25,0,0,3906,3905,1,0,0,0,3906,3907,1,0,0,0,3907,3908,1,0,0,0,3908,3909,5,27,0,0,3909,3911,1,0,0,0,3910,3895,1,0,0,0,3910,3896,1,0,0,0,3911,3913,1,0,0,0,3912,3894,1,0,0,0,3912,3913,1,0,0,0,3913,3939,1,0,0,0,3914,3916,7,27,0,0,3915,3917,5,2,0,0,3916,3915,1,0,0,0,3916,3917,1,0,0,0,3917,3918,1,0,0,0,3918,3939,3,204,102,0,3919,3921,5,262,0,0,3920,3922,5,2,0,0,3921,3920,1,0,0,0,3921,3922,1,0,0,0,3922,3923,1,0,0,0,3923,3932,5,26,0,0,3924,3929,3,164,82,0,3925,3926,5,25,0,0,3926,3928,3,164,82,0,3927,3925,1,0,0,0,3928,3931,1,0,0,0,3929,3927,1,0,0,0,3929,3930,1,0,0,0,3930,3933,1,0,0,0,3931,3929,1,0,0,0,3932,3924,1,0,0,0,3932,3933,1,0,0,0,3933,3935,1,0,0,0,3934,3936,5,25,0,0,3935,3934,1,0,0,0,3935,3936,1,0,0,0,3936,3937,1,0,0,0,3937,3939,5,27,0,0,3938,3893,1,0,0,0,3938,3914,1,0,0,0,3938,3919,1,0,0,0,3939,641,1,0,0,0,3940,3941,3,816,408,0,3941,3942,5,24,0,0,3942,3944,1,0,0,0,3943,3940,1,0,0,0,3943,3944,1,0,0,0,3944,3945,1,0,0,0,3945,3946,3,822,411,0,3946,643,1,0,0,0,3947,3953,3,642,321,0,3948,3950,5,30,0,0,3949,3948,1,0,0,0,3949,3950,1,0,0,0,3950,3951,1,0,0,0,3951,3953,3,144,72,0,3952,3947,1,0,0,0,3952,3949,1,0,0,0,3953,645,1,0,0,0,3954,3956,3,644,322,0,3955,3957,3,638,319,0,3956,3955,1,0,0,0,3956,3957,1,0,0,0,3957,647,1,0,0,0,3958,3962,3,646,323,0,3959,3960,5,120,0,0,3960,3961,5,68,0,0,3961,3963,3,114,57,0,3962,3959,1,0,0,0,3962,3963,1,0,0,0,3963,649,1,0,0,0,3964,3965,5,102,0,0,3965,3966,5,142,0,0,3966,3970,3,646,323,0,3967,3971,3,866,433,0,3968,3969,5,205,0,0,3969,3971,3,368,184,0,3970,3967,1,0,0,0,3970,3968,1,0,0,0,3970,3971,1,0,0,0,3971,3973,1,0,0,0,3972,3974,3,362,181,0,3973,3972,1,0,0,0,3973,3974,1,0,0,0,3974,651,1,0,0,0,3975,3976,5,302,0,0,3976,3984,3,646,323,0,3977,3978,5,267,0,0,3978,3980,3,654,327,0,3979,3981,3,866,433,0,3980,3979,1,0,0,0,3980,3981,1,0,0,0,3981,3985,1,0,0,0,3982,3983,5,205,0,0,3983,3985,3,368,184,0,3984,3977,1,0,0,0,3984,3982,1,0,0,0,3985,3987,1,0,0,0,3986,3988,3,362,181,0,3987,3986,1,0,0,0,3987,3988,1,0,0,0,3988,653,1,0,0,0,3989,3992,3,656,328,0,3990,3992,3,662,331,0,3991,3989,1,0,0,0,3991,3990,1,0,0,0,3992,655,1,0,0,0,3993,3998,3,658,329,0,3994,3995,5,25,0,0,3995,3997,3,658,329,0,3996,3994,1,0,0,0,3997,4e3,1,0,0,0,3998,3996,1,0,0,0,3998,3999,1,0,0,0,3999,657,1,0,0,0,4e3,3998,1,0,0,0,4001,4002,3,660,330,0,4002,4003,5,2,0,0,4003,4004,3,14,7,0,4004,659,1,0,0,0,4005,4006,3,120,60,0,4006,661,1,0,0,0,4007,4008,3,664,332,0,4008,4009,5,2,0,0,4009,4010,5,26,0,0,4010,4011,3,378,189,0,4011,4012,5,27,0,0,4012,663,1,0,0,0,4013,4014,5,26,0,0,4014,4019,3,660,330,0,4015,4016,5,25,0,0,4016,4018,3,660,330,0,4017,4015,1,0,0,0,4018,4021,1,0,0,0,4019,4017,1,0,0,0,4019,4020,1,0,0,0,4020,4022,1,0,0,0,4021,4019,1,0,0,0,4022,4023,5,27,0,0,4023,665,1,0,0,0,4024,4025,5,87,0,0,4025,4029,5,290,0,0,4026,4027,5,154,0,0,4027,4028,5,197,0,0,4028,4030,5,128,0,0,4029,4026,1,0,0,0,4029,4030,1,0,0,0,4030,4031,1,0,0,0,4031,4033,3,712,356,0,4032,4034,3,668,334,0,4033,4032,1,0,0,0,4033,4034,1,0,0,0,4034,4036,1,0,0,0,4035,4037,3,672,336,0,4036,4035,1,0,0,0,4036,4037,1,0,0,0,4037,667,1,0,0,0,4038,4039,5,26,0,0,4039,4044,3,670,335,0,4040,4041,5,25,0,0,4041,4043,3,670,335,0,4042,4040,1,0,0,0,4043,4046,1,0,0,0,4044,4042,1,0,0,0,4044,4045,1,0,0,0,4045,4047,1,0,0,0,4046,4044,1,0,0,0,4047,4048,5,27,0,0,4048,669,1,0,0,0,4049,4050,3,680,340,0,4050,671,1,0,0,0,4051,4052,5,315,0,0,4052,4053,5,26,0,0,4053,4054,3,698,349,0,4054,4055,5,27,0,0,4055,673,1,0,0,0,4056,4057,5,45,0,0,4057,4060,5,290,0,0,4058,4059,5,154,0,0,4059,4061,5,128,0,0,4060,4058,1,0,0,0,4060,4061,1,0,0,0,4061,4062,1,0,0,0,4062,4063,3,712,356,0,4063,4068,3,676,338,0,4064,4065,5,25,0,0,4065,4067,3,676,338,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,675,1,0,0,0,4070,4068,1,0,0,0,4071,4077,3,678,339,0,4072,4077,3,682,341,0,4073,4077,3,686,343,0,4074,4077,3,692,346,0,4075,4077,3,694,347,0,4076,4071,1,0,0,0,4076,4072,1,0,0,0,4076,4073,1,0,0,0,4076,4074,1,0,0,0,4076,4075,1,0,0,0,4077,677,1,0,0,0,4078,4079,5,42,0,0,4079,4080,3,680,340,0,4080,679,1,0,0,0,4081,4082,5,85,0,0,4082,4084,3,790,395,0,4083,4085,3,704,352,0,4084,4083,1,0,0,0,4084,4085,1,0,0,0,4085,681,1,0,0,0,4086,4087,5,45,0,0,4087,4088,5,85,0,0,4088,4089,3,714,357,0,4089,4090,3,684,342,0,4090,683,1,0,0,0,4091,4094,3,688,344,0,4092,4094,3,690,345,0,4093,4091,1,0,0,0,4093,4092,1,0,0,0,4094,685,1,0,0,0,4095,4096,5,112,0,0,4096,4097,5,85,0,0,4097,4098,3,714,357,0,4098,687,1,0,0,0,4099,4100,5,267,0,0,4100,4101,5,26,0,0,4101,4102,3,706,353,0,4102,4103,5,27,0,0,4103,689,1,0,0,0,4104,4105,5,244,0,0,4105,4106,5,26,0,0,4106,4111,3,790,395,0,4107,4108,5,25,0,0,4108,4110,3,790,395,0,4109,4107,1,0,0,0,4110,4113,1,0,0,0,4111,4109,1,0,0,0,4111,4112,1,0,0,0,4112,4114,1,0,0,0,4113,4111,1,0,0,0,4114,4115,5,27,0,0,4115,691,1,0,0,0,4116,4117,5,267,0,0,4117,4118,5,26,0,0,4118,4119,3,698,349,0,4119,4120,5,27,0,0,4120,693,1,0,0,0,4121,4122,5,244,0,0,4122,4123,5,26,0,0,4123,4128,3,790,395,0,4124,4125,5,25,0,0,4125,4127,3,808,404,0,4126,4124,1,0,0,0,4127,4130,1,0,0,0,4128,4126,1,0,0,0,4128,4129,1,0,0,0,4129,4131,1,0,0,0,4130,4128,1,0,0,0,4131,4132,5,27,0,0,4132,695,1,0,0,0,4133,4134,5,112,0,0,4134,4137,5,290,0,0,4135,4136,5,154,0,0,4136,4138,5,128,0,0,4137,4135,1,0,0,0,4137,4138,1,0,0,0,4138,4139,1,0,0,0,4139,4140,3,712,356,0,4140,697,1,0,0,0,4141,4146,3,700,350,0,4142,4143,5,25,0,0,4143,4145,3,700,350,0,4144,4142,1,0,0,0,4145,4148,1,0,0,0,4146,4144,1,0,0,0,4146,4147,1,0,0,0,4147,699,1,0,0,0,4148,4146,1,0,0,0,4149,4150,3,790,395,0,4150,4151,5,2,0,0,4151,4152,3,702,351,0,4152,701,1,0,0,0,4153,4154,3,14,7,0,4154,703,1,0,0,0,4155,4156,5,315,0,0,4156,4157,5,26,0,0,4157,4158,3,706,353,0,4158,4159,5,27,0,0,4159,705,1,0,0,0,4160,4165,3,708,354,0,4161,4162,5,25,0,0,4162,4164,3,708,354,0,4163,4161,1,0,0,0,4164,4167,1,0,0,0,4165,4163,1,0,0,0,4165,4166,1,0,0,0,4166,707,1,0,0,0,4167,4165,1,0,0,0,4168,4169,3,790,395,0,4169,4170,5,2,0,0,4170,4171,3,710,355,0,4171,709,1,0,0,0,4172,4173,3,14,7,0,4173,711,1,0,0,0,4174,4175,3,816,408,0,4175,4176,5,24,0,0,4176,4178,1,0,0,0,4177,4174,1,0,0,0,4177,4178,1,0,0,0,4178,4179,1,0,0,0,4179,4180,3,790,395,0,4180,713,1,0,0,0,4181,4182,3,808,404,0,4182,715,1,0,0,0,4183,4184,5,246,0,0,4184,4188,5,200,0,0,4185,4186,5,155,0,0,4186,4188,5,200,0,0,4187,4183,1,0,0,0,4187,4185,1,0,0,0,4188,717,1,0,0,0,4189,4190,5,135,0,0,4190,4191,5,26,0,0,4191,4192,3,866,433,0,4192,4193,5,27,0,0,4193,719,1,0,0,0,4194,4197,3,722,361,0,4195,4197,3,732,366,0,4196,4194,1,0,0,0,4196,4195,1,0,0,0,4197,721,1,0,0,0,4198,4199,3,800,400,0,4199,723,1,0,0,0,4200,4201,5,314,0,0,4201,4202,3,726,363,0,4202,725,1,0,0,0,4203,4208,3,728,364,0,4204,4205,5,25,0,0,4205,4207,3,728,364,0,4206,4204,1,0,0,0,4207,4210,1,0,0,0,4208,4206,1,0,0,0,4208,4209,1,0,0,0,4209,727,1,0,0,0,4210,4208,1,0,0,0,4211,4212,3,730,365,0,4212,4213,5,51,0,0,4213,4214,3,732,366,0,4214,729,1,0,0,0,4215,4216,3,722,361,0,4216,731,1,0,0,0,4217,4218,5,26,0,0,4218,4219,3,734,367,0,4219,4220,5,27,0,0,4220,733,1,0,0,0,4221,4223,3,736,368,0,4222,4221,1,0,0,0,4222,4223,1,0,0,0,4223,4225,1,0,0,0,4224,4226,3,738,369,0,4225,4224,1,0,0,0,4225,4226,1,0,0,0,4226,4228,1,0,0,0,4227,4229,3,740,370,0,4228,4227,1,0,0,0,4228,4229,1,0,0,0,4229,4231,1,0,0,0,4230,4232,3,742,371,0,4231,4230,1,0,0,0,4231,4232,1,0,0,0,4232,735,1,0,0,0,4233,4234,3,722,361,0,4234,737,1,0,0,0,4235,4237,5,216,0,0,4236,4238,5,80,0,0,4237,4236,1,0,0,0,4237,4238,1,0,0,0,4238,4239,1,0,0,0,4239,4240,5,68,0,0,4240,4241,3,130,65,0,4241,739,1,0,0,0,4242,4243,3,314,157,0,4243,741,1,0,0,0,4244,4245,3,744,372,0,4245,4247,3,746,373,0,4246,4248,3,752,376,0,4247,4246,1,0,0,0,4247,4248,1,0,0,0,4248,743,1,0,0,0,4249,4250,7,28,0,0,4250,745,1,0,0,0,4251,4254,3,750,375,0,4252,4254,3,748,374,0,4253,4251,1,0,0,0,4253,4252,1,0,0,0,4254,747,1,0,0,0,4255,4256,5,66,0,0,4256,4257,3,750,375,0,4257,4258,5,47,0,0,4258,4259,3,750,375,0,4259,749,1,0,0,0,4260,4261,5,90,0,0,4261,4268,5,258,0,0,4262,4265,3,14,7,0,4263,4265,5,296,0,0,4264,4262,1,0,0,0,4264,4263,1,0,0,0,4265,4266,1,0,0,0,4266,4268,7,29,0,0,4267,4260,1,0,0,0,4267,4264,1,0,0,0,4268,751,1,0,0,0,4269,4270,5,125,0,0,4270,4271,5,90,0,0,4271,4280,5,258,0,0,4272,4273,5,125,0,0,4273,4280,5,148,0,0,4274,4275,5,125,0,0,4275,4280,5,288,0,0,4276,4277,5,125,0,0,4277,4278,5,196,0,0,4278,4280,5,212,0,0,4279,4269,1,0,0,0,4279,4272,1,0,0,0,4279,4274,1,0,0,0,4279,4276,1,0,0,0,4280,753,1,0,0,0,4281,4282,5,304,0,0,4282,4283,3,816,408,0,4283,755,1,0,0,0,4284,4285,5,26,0,0,4285,4286,3,232,116,0,4286,4287,5,27,0,0,4287,4290,1,0,0,0,4288,4290,3,234,117,0,4289,4284,1,0,0,0,4289,4288,1,0,0,0,4290,757,1,0,0,0,4291,4292,3,148,74,0,4292,4295,5,2,0,0,4293,4296,3,14,7,0,4294,4296,3,756,378,0,4295,4293,1,0,0,0,4295,4294,1,0,0,0,4296,759,1,0,0,0,4297,4298,5,79,0,0,4298,761,1,0,0,0,4299,4300,5,256,0,0,4300,763,1,0,0,0,4301,4306,3,646,323,0,4302,4303,5,26,0,0,4303,4304,3,124,62,0,4304,4305,5,27,0,0,4305,4307,1,0,0,0,4306,4302,1,0,0,0,4306,4307,1,0,0,0,4307,765,1,0,0,0,4308,4313,3,764,382,0,4309,4310,5,25,0,0,4310,4312,3,764,382,0,4311,4309,1,0,0,0,4312,4315,1,0,0,0,4313,4311,1,0,0,0,4313,4314,1,0,0,0,4314,4317,1,0,0,0,4315,4313,1,0,0,0,4316,4318,5,25,0,0,4317,4316,1,0,0,0,4317,4318,1,0,0,0,4318,767,1,0,0,0,4319,4320,5,46,0,0,4320,4321,3,766,383,0,4321,769,1,0,0,0,4322,4323,7,30,0,0,4323,771,1,0,0,0,4324,4327,3,770,385,0,4325,4327,3,828,414,0,4326,4324,1,0,0,0,4326,4325,1,0,0,0,4327,773,1,0,0,0,4328,4336,3,770,385,0,4329,4336,3,846,423,0,4330,4336,3,830,415,0,4331,4336,3,834,417,0,4332,4336,3,838,419,0,4333,4336,3,840,420,0,4334,4336,3,842,421,0,4335,4328,1,0,0,0,4335,4329,1,0,0,0,4335,4330,1,0,0,0,4335,4331,1,0,0,0,4335,4332,1,0,0,0,4335,4333,1,0,0,0,4335,4334,1,0,0,0,4336,775,1,0,0,0,4337,4344,3,770,385,0,4338,4344,3,846,423,0,4339,4344,3,836,418,0,4340,4344,3,838,419,0,4341,4344,3,840,420,0,4342,4344,3,842,421,0,4343,4337,1,0,0,0,4343,4338,1,0,0,0,4343,4339,1,0,0,0,4343,4340,1,0,0,0,4343,4341,1,0,0,0,4343,4342,1,0,0,0,4344,777,1,0,0,0,4345,4351,3,770,385,0,4346,4351,3,846,423,0,4347,4351,3,836,418,0,4348,4351,3,840,420,0,4349,4351,3,842,421,0,4350,4345,1,0,0,0,4350,4346,1,0,0,0,4350,4347,1,0,0,0,4350,4348,1,0,0,0,4350,4349,1,0,0,0,4351,779,1,0,0,0,4352,4361,3,770,385,0,4353,4361,3,846,423,0,4354,4361,3,830,415,0,4355,4361,3,832,416,0,4356,4361,3,834,417,0,4357,4361,3,836,418,0,4358,4361,3,838,419,0,4359,4361,3,842,421,0,4360,4352,1,0,0,0,4360,4353,1,0,0,0,4360,4354,1,0,0,0,4360,4355,1,0,0,0,4360,4356,1,0,0,0,4360,4357,1,0,0,0,4360,4358,1,0,0,0,4360,4359,1,0,0,0,4361,781,1,0,0,0,4362,4370,3,770,385,0,4363,4370,3,846,423,0,4364,4370,3,830,415,0,4365,4370,3,834,417,0,4366,4370,3,838,419,0,4367,4370,3,840,420,0,4368,4370,3,842,421,0,4369,4362,1,0,0,0,4369,4363,1,0,0,0,4369,4364,1,0,0,0,4369,4365,1,0,0,0,4369,4366,1,0,0,0,4369,4367,1,0,0,0,4369,4368,1,0,0,0,4370,783,1,0,0,0,4371,4379,3,770,385,0,4372,4379,3,846,423,0,4373,4379,3,832,416,0,4374,4379,3,836,418,0,4375,4379,3,838,419,0,4376,4379,3,840,420,0,4377,4379,3,842,421,0,4378,4371,1,0,0,0,4378,4372,1,0,0,0,4378,4373,1,0,0,0,4378,4374,1,0,0,0,4378,4375,1,0,0,0,4378,4376,1,0,0,0,4378,4377,1,0,0,0,4379,785,1,0,0,0,4380,4389,3,770,385,0,4381,4389,3,846,423,0,4382,4389,3,830,415,0,4383,4389,3,832,416,0,4384,4389,3,834,417,0,4385,4389,3,836,418,0,4386,4389,3,838,419,0,4387,4389,3,840,420,0,4388,4380,1,0,0,0,4388,4381,1,0,0,0,4388,4382,1,0,0,0,4388,4383,1,0,0,0,4388,4384,1,0,0,0,4388,4385,1,0,0,0,4388,4386,1,0,0,0,4388,4387,1,0,0,0,4389,787,1,0,0,0,4390,4393,3,770,385,0,4391,4393,3,844,422,0,4392,4390,1,0,0,0,4392,4391,1,0,0,0,4393,789,1,0,0,0,4394,4397,3,772,386,0,4395,4397,5,319,0,0,4396,4394,1,0,0,0,4396,4395,1,0,0,0,4397,791,1,0,0,0,4398,4401,3,818,409,0,4399,4401,5,319,0,0,4400,4398,1,0,0,0,4400,4399,1,0,0,0,4401,793,1,0,0,0,4402,4405,3,774,387,0,4403,4405,5,319,0,0,4404,4402,1,0,0,0,4404,4403,1,0,0,0,4405,795,1,0,0,0,4406,4409,3,776,388,0,4407,4409,5,319,0,0,4408,4406,1,0,0,0,4408,4407,1,0,0,0,4409,797,1,0,0,0,4410,4413,3,778,389,0,4411,4413,5,319,0,0,4412,4410,1,0,0,0,4412,4411,1,0,0,0,4413,799,1,0,0,0,4414,4417,3,780,390,0,4415,4417,5,319,0,0,4416,4414,1,0,0,0,4416,4415,1,0,0,0,4417,801,1,0,0,0,4418,4421,3,782,391,0,4419,4421,5,319,0,0,4420,4418,1,0,0,0,4420,4419,1,0,0,0,4421,803,1,0,0,0,4422,4425,3,784,392,0,4423,4425,5,319,0,0,4424,4422,1,0,0,0,4424,4423,1,0,0,0,4425,805,1,0,0,0,4426,4429,3,786,393,0,4427,4429,5,319,0,0,4428,4426,1,0,0,0,4428,4427,1,0,0,0,4429,807,1,0,0,0,4430,4433,3,770,385,0,4431,4433,5,319,0,0,4432,4430,1,0,0,0,4432,4431,1,0,0,0,4433,809,1,0,0,0,4434,4437,3,788,394,0,4435,4437,5,319,0,0,4436,4434,1,0,0,0,4436,4435,1,0,0,0,4437,811,1,0,0,0,4438,4442,3,790,395,0,4439,4440,5,228,0,0,4440,4442,5,177,0,0,4441,4438,1,0,0,0,4441,4439,1,0,0,0,4442,813,1,0,0,0,4443,4444,3,790,395,0,4444,4445,5,24,0,0,4445,4447,1,0,0,0,4446,4443,1,0,0,0,4446,4447,1,0,0,0,4447,815,1,0,0,0,4448,4449,3,790,395,0,4449,4450,5,29,0,0,4450,4452,1,0,0,0,4451,4448,1,0,0,0,4451,4452,1,0,0,0,4452,4455,1,0,0,0,4453,4456,3,116,58,0,4454,4456,5,20,0,0,4455,4453,1,0,0,0,4455,4454,1,0,0,0,4456,817,1,0,0,0,4457,4460,3,772,386,0,4458,4460,3,848,424,0,4459,4457,1,0,0,0,4459,4458,1,0,0,0,4460,819,1,0,0,0,4461,4462,3,792,396,0,4462,4463,5,24,0,0,4463,4465,1,0,0,0,4464,4461,1,0,0,0,4464,4465,1,0,0,0,4465,821,1,0,0,0,4466,4468,5,30,0,0,4467,4466,1,0,0,0,4467,4468,1,0,0,0,4468,4469,1,0,0,0,4469,4470,3,792,396,0,4470,823,1,0,0,0,4471,4474,3,802,401,0,4472,4474,3,848,424,0,4473,4471,1,0,0,0,4473,4472,1,0,0,0,4474,825,1,0,0,0,4475,4477,5,30,0,0,4476,4475,1,0,0,0,4476,4477,1,0,0,0,4477,4478,1,0,0,0,4478,4479,3,824,412,0,4479,827,1,0,0,0,4480,4489,3,846,423,0,4481,4489,3,830,415,0,4482,4489,3,832,416,0,4483,4489,3,834,417,0,4484,4489,3,836,418,0,4485,4489,3,838,419,0,4486,4489,3,840,420,0,4487,4489,3,842,421,0,4488,4480,1,0,0,0,4488,4481,1,0,0,0,4488,4482,1,0,0,0,4488,4483,1,0,0,0,4488,4484,1,0,0,0,4488,4485,1,0,0,0,4488,4486,1,0,0,0,4488,4487,1,0,0,0,4489,829,1,0,0,0,4490,4491,7,31,0,0,4491,831,1,0,0,0,4492,4493,7,32,0,0,4493,833,1,0,0,0,4494,4495,7,33,0,0,4495,835,1,0,0,0,4496,4497,5,77,0,0,4497,837,1,0,0,0,4498,4499,5,80,0,0,4499,839,1,0,0,0,4500,4501,7,28,0,0,4501,841,1,0,0,0,4502,4503,7,27,0,0,4503,843,1,0,0,0,4504,4505,7,34,0,0,4505,845,1,0,0,0,4506,4507,7,35,0,0,4507,847,1,0,0,0,4508,4509,7,36,0,0,4509,849,1,0,0,0,4510,4511,7,37,0,0,4511,851,1,0,0,0,4512,4513,5,324,0,0,4513,853,1,0,0,0,4514,4515,7,38,0,0,4515,855,1,0,0,0,4516,4522,3,858,429,0,4517,4518,5,225,0,0,4518,4519,5,48,0,0,4519,4520,5,322,0,0,4520,4522,3,4,2,0,4521,4516,1,0,0,0,4521,4517,1,0,0,0,4522,857,1,0,0,0,4523,4525,5,23,0,0,4524,4523,1,0,0,0,4525,4528,1,0,0,0,4526,4524,1,0,0,0,4526,4527,1,0,0,0,4527,4529,1,0,0,0,4528,4526,1,0,0,0,4529,4538,3,860,430,0,4530,4532,5,23,0,0,4531,4530,1,0,0,0,4532,4533,1,0,0,0,4533,4531,1,0,0,0,4533,4534,1,0,0,0,4534,4535,1,0,0,0,4535,4537,3,860,430,0,4536,4531,1,0,0,0,4537,4540,1,0,0,0,4538,4536,1,0,0,0,4538,4539,1,0,0,0,4539,4544,1,0,0,0,4540,4538,1,0,0,0,4541,4543,5,23,0,0,4542,4541,1,0,0,0,4543,4546,1,0,0,0,4544,4542,1,0,0,0,4544,4545,1,0,0,0,4545,4547,1,0,0,0,4546,4544,1,0,0,0,4547,4548,5,0,0,1,4548,859,1,0,0,0,4549,4552,5,129,0,0,4550,4551,5,1,0,0,4551,4553,5,223,0,0,4552,4550,1,0,0,0,4552,4553,1,0,0,0,4553,4555,1,0,0,0,4554,4549,1,0,0,0,4554,4555,1,0,0,0,4555,4556,1,0,0,0,4556,4557,3,862,431,0,4557,861,1,0,0,0,4558,4572,3,224,112,0,4559,4572,3,232,116,0,4560,4572,3,758,379,0,4561,4572,3,754,377,0,4562,4572,3,366,183,0,4563,4572,3,210,105,0,4564,4572,3,214,107,0,4565,4572,3,216,108,0,4566,4572,3,222,111,0,4567,4572,3,624,312,0,4568,4572,3,628,314,0,4569,4572,3,630,315,0,4570,4572,3,370,185,0,4571,4558,1,0,0,0,4571,4559,1,0,0,0,4571,4560,1,0,0,0,4571,4561,1,0,0,0,4571,4562,1,0,0,0,4571,4563,1,0,0,0,4571,4564,1,0,0,0,4571,4565,1,0,0,0,4571,4566,1,0,0,0,4571,4567,1,0,0,0,4571,4568,1,0,0,0,4571,4569,1,0,0,0,4571,4570,1,0,0,0,4572,863,1,0,0,0,4573,4574,5,51,0,0,4574,4575,3,642,321,0,4575,865,1,0,0,0,4576,4577,5,313,0,0,4577,4578,3,14,7,0,4578,867,1,0,0,0,4579,4580,5,142,0,0,4580,4581,3,338,169,0,4581,869,1,0,0,0,4582,4585,3,464,232,0,4583,4585,3,472,236,0,4584,4582,1,0,0,0,4584,4583,1,0,0,0,4585,871,1,0,0,0,504,877,882,889,894,900,908,916,923,927,935,940,945,947,1007,1014,1018,1025,1033,1038,1042,1048,1054,1057,1061,1069,1073,1076,1080,1091,1096,1098,1107,1128,1133,1142,1144,1151,1159,1167,1174,1184,1186,1190,1195,1199,1205,1211,1215,1219,1222,1229,1235,1239,1244,1247,1261,1266,1269,1283,1290,1301,1312,1332,1338,1343,1347,1361,1363,1370,1376,1387,1395,1401,1408,1416,1429,1435,1439,1442,1444,1452,1460,1466,1472,1478,1481,1490,1499,1506,1514,1527,1534,1538,1545,1549,1554,1561,1568,1571,1578,1582,1592,1615,1621,1625,1632,1638,1645,1649,1653,1659,1664,1673,1676,1682,1687,1695,1702,1724,1728,1730,1734,1743,1747,1749,1753,1762,1766,1804,1808,1828,1831,1837,1857,1862,1868,1873,1876,1880,1907,1915,1918,1925,1938,1942,1954,1967,1972,1979,1983,1990,1999,2008,2016,2020,2024,2031,2033,2036,2041,2046,2050,2057,2064,2068,2071,2075,2079,2081,2092,2101,2106,2112,2117,2120,2124,2128,2131,2134,2138,2146,2150,2154,2157,2160,2163,2167,2170,2173,2178,2181,2184,2187,2201,2203,2214,2224,2234,2237,2244,2268,2279,2285,2289,2293,2297,2301,2305,2309,2313,2319,2326,2336,2347,2360,2376,2386,2406,2412,2419,2426,2434,2443,2480,2482,2485,2490,2494,2498,2504,2510,2514,2519,2524,2526,2530,2535,2538,2540,2544,2555,2566,2577,2581,2585,2589,2592,2596,2599,2605,2614,2617,2631,2637,2650,2657,2662,2669,2676,2685,2690,2698,2713,2719,2727,2736,2740,2749,2761,2768,2776,2797,2805,2814,2824,2833,2838,2845,2855,2860,2869,2873,2877,2880,2883,2886,2889,2897,2902,2913,2920,2933,2941,2946,2953,2966,2977,2987,2993,3002,3019,3042,3062,3073,3081,3091,3096,3100,3106,3144,3156,3198,3206,3209,3213,3217,3227,3240,3253,3258,3270,3281,3286,3289,3293,3297,3301,3304,3317,3321,3333,3347,3362,3377,3380,3392,3395,3405,3413,3419,3427,3435,3442,3446,3454,3460,3466,3478,3482,3484,3496,3500,3505,3511,3518,3522,3526,3529,3542,3551,3555,3560,3566,3575,3584,3601,3605,3609,3611,3615,3622,3626,3630,3632,3649,3654,3678,3683,3701,3717,3733,3748,3755,3763,3774,3781,3786,3792,3795,3798,3805,3808,3811,3820,3825,3828,3838,3842,3844,3851,3854,3858,3860,3863,3868,3871,3876,3886,3891,3902,3906,3910,3912,3916,3921,3929,3932,3935,3938,3943,3949,3952,3956,3962,3970,3973,3980,3984,3987,3991,3998,4019,4029,4033,4036,4044,4060,4068,4076,4084,4093,4111,4128,4137,4146,4165,4177,4187,4196,4208,4222,4225,4228,4231,4237,4247,4253,4264,4267,4279,4289,4295,4306,4313,4317,4326,4335,4343,4350,4360,4369,4378,4388,4392,4396,4400,4404,4408,4412,4416,4420,4424,4428,4432,4436,4441,4446,4451,4455,4459,4464,4467,4473,4476,4488,4521,4526,4533,4538,4544,4552,4554,4571,4584]}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,ls)}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)}},ls=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)}},cs=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,ch)}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,ch)}create_table_stmt(){return this.getRuleContext(0,ta)}drop_table_stmt(){return this.getRuleContext(0,bl)}use_stmt(){return this.getRuleContext(0,ah)}into_table_stmt(){return this.getRuleContext(0,xo)}commit_stmt(){return this.getRuleContext(0,hh)}update_stmt(){return this.getRuleContext(0,hc)}delete_stmt(){return this.getRuleContext(0,cc)}rollback_stmt(){return this.getRuleContext(0,dh)}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,Ra)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,Ql)}if_stmt(){return this.getRuleContext(0,Zl)}for_stmt(){return this.getRuleContext(0,Jl)}values_stmt(){return this.getRuleContext(0,No)}create_user_stmt(){return this.getRuleContext(0,El)}alter_user_stmt(){return this.getRuleContext(0,Sl)}create_group_stmt(){return this.getRuleContext(0,yl)}alter_group_stmt(){return this.getRuleContext(0,wl)}drop_role_stmt(){return this.getRuleContext(0,Ll)}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,Wl)}drop_replication_stmt(){return this.getRuleContext(0,ql)}create_topic_stmt(){return this.getRuleContext(0,_c)}alter_topic_stmt(){return this.getRuleContext(0,Ec)}drop_topic_stmt(){return this.getRuleContext(0,Ic)}grant_permissions_stmt(){return this.getRuleContext(0,xl)}revoke_permissions_stmt(){return this.getRuleContext(0,kl)}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,jl)}create_resource_pool_stmt(){return this.getRuleContext(0,Ol)}alter_resource_pool_stmt(){return this.getRuleContext(0,Dl)}drop_resource_pool_stmt(){return this.getRuleContext(0,Pl)}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,ph)}create_resource_pool_classifier_stmt(){return this.getRuleContext(0,Fl)}alter_resource_pool_classifier_stmt(){return this.getRuleContext(0,Ul)}drop_resource_pool_classifier_stmt(){return this.getRuleContext(0,Bl)}backup_stmt(){return this.getRuleContext(0,fa)}restore_stmt(){return this.getRuleContext(0,_a)}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,bs)}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(bs):this.getRuleContext(e,bs)}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)}},bs=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)}},Es=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(Ls):this.getRuleContext(e,Ls)}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(Es):this.getRuleContext(e,Es)}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)}},Ls=class extends W{static{Si(this,"Bit_subexprContext")}constructor(e,t){super(e,t)}add_subexpr(e){return void 0===e?this.getRuleContexts(Rs):this.getRuleContext(e,Rs)}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)}},Rs=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,Lh)}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(Ln):this.getRuleContext(e,Ln)}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(Rh):this.getRuleContext(e,Rh)}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,vh)}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,Ch)}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,cn)}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,Ln)}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,Rh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,Hh)}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,Ln)}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,Rh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,Hh)}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,ln)}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,cs)}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,vh)}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)}},ln=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)}},cn=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(Lh):this.getRuleContext(e,Lh)}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,Ln)}an_id(){return this.getRuleContext(0,Lh)}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,Fh)}an_id(){return this.getRuleContext(0,Lh)}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(Lh):this.getRuleContext(e,Lh)}DOT(){return this.getToken(rs.DOT,0)}an_id_without(){return this.getRuleContext(0,Ih)}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,Rh)}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,bn)}opt_set_quantifier(){return this.getRuleContext(0,Lr)}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)}},bn=class extends W{static{Si(this,"Invoke_expr_tailContext")}constructor(e,t){super(e,t)}null_treatment(){return this.getRuleContext(0,Vc)}filter_clause(){return this.getRuleContext(0,zc)}OVER(){return this.getToken(rs.OVER,0)}window_name_or_specification(){return this.getRuleContext(0,Gc)}get ruleIndex(){return rs.RULE_invoke_expr_tail}accept(e){return e.visitInvoke_expr_tail?e.visitInvoke_expr_tail(this):e.visitChildren(this)}},En=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(Rh):this.getRuleContext(e,Rh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}an_id_expr(){return this.getRuleContext(0,xh)}bind_parameter(){return this.getRuleContext(0,Ln)}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,sd)}real(){return this.getRuleContext(0,id)}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,td)}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)}},Ln=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,Rh)}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)}},Rn=class extends W{static{Si(this,"Opt_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Ln)}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(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_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(Ln):this.getRuleContext(e,Ln)}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,sd)}real(){return this.getRuleContext(0,id)}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,Dh)}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,sd)}bind_parameter(){return this.getRuleContext(0,Ln)}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,fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bind_parameter(){return this.getRuleContext(0,Ln)}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,Ln)}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,Ln)}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(Lh):this.getRuleContext(e,Lh)}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)}},lr=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,Ln)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}expr_list(){return this.getRuleContext(0,cn)}get ruleIndex(){return rs.RULE_call_action}accept(e){return e.visitCall_action?e.visitCall_action(this):e.visitChildren(this)}},cr=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,Xl)}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,lr)}inline_action(){return this.getRuleContext(0,cr)}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,Bh)}an_id(){return this.getRuleContext(0,Lh)}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,fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,td)}bind_parameter(){return this.getRuleContext(0,Ln)}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,br)}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)}},br=class extends W{static{Si(this,"Select_kindContext")}constructor(e,t){super(e,t)}process_core(){return this.getRuleContext(0,Er)}reduce_core(){return this.getRuleContext(0,wr)}select_core(){return this.getRuleContext(0,Rr)}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)}},Er=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,En)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Lh)}WITH(){return this.getToken(rs.WITH,0)}external_call_settings(){return this.getRuleContext(0,yr)}where_expr(){return this.getRuleContext(0,cd)}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,Lh)}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,En)}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,Lh)}where_expr(){return this.getRuleContext(0,cd)}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)}},Lr=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)}},Rr=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,Lr)}result_column(e){return void 0===e?this.getRuleContexts(po):this.getRuleContext(e,po)}from_stmt(e){return void 0===e?this.getRuleContexts(hd):this.getRuleContext(e,hd)}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,cd)}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,Kc)}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,Jc)}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,Lh)}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(sd):this.getRuleContext(e,sd)}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,mh)}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,Lr)}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,Lh)}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,co)}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)}},lo=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)}},co=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,lo)}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,lo)}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,Fh)}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,Rh)}an_id_as_compat(){return this.getRuleContext(0,Mh)}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(Lo):this.getRuleContext(e,Lo)}join_constraint(e){return void 0===e?this.getRuleContexts(Ro):this.getRuleContext(e,Ro)}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,Lh)}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,bo)}row_pattern_recognition_clause(){return this.getRuleContext(0,Tr)}sample_clause(){return this.getRuleContext(0,Eo)}tablesample_clause(){return this.getRuleContext(0,So)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Lh)}an_id_as_compat(){return this.getRuleContext(0,Mh)}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)}},bo=class extends W{static{Si(this,"Single_sourceContext")}constructor(e,t){super(e,t)}table_ref(){return this.getRuleContext(0,ec)}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)}},Eo=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)}},Lo=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)}},Ro=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(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_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,lc)}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,lc)}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,cn)}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,cn)}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,rc)}with_table_settings(){return this.getRuleContext(0,ba)}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,rc)}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,rc)}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,rc)}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,rc)}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,rc)}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,rc)}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,rc)}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,rc)}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,Hh)}bind_parameter(){return this.getRuleContext(0,Ln)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,td)}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,Rh)}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,Rh)}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,Rh)}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,ac)}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,ba)}table_tablestore(){return this.getRuleContext(0,Ea)}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,gl)}changefeed(){return this.getRuleContext(0,ol)}an_id_schema(){return this.getRuleContext(0,Th)}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,ca)}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,la)}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)}},la=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(Nh):this.getRuleContext(e,Nh)}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)}},ca=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,Nh)}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,rc)}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,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,ul)}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,rc)}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,rc)}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(oc):this.getRuleContext(e,oc)}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)}},ba=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)}},Ea=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,oc)}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,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,ul)}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,ac)}alter_table_action(e){return void 0===e?this.getRuleContexts(La):this.getRuleContext(e,La)}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)}},La=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)}},Ra=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,ac)}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,rc)}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,Lh)}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,Lh)}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,Lh)}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,gl)}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(Lh):this.getRuleContext(e,Lh)}SET(){return this.getToken(rs.SET,0)}family_setting_value(){return this.getRuleContext(0,fl)}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,Lh)}table_setting_value(){return this.getRuleContext(0,ul)}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(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_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(Lh):this.getRuleContext(e,Lh)}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,Lh)}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,Nh)}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(Lh):this.getRuleContext(e,Lh)}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,ol)}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,Lh)}changefeed_alter_settings(){return this.getRuleContext(0,hl)}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,Lh)}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,Lh)}alter_table_alter_index_action(){return this.getRuleContext(0,Cl)}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,Th)}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,Lh)}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,Lh)}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(Lh):this.getRuleContext(e,Lh)}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,Lh)}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(Th):this.getRuleContext(e,Th)}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,sl)}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,el)}local_index(){return this.getRuleContext(0,tl)}USING(){return this.getToken(rs.USING,0)}index_subtype(){return this.getRuleContext(0,il)}get ruleIndex(){return rs.RULE_table_index_type}accept(e){return e.visitTable_index_type?e.visitTable_index_type(this):e.visitChildren(this)}},el=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)}},tl=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)}},il=class extends W{static{Si(this,"Index_subtypeContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_index_subtype}accept(e){return e.visitIndex_subtype?e.visitIndex_subtype(this):e.visitChildren(this)}},sl=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(nl):this.getRuleContext(e,nl)}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)}},nl=class extends W{static{Si(this,"Index_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}index_setting_value(){return this.getRuleContext(0,rl)}get ruleIndex(){return rs.RULE_index_setting_entry}accept(e){return e.visitIndex_setting_entry?e.visitIndex_setting_entry(this):e.visitChildren(this)}},rl=class extends W{static{Si(this,"Index_setting_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,Hh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,sd)}bool_value(){return this.getRuleContext(0,td)}get ruleIndex(){return rs.RULE_index_setting_value}accept(e){return e.visitIndex_setting_value?e.visitIndex_setting_value(this):e.visitChildren(this)}},ol=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,Lh)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,al)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed}accept(e){return e.visitChangefeed?e.visitChangefeed(this):e.visitChildren(this)}},al=class extends W{static{Si(this,"Changefeed_settingsContext")}constructor(e,t){super(e,t)}changefeed_settings_entry(e){return void 0===e?this.getRuleContexts(ll):this.getRuleContext(e,ll)}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)}},ll=class extends W{static{Si(this,"Changefeed_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}changefeed_setting_value(){return this.getRuleContext(0,cl)}get ruleIndex(){return rs.RULE_changefeed_settings_entry}accept(e){return e.visitChangefeed_settings_entry?e.visitChangefeed_settings_entry(this):e.visitChildren(this)}},cl=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)}},hl=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,al)}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)}},dl=class extends W{static{Si(this,"Alter_table_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,ul)}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)}},ul=class extends W{static{Si(this,"Table_setting_valueContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,sd)}split_boundaries(){return this.getRuleContext(0,_l)}expr(){return this.getRuleContext(0,gs)}ON(){return this.getToken(rs.ON,0)}an_id(){return this.getRuleContext(0,Lh)}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,td)}get ruleIndex(){return rs.RULE_table_setting_value}accept(e){return e.visitTable_setting_value?e.visitTable_setting_value(this):e.visitChildren(this)}},gl=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,Lh)}family_settings(){return this.getRuleContext(0,pl)}get ruleIndex(){return rs.RULE_family_entry}accept(e){return e.visitFamily_entry?e.visitFamily_entry(this):e.visitChildren(this)}},pl=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(ml):this.getRuleContext(e,ml)}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)}},ml=class extends W{static{Si(this,"Family_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}family_setting_value(){return this.getRuleContext(0,fl)}get ruleIndex(){return rs.RULE_family_settings_entry}accept(e){return e.visitFamily_settings_entry?e.visitFamily_settings_entry(this):e.visitChildren(this)}},fl=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,sd)}get ruleIndex(){return rs.RULE_family_setting_value}accept(e){return e.visitFamily_setting_value?e.visitFamily_setting_value(this):e.visitChildren(this)}},_l=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(vl):this.getRuleContext(e,vl)}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)}},vl=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)}},Cl=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)}},bl=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,ac)}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)}},El=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,Rl)}create_user_option(){return this.getRuleContext(0,Tl)}get ruleIndex(){return rs.RULE_create_user_stmt}accept(e){return e.visitCreate_user_stmt?e.visitCreate_user_stmt(this):e.visitChildren(this)}},Sl=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(Rl):this.getRuleContext(e,Rl)}create_user_option(){return this.getRuleContext(0,Tl)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}get ruleIndex(){return rs.RULE_alter_user_stmt}accept(e){return e.visitAlter_user_stmt?e.visitAlter_user_stmt(this):e.visitChildren(this)}},yl=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(Rl):this.getRuleContext(e,Rl)}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)}},wl=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(Rl):this.getRuleContext(e,Rl)}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)}},Ll=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(Rl):this.getRuleContext(e,Rl)}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)}},Rl=class extends W{static{Si(this,"Role_nameContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,Rh)}bind_parameter(){return this.getRuleContext(0,Ln)}get ruleIndex(){return rs.RULE_role_name}accept(e){return e.visitRole_name?e.visitRole_name(this):e.visitChildren(this)}},Tl=class extends W{static{Si(this,"Create_user_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_create_user_option}accept(e){return e.visitCreate_user_option?e.visitCreate_user_option(this):e.visitChildren(this)}},xl=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,Il)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Th):this.getRuleContext(e,Th)}TO(){return this.getToken(rs.TO,0)}role_name(e){return void 0===e?this.getRuleContexts(Rl):this.getRuleContext(e,Rl)}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)}},kl=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,Il)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Th):this.getRuleContext(e,Th)}FROM(){return this.getToken(rs.FROM,0)}role_name(e){return void 0===e?this.getRuleContexts(Rl):this.getRuleContext(e,Rl)}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)}},Al=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)}},Nl=class extends W{static{Si(this,"Permission_nameContext")}constructor(e,t){super(e,t)}permission_id(){return this.getRuleContext(0,Al)}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)}},Il=class extends W{static{Si(this,"Permission_name_targetContext")}constructor(e,t){super(e,t)}permission_name(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)}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)}},Ol=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,rc)}with_table_settings(){return this.getRuleContext(0,ba)}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)}},Dl=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,rc)}alter_resource_pool_action(e){return void 0===e?this.getRuleContexts(Ml):this.getRuleContext(e,Ml)}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)}},Ml=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)}},Pl=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,rc)}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)}},Fl=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,rc)}with_table_settings(){return this.getRuleContext(0,ba)}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)}},Ul=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,rc)}alter_resource_pool_classifier_action(e){return void 0===e?this.getRuleContexts(Hl):this.getRuleContext(e,Hl)}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)}},Hl=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)}},Bl=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,rc)}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)}},Wl=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,rc)}FOR(){return this.getToken(rs.FOR,0)}replication_target(e){return void 0===e?this.getRuleContexts(Vl):this.getRuleContext(e,Vl)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,zl)}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)}},Vl=class extends W{static{Si(this,"Replication_targetContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,rc)}replication_name(){return this.getRuleContext(0,ld)}get ruleIndex(){return rs.RULE_replication_target}accept(e){return e.visitReplication_target?e.visitReplication_target(this):e.visitChildren(this)}},zl=class extends W{static{Si(this,"Replication_settingsContext")}constructor(e,t){super(e,t)}replication_settings_entry(e){return void 0===e?this.getRuleContexts(Gl):this.getRuleContext(e,Gl)}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)}},Gl=class extends W{static{Si(this,"Replication_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_replication_settings_entry}accept(e){return e.visitReplication_settings_entry?e.visitReplication_settings_entry(this):e.visitChildren(this)}},jl=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,rc)}alter_replication_action(e){return void 0===e?this.getRuleContexts(Kl):this.getRuleContext(e,Kl)}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)}},Kl=class extends W{static{Si(this,"Alter_replication_actionContext")}constructor(e,t){super(e,t)}alter_replication_set_setting(){return this.getRuleContext(0,Yl)}get ruleIndex(){return rs.RULE_alter_replication_action}accept(e){return e.visitAlter_replication_action?e.visitAlter_replication_action(this):e.visitChildren(this)}},Yl=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,zl)}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)}},ql=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,rc)}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)}},$l=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(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_action_or_subquery_args}accept(e){return e.visitAction_or_subquery_args?e.visitAction_or_subquery_args(this):e.visitChildren(this)}},Ql=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,Ln)}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,Xl)}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,$l)}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)}},Xl=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)}},Zl=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)}},Jl=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,Ln)}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)}},ec=class extends W{static{Si(this,"Table_refContext")}constructor(e,t){super(e,t)}table_key(){return this.getRuleContext(0,tc)}an_id_expr(){return this.getRuleContext(0,xh)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Ln)}cluster_expr(){return this.getRuleContext(0,Uh)}DOT(){return this.getToken(rs.DOT,0)}COMMAT(){return this.getToken(rs.COMMAT,0)}table_hints(){return this.getRuleContext(0,sc)}table_arg(e){return void 0===e?this.getRuleContexts(ic):this.getRuleContext(e,ic)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Ph)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}expr_list(){return this.getRuleContext(0,cn)}get ruleIndex(){return rs.RULE_table_ref}accept(e){return e.visitTable_ref?e.visitTable_ref(this):e.visitChildren(this)}},tc=class extends W{static{Si(this,"Table_keyContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,Vh)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Ph)}get ruleIndex(){return rs.RULE_table_key}accept(e){return e.visitTable_key?e.visitTable_key(this):e.visitChildren(this)}},ic=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,Ph)}get ruleIndex(){return rs.RULE_table_arg}accept(e){return e.visitTable_arg?e.visitTable_arg(this):e.visitChildren(this)}},sc=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(nc):this.getRuleContext(e,nc)}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)}},nc=class extends W{static{Si(this,"Table_hintContext")}constructor(e,t){super(e,t)}an_id_hint(){return this.getRuleContext(0,Oh)}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)}},rc=class extends W{static{Si(this,"Object_refContext")}constructor(e,t){super(e,t)}id_or_at(){return this.getRuleContext(0,Wh)}cluster_expr(){return this.getRuleContext(0,Uh)}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)}},oc=class extends W{static{Si(this,"Simple_table_ref_coreContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,rc)}bind_parameter(){return this.getRuleContext(0,Ln)}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)}},ac=class extends W{static{Si(this,"Simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref_core(){return this.getRuleContext(0,oc)}table_hints(){return this.getRuleContext(0,sc)}get ruleIndex(){return rs.RULE_simple_table_ref}accept(e){return e.visitSimple_table_ref?e.visitSimple_table_ref(this):e.visitChildren(this)}},lc=class extends W{static{Si(this,"Into_simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,ac)}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)}},cc=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,ac)}where_expr(){return this.getRuleContext(0,cd)}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)}},hc=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,ac)}SET(){return this.getToken(rs.SET,0)}set_clause_choice(){return this.getRuleContext(0,dc)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}returning_columns_list(){return this.getRuleContext(0,To)}where_expr(){return this.getRuleContext(0,cd)}get ruleIndex(){return rs.RULE_update_stmt}accept(e){return e.visitUpdate_stmt?e.visitUpdate_stmt(this):e.visitChildren(this)}},dc=class extends W{static{Si(this,"Set_clause_choiceContext")}constructor(e,t){super(e,t)}set_clause_list(){return this.getRuleContext(0,uc)}multiple_column_assignment(){return this.getRuleContext(0,mc)}get ruleIndex(){return rs.RULE_set_clause_choice}accept(e){return e.visitSet_clause_choice?e.visitSet_clause_choice(this):e.visitChildren(this)}},uc=class extends W{static{Si(this,"Set_clause_listContext")}constructor(e,t){super(e,t)}set_clause(e){return void 0===e?this.getRuleContexts(gc):this.getRuleContext(e,gc)}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)}},gc=class extends W{static{Si(this,"Set_clauseContext")}constructor(e,t){super(e,t)}set_target(){return this.getRuleContext(0,pc)}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)}},pc=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)}},mc=class extends W{static{Si(this,"Multiple_column_assignmentContext")}constructor(e,t){super(e,t)}set_target_list(){return this.getRuleContext(0,fc)}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)}},fc=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(pc):this.getRuleContext(e,pc)}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)}},_c=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,Bc)}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,vc)}with_topic_settings(){return this.getRuleContext(0,bc)}get ruleIndex(){return rs.RULE_create_topic_stmt}accept(e){return e.visitCreate_topic_stmt?e.visitCreate_topic_stmt(this):e.visitChildren(this)}},vc=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(Cc):this.getRuleContext(e,Cc)}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)}},Cc=class extends W{static{Si(this,"Create_topic_entryContext")}constructor(e,t){super(e,t)}topic_create_consumer_entry(){return this.getRuleContext(0,wc)}get ruleIndex(){return rs.RULE_create_topic_entry}accept(e){return e.visitCreate_topic_entry?e.visitCreate_topic_entry(this):e.visitChildren(this)}},bc=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,Oc)}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)}},Ec=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,Bc)}alter_topic_action(e){return void 0===e?this.getRuleContexts(Sc):this.getRuleContext(e,Sc)}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)}},Sc=class extends W{static{Si(this,"Alter_topic_actionContext")}constructor(e,t){super(e,t)}alter_topic_add_consumer(){return this.getRuleContext(0,yc)}alter_topic_alter_consumer(){return this.getRuleContext(0,Lc)}alter_topic_drop_consumer(){return this.getRuleContext(0,Tc)}alter_topic_set_settings(){return this.getRuleContext(0,Ac)}alter_topic_reset_settings(){return this.getRuleContext(0,Nc)}get ruleIndex(){return rs.RULE_alter_topic_action}accept(e){return e.visitAlter_topic_action?e.visitAlter_topic_action(this):e.visitChildren(this)}},yc=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,wc)}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)}},wc=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,Lh)}topic_consumer_with_settings(){return this.getRuleContext(0,Pc)}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)}},Lc=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,Wc)}alter_topic_alter_consumer_entry(){return this.getRuleContext(0,Rc)}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)}},Rc=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,xc)}topic_alter_consumer_reset(){return this.getRuleContext(0,kc)}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)}},Tc=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,Wc)}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)}},xc=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,Fc)}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)}},kc=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(Lh):this.getRuleContext(e,Lh)}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)}},Ac=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,Oc)}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)}},Nc=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,Lh)}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(Dh):this.getRuleContext(e,Dh)}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)}},Ic=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,Bc)}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)}},Oc=class extends W{static{Si(this,"Topic_settingsContext")}constructor(e,t){super(e,t)}topic_settings_entry(e){return void 0===e?this.getRuleContexts(Dc):this.getRuleContext(e,Dc)}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)}},Dc=class extends W{static{Si(this,"Topic_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_setting_value(){return this.getRuleContext(0,Mc)}get ruleIndex(){return rs.RULE_topic_settings_entry}accept(e){return e.visitTopic_settings_entry?e.visitTopic_settings_entry(this):e.visitChildren(this)}},Mc=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)}},Pc=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,Fc)}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)}},Fc=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(Uc):this.getRuleContext(e,Uc)}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)}},Uc=class extends W{static{Si(this,"Topic_consumer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_consumer_setting_value(){return this.getRuleContext(0,Hc)}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)}},Hc=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)}},Bc=class extends W{static{Si(this,"Topic_refContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}cluster_expr(){return this.getRuleContext(0,Uh)}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)}},Wc=class extends W{static{Si(this,"Topic_consumer_refContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Dh)}get ruleIndex(){return rs.RULE_topic_consumer_ref}accept(e){return e.visitTopic_consumer_ref?e.visitTopic_consumer_ref(this):e.visitChildren(this)}},Vc=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)}},zc=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,cd)}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)}},Gc=class extends W{static{Si(this,"Window_name_or_specificationContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,jc)}window_specification(){return this.getRuleContext(0,Qc)}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)}},jc=class extends W{static{Si(this,"Window_nameContext")}constructor(e,t){super(e,t)}an_id_window(){return this.getRuleContext(0,Ah)}get ruleIndex(){return rs.RULE_window_name}accept(e){return e.visitWindow_name?e.visitWindow_name(this):e.visitChildren(this)}},Kc=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,Yc)}get ruleIndex(){return rs.RULE_window_clause}accept(e){return e.visitWindow_clause?e.visitWindow_clause(this):e.visitChildren(this)}},Yc=class extends W{static{Si(this,"Window_definition_listContext")}constructor(e,t){super(e,t)}window_definition(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_window_definition_list}accept(e){return e.visitWindow_definition_list?e.visitWindow_definition_list(this):e.visitChildren(this)}},qc=class extends W{static{Si(this,"Window_definitionContext")}constructor(e,t){super(e,t)}new_window_name(){return this.getRuleContext(0,$c)}AS(){return this.getToken(rs.AS,0)}window_specification(){return this.getRuleContext(0,Qc)}get ruleIndex(){return rs.RULE_window_definition}accept(e){return e.visitWindow_definition?e.visitWindow_definition(this):e.visitChildren(this)}},$c=class extends W{static{Si(this,"New_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,jc)}get ruleIndex(){return rs.RULE_new_window_name}accept(e){return e.visitNew_window_name?e.visitNew_window_name(this):e.visitChildren(this)}},Qc=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,Xc)}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)}},Xc=class extends W{static{Si(this,"Window_specification_detailsContext")}constructor(e,t){super(e,t)}existing_window_name(){return this.getRuleContext(0,Zc)}window_partition_clause(){return this.getRuleContext(0,Jc)}window_order_clause(){return this.getRuleContext(0,eh)}window_frame_clause(){return this.getRuleContext(0,th)}get ruleIndex(){return rs.RULE_window_specification_details}accept(e){return e.visitWindow_specification_details?e.visitWindow_specification_details(this):e.visitChildren(this)}},Zc=class extends W{static{Si(this,"Existing_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,jc)}get ruleIndex(){return rs.RULE_existing_window_name}accept(e){return e.visitExisting_window_name?e.visitExisting_window_name(this):e.visitChildren(this)}},Jc=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)}},eh=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)}},th=class extends W{static{Si(this,"Window_frame_clauseContext")}constructor(e,t){super(e,t)}window_frame_units(){return this.getRuleContext(0,ih)}window_frame_extent(){return this.getRuleContext(0,sh)}window_frame_exclusion(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_window_frame_clause}accept(e){return e.visitWindow_frame_clause?e.visitWindow_frame_clause(this):e.visitChildren(this)}},ih=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)}},sh=class extends W{static{Si(this,"Window_frame_extentContext")}constructor(e,t){super(e,t)}window_frame_bound(){return this.getRuleContext(0,rh)}window_frame_between(){return this.getRuleContext(0,nh)}get ruleIndex(){return rs.RULE_window_frame_extent}accept(e){return e.visitWindow_frame_extent?e.visitWindow_frame_extent(this):e.visitChildren(this)}},nh=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(rh):this.getRuleContext(e,rh)}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)}},rh=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)}},oh=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)}},ah=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,Uh)}get ruleIndex(){return rs.RULE_use_stmt}accept(e){return e.visitUse_stmt?e.visitUse_stmt(this):e.visitChildren(this)}},lh=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)}},ch=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,lh)}get ruleIndex(){return rs.RULE_named_nodes_stmt}accept(e){return e.visitNamed_nodes_stmt?e.visitNamed_nodes_stmt(this):e.visitChildren(this)}},hh=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)}},dh=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)}},uh=class extends W{static{Si(this,"Analyze_tableContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,ac)}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)}},gh=class extends W{static{Si(this,"Analyze_table_listContext")}constructor(e,t){super(e,t)}analyze_table(e){return void 0===e?this.getRuleContexts(uh):this.getRuleContext(e,uh)}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)}},ph=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,gh)}get ruleIndex(){return rs.RULE_analyze_stmt}accept(e){return e.visitAnalyze_stmt?e.visitAnalyze_stmt(this):e.visitChildren(this)}},mh=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)}},fh=class extends W{static{Si(this,"IdContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword(){return this.getRuleContext(0,Gh)}get ruleIndex(){return rs.RULE_id}accept(e){return e.visitId?e.visitId(this):e.visitChildren(this)}},_h=class extends W{static{Si(this,"Id_schemaContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_schema}accept(e){return e.visitId_schema?e.visitId_schema(this):e.visitChildren(this)}},vh=class extends W{static{Si(this,"Id_exprContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_expr}accept(e){return e.visitId_expr?e.visitId_expr(this):e.visitChildren(this)}},Ch=class extends W{static{Si(this,"Id_expr_inContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_expr_in}accept(e){return e.visitId_expr_in?e.visitId_expr_in(this):e.visitChildren(this)}},bh=class extends W{static{Si(this,"Id_windowContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_table_uncompat(){return this.getRuleContext(0,Kh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_window}accept(e){return e.visitId_window?e.visitId_window(this):e.visitChildren(this)}},Eh=class extends W{static{Si(this,"Id_tableContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_table}accept(e){return e.visitId_table?e.visitId_table(this):e.visitChildren(this)}},Sh=class extends W{static{Si(this,"Id_withoutContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_table_uncompat(){return this.getRuleContext(0,Kh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_without}accept(e){return e.visitId_without?e.visitId_without(this):e.visitChildren(this)}},yh=class extends W{static{Si(this,"Id_hintContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_table_uncompat(){return this.getRuleContext(0,Kh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}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,mh)}keyword_as_compat(){return this.getRuleContext(0,Zh)}get ruleIndex(){return rs.RULE_id_as_compat}accept(e){return e.visitId_as_compat?e.visitId_as_compat(this):e.visitChildren(this)}},Lh=class extends W{static{Si(this,"An_idContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,fh)}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)}},Rh=class extends W{static{Si(this,"An_id_or_typeContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,Hh)}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)}},Th=class extends W{static{Si(this,"An_id_schemaContext")}constructor(e,t){super(e,t)}id_schema(){return this.getRuleContext(0,_h)}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)}},xh=class extends W{static{Si(this,"An_id_exprContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,vh)}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,Ch)}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)}},Ah=class extends W{static{Si(this,"An_id_windowContext")}constructor(e,t){super(e,t)}id_window(){return this.getRuleContext(0,bh)}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)}},Nh=class extends W{static{Si(this,"An_id_tableContext")}constructor(e,t){super(e,t)}id_table(){return this.getRuleContext(0,Eh)}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)}},Ih=class extends W{static{Si(this,"An_id_withoutContext")}constructor(e,t){super(e,t)}id_without(){return this.getRuleContext(0,Sh)}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)}},Oh=class extends W{static{Si(this,"An_id_hintContext")}constructor(e,t){super(e,t)}id_hint(){return this.getRuleContext(0,yh)}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)}},Dh=class extends W{static{Si(this,"An_id_pureContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}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)}},Mh=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)}},Ph=class extends W{static{Si(this,"View_nameContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}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)}},Fh=class extends W{static{Si(this,"Opt_id_prefixContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}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)}},Uh=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,Lh)}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)}},Hh=class extends W{static{Si(this,"Id_or_typeContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,fh)}type_id(){return this.getRuleContext(0,ed)}get ruleIndex(){return rs.RULE_id_or_type}accept(e){return e.visitId_or_type?e.visitId_or_type(this):e.visitChildren(this)}},Bh=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,Rh)}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)}},Wh=class extends W{static{Si(this,"Id_or_atContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,Rh)}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)}},Vh=class extends W{static{Si(this,"Id_table_or_typeContext")}constructor(e,t){super(e,t)}an_id_table(){return this.getRuleContext(0,Nh)}type_id(){return this.getRuleContext(0,ed)}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)}},zh=class extends W{static{Si(this,"Id_table_or_atContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,Vh)}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)}},Gh=class extends W{static{Si(this,"KeywordContext")}constructor(e,t){super(e,t)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_table_uncompat(){return this.getRuleContext(0,Kh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_keyword}accept(e){return e.visitKeyword?e.visitKeyword(this):e.visitChildren(this)}},jh=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)}LOCAL(){return this.getToken(rs.LOCAL,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)}},Kh=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)}},Yh=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)}},qh=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)}},$h=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)}},Qh=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)}},Xh=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)}},Zh=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)}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)}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)}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)}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)}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)}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)}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)}SOURCE(){return this.getToken(rs.SOURCE,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)}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)}},Jh=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)}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)}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)}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)}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)}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)}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)}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)}SOURCE(){return this.getToken(rs.SOURCE,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)}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)}},ed=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)}},td=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)}},id=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)}},sd=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)}},nd=class extends W{static{Si(this,"Sql_query_yqContext")}constructor(e,t){super(e,t)}sql_stmt_list_yq(){return this.getRuleContext(0,rd)}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,ls)}get ruleIndex(){return rs.RULE_sql_query_yq}accept(e){return e.visitSql_query_yq?e.visitSql_query_yq(this):e.visitChildren(this)}},rd=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(od):this.getRuleContext(e,od)}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)}},od=class extends W{static{Si(this,"Sql_stmt_yqContext")}constructor(e,t){super(e,t)}sql_stmt_core_yq(){return this.getRuleContext(0,ad)}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)}},ad=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,ch)}use_stmt(){return this.getRuleContext(0,ah)}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,Ql)}if_stmt(){return this.getRuleContext(0,Zl)}for_stmt(){return this.getRuleContext(0,Jl)}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)}},ld=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,rc)}get ruleIndex(){return rs.RULE_replication_name}accept(e){return e.visitReplication_name?e.visitReplication_name(this):e.visitChildren(this)}},cd=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)}},hd=class extends W{static{Si(this,"From_stmtContext")}constructor(e,t){super(e,t)}FROM(){return this.getToken(rs.FROM,0)}join_source(){return this.getRuleContext(0,mo)}get ruleIndex(){return rs.RULE_from_stmt}accept(e){return e.visitFrom_stmt?e.visitFrom_stmt(this):e.visitChildren(this)}},dd=class extends W{static{Si(this,"Alter_table_for_autocompleteContext")}constructor(e,t){super(e,t)}alter_table_stmt(){return this.getRuleContext(0,wa)}alter_table_store_stmt(){return this.getRuleContext(0,xa)}get ruleIndex(){return rs.RULE_alter_table_for_autocomplete}accept(e){return e.visitAlter_table_for_autocomplete?e.visitAlter_table_for_autocomplete(this):e.visitChildren(this)}},ud=class extends vt{static{Si(this,"YQLVisitor")}},gd={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 pd(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 md(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 fd({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 _d({anyRuleInList:e}){return e([rs.RULE_alter_object_stmt,rs.RULE_drop_object_stmt])&&e(rs.RULE_id_or_at)}function vd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_id_or_at))return;let s=e(rs.RULE_drop_table_stmt)&&!!ss(t,gd,i,rs.TABLESTORE);return e(rs.RULE_alter_table_store_stmt)||s}function Cd({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,gd,s,rs.CREATE)&&!ss(i,gd,s,rs.EXTERNAL);return e([rs.RULE_table_ref,rs.RULE_table_inherits])||r||n}function bd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,gd,i,rs.USER),n=!!ss(t,gd,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,l=e(rs.RULE_alter_user_stmt)&&!n;return e(rs.RULE_drop_role_stmt)&&s||l||a||o||r}function Ed({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,gd,i,rs.GROUP),n=!!ss(t,gd,i,rs.USER),r=!!ss(t,gd,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 Sd({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 yd({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 wd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_alter_replication_stmt,rs.RULE_drop_replication_stmt])}function Ld({allRulesInList:e,tokenStream:t,cursorTokenIndex:i}){let s=!!ss(t,gd,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 Rd({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 Td({anyRuleInList:e}){return!!e(rs.RULE_an_id)&&e([rs.RULE_alter_table_drop_index,rs.RULE_alter_table_rename_index_to])}function xd({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,gd,i,rs.LIMIT),n=e(rs.RULE_alter_table_alter_column)&&!ss(t,gd,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 kd(e){if(!xd(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)?pd(t,gd,i,rs.LPAREN):!!n([rs.RULE_select_stmt,rs.RULE_result_column])&&pd(t,gd,i,rs.SELECT)}function Ad({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 Nd({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 Id({allRulesInList:e}){return e([rs.RULE_an_id,rs.RULE_pragma_stmt])}function Od({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 Dd({allRulesInList:e}){return e([rs.RULE_id_expr,rs.RULE_table_ref])}function Md({anyRuleInList:e}){if(e(rs.RULE_id_expr)&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function Pd({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 Fd({allRulesInList:e}){return e([rs.RULE_an_id_hint,rs.RULE_table_hint])}function Ud({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(pd,"isFirstPreviousTokenOfType"),Si(md,"getRuleCheckHelpers"),Si(fd,"getWindowFunctionsSuggestions"),Si(_d,"getObjectSuggestions"),Si(vd,"getTablestoreSuggestions"),Si(Cd,"getTableSuggestions"),Si(bd,"getUserSuggestions"),Si(Ed,"getGroupSuggestions"),Si(Sd,"getTopicSuggestions"),Si(yd,"getViewSuggestions"),Si(wd,"getReplicationSuggestions"),Si(Ld,"getExternalTableSuggestions"),Si(Rd,"getExternalDatasourceSuggestions"),Si(Td,"checkShouldSuggestTableIndexes"),Si(xd,"checkShouldSuggestColumns"),Si(kd,"checkShouldSuggestAllColumns"),Si(Ad,"checkShouldSuggestVariables"),Si(Nd,"getSimpleTypesSuggestions"),Si(Id,"getPragmasSuggestions"),Si(Od,"getUdfsSuggestions"),Si(Dd,"getTableFunctionsSuggestions"),Si(Md,"getFunctionsSuggestions"),Si(Pd,"getAggregateFunctionsSuggestions"),Si(Fd,"checkShouldSuggestTableHints"),Si(Ud,"getEntitySettingsSuggestions");var Hd=rs.ruleNames;function Bd(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?Hd[i]:void 0}Si(Bd,"getParticularStatement");var Wd={suggestObject:"object",suggestTableStore:"tableStore",suggestTable:"table",suggestExternalTable:"externalTable",suggestExternalDatasource:"externalDataSource",suggestTopic:"topic",suggestView:"view",suggestReplication:"replication",suggestGroup:"group",suggestUser:"user"};function Vd(e,t,i){let s={...md(e),cursorTokenIndex:t,tokenStream:i},n=fd(s),r=_d(s),o=vd(s),a=Cd(s),l=bd(s),c=Ed(s),h=Sd(s),d=yd(s),u=wd(s),g=Ld(s),p=Rd(s),m=Td(s),f=xd(s),_=kd(s),v=Nd(s),C=Id(s),b=Od(s),E=Dd(s),S=Md(s),y=Pd(s),w=Fd(s),L=Ud(s);return{suggestWindowFunctions:n,shouldSuggestTableIndexes:m,shouldSuggestColumns:f,shouldSuggestAllColumns:_,shouldSuggestColumnAliases:f,shouldSuggestVariables:Ad(s),suggestSimpleTypes:v,suggestPragmas:C,suggestUdfs:b,suggestTableFunctions:E,suggestFunctions:S,suggestAggregateFunctions:y,suggestTableHints:w?Bd(e):void 0,suggestEntitySettings:L,suggestObject:r,suggestTableStore:o,suggestTable:a,suggestUser:l,suggestGroup:c,suggestTopic:h,suggestView:d,suggestReplication:u,suggestExternalTable:g,suggestExternalDatasource:p}}function zd(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 Gd(e,t,i,s=[]){return jd(e,t,i,zd(t,i,s))}function jd(e,t,i,s){return e instanceof F?Yd(e,i,s):qd(e,t,i,s)}function Kd(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 Yd(e,t,i){return Kd(e.symbol,e.getText(),t,e,i)}function qd(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=jd(r,t,i,s);if(o)return o}for(let n=e.start.tokenIndex;n<=e.stop.tokenIndex;n++){let r=Kd(t.get(n),t.get(n).text??"",i,e,s);if(r)return r}}}function $d(e,t,i,s,n,r,o,a=[]){let l=s(Di(e,t,o)),c=Gd(l,n,r,a);if(!c)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);return i.visit(l),Qd(i.symbolTable,c.context)}function Qd(e,t){let i=Ji(t,e),s=[];return i instanceof li?s=i.getNestedSymbolsOfTypeSync(qi):e&&(s=e.getNestedSymbolsOfTypeSync(qi).filter((e=>!e.parent?.context))),s.map((e=>({name:e.name,value:e.value})))}function Xd(e,t,i,s,n,r,o,a=[]){let l={},c=s(Di(e,t,o)),h=Gd(c,n,r,a);if(!h)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);i.visit(c);let d=Zd(i.symbolTable,h.context),u=Jd(i.symbolTable,h.context);return d.length&&(l.tableContextSuggestion={tables:d}),u.length&&(l.suggestColumnAliases=u),l}function Zd(e,t){let i=Ji(t,e),s=[];return i instanceof li?s=i.getNestedSymbolsOfTypeSync(Yi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Yi)),$i(s)}function Jd(e,t){let i=Ji(t,e),s=[];return i instanceof li?s=i.getNestedSymbolsOfTypeSync(Xi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Xi)),s.map((({name:e})=>({name:e})))}function eu(){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(Vd,"getGranularSuggestions"),Si(zd,"getWhitespaceBeforeCursor"),Si(Gd,"computeTokenContext"),Si(jd,"computeTokenContextInternal"),Si(Kd,"getTokenContext"),Si(Yd,"computeTokenContextOfTerminalNode"),Si(qd,"computeTokenContextOfChildNode"),Si($d,"getVariableSuggestions"),Si(Qd,"suggestVariables"),Si(Xd,"getExtendedTableSuggestions"),Si(Zd,"suggestTables"),Si(Jd,"suggestColumnAliases"),Si(eu,"getIgnoredTokens");var tu=new Set(eu()),iu=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]),su=class extends ud{static{Si(this,"YQLSymbolTableVisitor")}constructor(){super(),this.symbolTable=new bi("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(li,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}},nu=class extends su{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")}},ru=class extends su{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 ou(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=Vd(_.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:l,suggestTopic:c,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g,...p}=s,m=Object.entries({suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:l,suggestTopic:c,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g}).filter((([e,t])=>t)).map((([e])=>Wd[e]));return{suggestEntity:m.length?m:void 0,...p}}function au(e,t){return t?cu(e,t):e.sql_query()}function lu(e,t){return t?cu(e,t):e.sql_query_yq()}function cu(e,t){switch(t){case"from":return e.from_stmt();case"alter":return e.alter_table_for_autocomplete();case"insert":return e.into_table_stmt();case"update":return e.update_stmt();case"select":return e.select_core()}}function hu(e){return(t,i,s,n,r,o)=>{let{shouldSuggestColumns:a,shouldSuggestAllColumns:l,shouldSuggestColumnAliases:c,shouldSuggestTableIndexes:h,shouldSuggestVariables:d,...u}=ou(i,n,s),g={...t,...u,suggestTemplates:Oi(o,r)},p=a||c||h;if(d){let t=new nu,i=$d(ns,rs,t,e,s,r,o,[rs.WS]);i.length&&(g.suggestVariables=i)}if(p){let t=new ru,{tableContextSuggestion:i,suggestColumnAliases:n}=Xd(ns,rs,t,e,s,r,o,[rs.WS]);a&&i&&(g.suggestColumns={tables:i.tables},l&&(g.suggestColumns.all=!0)),h&&i&&(g.suggestTableIndexes={tables:i.tables}),c&&n&&(g.suggestColumnAliases=n)}return g}}Si(ou,"processVisitedRules"),Si(au,"getParseTree"),Si(lu,"getParseTreeYQ"),Si(cu,"getCommonParseTree"),Si(hu,"getEnrichAutocompleteResult");var du=new os(null,-1),uu={Lexer:ns,Parser:rs,tokenDictionary:gd,ignoredTokens:tu,rulesToVisit:iu,getParseTree:au,enrichAutocompleteResult:hu(au),context:du},gu=new nd(null,-1),pu={Lexer:ns,Parser:rs,tokenDictionary:gd,ignoredTokens:tu,rulesToVisit:iu,getParseTree:lu,enrichAutocompleteResult:hu(lu),context:gu};function mu(e){return zi(uu.Lexer,uu.Parser,uu.tokenDictionary.SPACE,uu.getParseTree,e)}function fu(e,t){return ji(uu.Lexer,uu.Parser,uu.tokenDictionary.SPACE,uu.ignoredTokens,uu.rulesToVisit,uu.getParseTree,uu.enrichAutocompleteResult,e,t,uu.context)}function _u(e,t){return ji(pu.Lexer,pu.Parser,pu.tokenDictionary.SPACE,pu.ignoredTokens,pu.rulesToVisit,pu.getParseTree,pu.enrichAutocompleteResult,e,t,pu.context)}Si(mu,"parseYqlQueryWithoutCursor"),Si(fu,"parseYqlQuery"),Si((function(e){return zi(pu.Lexer,pu.Parser,pu.tokenDictionary.SPACE,pu.getParseTree,e)}),"parseYqQueryWithoutCursor"),Si(_u,"parseYqQuery"),Si((function(e){return fu(...Ki(e))}),"parseYqlQueryWithCursor"),Si((function(e){return _u(...Ki(e))}),"parseYqQueryWithCursor"),Si((function(e){return Vi(ns,ns.symbolicNames,uu.tokenDictionary.SPACE,e)}),"tokenizeYqlQuery"),Si((function(e){return Hi(e,uu.Lexer,uu.Parser,uu.tokenDictionary.SPACE,[uu.tokenDictionary.SPACE],uu.tokenDictionary.SEMICOLON,rs.RULE_sql_stmt,uu.getParseTree)}),"extractYqlStatementPositionsFromQuery")},16122:(e,t,i)=>{"use strict";i.d(t,{u:()=>c});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 l=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 l=n.unionErrors[0].errors[0];i[a]={message:l.message,type:l.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 c=i[a].types,h=c&&c[n.code];i[a]=(0,s.Gb)(a,t,i,r,h?[].concat(h,n.message):n.message)}e.shift()}return i},c=function(e,t,i){return void 0===i&&(i={}),function(s,n,a){try{return Promise.resolve(function(n,o){try{var l=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(c){return o(c)}return l&&l.then?l.then(void 0,o):l}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:o(l(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(c){return Promise.reject(c)}}}},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},l=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)}},c=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),l=s*(1-(1-t+r)*i),c=r%6;return{r:255*[s,a,o,o,l,s][c],g:255*[l,s,s,a,o,o][c],b:255*[o,o,l,s,s,a][c],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,b=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^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=b.exec(e)||E.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({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)?l({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,l=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var c=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(l)});return g(c)},"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]},L=function(e,t){var i=_(e);return{h:i.h,s:o(i.s+100*t,0,100),l:i.l,a:i.a}},R=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(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=c(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 c(this.rgba)},e.prototype.toRgbString=function(){return t=(e=c(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(L(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),k(L(this.rgba,-e))},e.prototype.grayscale=function(){return k(L(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)}},23971:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>V,Jt:()=>f,hZ:()=>b,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 l=e=>!o(e)&&!Array.isArray(e)&&a(e)&&!r(e),c=e=>l(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 l(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&&!l(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||!l(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(/\.|\[/)),b=(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=l(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 E={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},y="max",w="min",L="maxLength",R="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=>l(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),l=function(e){const t=N(),{control:i=t.control,name:n,defaultValue:r,disabled:o,exact:a}=e||{},l=s.useRef(n);l.current=n,F({disabled:o,subject:i._subjects.values,next:e=>{P(l.current,e.name,a)&&h(g(H(l.current,i._names,e.values||i._formValues,!1,r)))}});const[c,h]=s.useState(i._getWatch(n,r));return s.useEffect((()=>i._removeUnmounted())),c}({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,l]=s.useState(i._formState),c=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=>c.current&&P(d.current,e.name,o)&&D(e,h.current,i._updateFormState)&&l({...i._formState,...e}),subject:i._subjects.state}),s.useEffect((()=>(c.current=!0,h.current.isValid&&i._updateValid(!0),()=>{c.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:l,..._(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:l,..._(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:e=>u.current.onChange({target:{value:c(e),name:i},type:E.CHANGE}),onBlur:()=>u.current.onBlur({target:{value:f(r._formValues,i),name:i},type:E.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,l,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));b(r._defaultValues,i,e),m(f(r._formValues,i))&&b(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(l(r)&&j(r,t))break}}};var K=(e,t,i)=>{const s=M(f(e,i));return b(s,"root",t[i]),b(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=>l(e)&&!Z(e)?e:{value:e,message:""},oe=async(e,t,i,s,r,a)=>{const{ref:c,refs:h,required:d,maxLength:u,minLength:g,min:p,max:v,pattern:C,validate:b,name:E,valueAsNumber:S,mount:A}=e._f,N=f(i,E);if(!A||t.has(E))return{};const I=h?h[0]:c,D=e=>{r&&I.reportValidity&&(I.setCustomValidity(_(e)?"":e||""),I.reportValidity())},M={},P=X(c),F=n(c),H=P||F,B=(S||Y(c))&&m(c.value)&&m(N)||$(c)&&""===c.value||""===N||Array.isArray(N)&&!N.length,W=V.bind(null,E,s,M),z=(e,t,i,s=L,n=R)=>{const r=e?t:i;M[E]={type:e?s:n,message:r,ref:c,...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[E]={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=c.valueAsDate||new Date(N),r=e=>new Date((new Date).toDateString()+" "+e),o="time"==c.type,a="week"==c.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=c.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[E].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[E].message),M}if(C&&!B&&U(N)){const{value:e,message:t}=re(C);if(Z(e)&&!N.match(e)&&(M[E]={type:T,message:t,ref:c,...W(T,t)},!s))return D(t),M}if(b)if(q(b)){const e=ne(await b(N,i),I);if(e&&(M[E]={...e,...W(k,e.message)},!s))return D(e.message),M}else if(l(b)){let e={};for(const t in b){if(!O(e)&&!s)break;const n=ne(await b[t](N,i),I,t);n&&(e={...n,...W(t,n.message)},D(n.message),s&&(M[E]=e))}if(!O(e)&&(M[E]={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&&(l(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 le=()=>{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=[]}}},ce=e=>o(e)||!a(e);function he(e,t){if(ce(e)||ce(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)||l(i)&&l(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(l(e)||i)for(const s in e)Array.isArray(e[s])||l(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(l(e)||s)for(const n in e)Array.isArray(e[n])||l(e[n])&&!pe(e[n])?m(t)||ce(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 be=(e,t,i,s)=>{const n={};for(const r of e){const e=f(t,r);e&&b(n,r,e._f)}return{criteriaMode:i,names:[...e],fields:n,shouldUseNativeValidation:s}},Ee=e=>m(e)?e:Z(e)?e.source:l(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||l(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 Le(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 Re=(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=(l(i.defaultValues)||l(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 L={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},R={values:le(),array:le(),state:le()},T=z(i.mode),x=z(i.reValidateMode),k=i.criteriaMode===S.all,A=async e=>{if(!i.disabled&&(L.isValid||e)){const e=i.resolver?O((await F()).errors):await B(a,!0);e!==s.isValid&&R.state.next({isValid:e})}},N=(e,t)=>{i.disabled||!L.isValidating&&!L.validatingFields||((e||Array.from(y.mount)).forEach((e=>{e&&(t?b(s.validatingFields,e,t):ae(s.validatingFields,e))})),R.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?b(v,e,t?r:Ce(n._f)):Q(e,r),C.mount&&A()}},D=(e,t,n,r,o)=>{let l=!1,c=!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){L.isDirty&&(c=s.isDirty,s.isDirty=h.isDirty=W(),l=c!==h.isDirty);const n=i||he(f(d,e),t);c=!(i||!f(s.dirtyFields,e)),n||i?ae(s.dirtyFields,e):b(s.dirtyFields,e,!0),h.dirtyFields=s.dirtyFields,l=l||L.dirtyFields&&c!==!n}if(n){const t=f(s.touchedFields,e);t||(b(s.touchedFields,e,n),h.touchedFields=s.touchedFields,l=l||L.touchedFields&&t!==n)}l&&o&&R.state.next(h)}return l?h:{}},P=(e,n,r,o)=>{const a=f(s.errors,e),l=L.isValid&&_(n)&&s.isValid!==n;var c;if(i.delayError&&r?(c=()=>((e,t)=>{b(s.errors,e,t),R.state.next({errors:s.errors})})(e,r),t=e=>{clearTimeout(w),w=setTimeout(c,e)},t(i.delayError)):(clearTimeout(w),t=null,r?b(s.errors,e,r):ae(s.errors,e)),(r?!he(a,r):a)||!O(o)||l){const t={...o,...l&&_(n)?{isValid:n}:{},errors:s.errors,name:e};s={...s,...t},R.state.next(t)}},F=async e=>{N(e,!0);const t=await i.resolver(v,i.context,be(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),l=o._f&&ye(o._f);l&&L.validatingFields&&N([r],!0);const c=await oe(o,y.disabled,v,k,i.shouldUseNativeValidation&&!t,a);if(l&&L.validatingFields&&N([r]),c[e.name]&&(n.valid=!1,t))break;!t&&(f(c,e.name)?a?K(s.errors,c,e.name):b(s.errors,e.name,c[e.name]):ae(s.errors,e.name))}!O(a)&&await B(a,t,n)}}return n.valid},W=(e,t)=>!i.disabled&&(e&&t&&b(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&&b(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||R.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}`,c=f(a,o);(y.array.has(e)||l(n)||c&&!c._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),l=g(t);b(v,e,l),r?(R.array.next({name:e,values:{...v}}),(L.isDirty||L.dirtyFields)&&i.shouldDirty&&R.state.next({name:e,dirtyFields:_e(d,v),isDirty:W(e,l)})):!n||n._f||o(l)?Q(e,l,i):X(e,l,i),G(e,y)&&R.state.next({...s}),R.values.next({name:C.mount?e:void 0,values:{...v}})},J=async e=>{C.mount=!0;const n=e.target;let o=n.name,l=!0;const h=f(a,o),d=e=>{l=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):c(e),p=e.type===E.BLUR||e.type===E.FOCUS_OUT,m=!we(h._f)&&!i.resolver&&!f(s.errors,o)&&!h._f.deps||Re(p,f(s.touchedFields,o),s.isSubmitted,x,T),_=G(o,y,p);b(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&&R.values.next({name:o,type:e.type,values:{...v}}),m)return L.isValid&&("onBlur"===i.mode&&p?A():p||A()),S&&R.state.next({name:o,..._?{}:C});if(!p&&_&&R.state.next({...s}),i.resolver){const{errors:e}=await F([o]);if(d(g),l){const t=Le(s.errors,a,o),i=Le(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),l&&(r?u=!1:L.isValid&&(u=await B(a,!0)));l&&(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?b(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 R.state.next({...!U(e)||L.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:l,type:c,...h}=r;b(s.errors,e,{...h,...t,ref:n}),R.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);R.values.next({values:{...v}}),R.state.next({...s,...t.keepDirty?{isDirty:W()}:{}}),!t.keepIsValid&&A()},ce=({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 b(a,e,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:e}},name:e,mount:!0,...t}}),y.mount.add(e),s?ce({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:Ee(t.min),max:Ee(t.max),minLength:Ee(t.minLength),maxLength:Ee(t.maxLength),pattern:Ee(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;b(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)b(o,e,void 0);if(R.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)){R.state.next({errors:{}});try{await e(o,n)}catch(l){r=l}}else t&&await t({...s.errors},n),me(),setTimeout(me);if(R.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),l=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)?b(l,t,f(v,t)):Z(t,f(l,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(l),R.array.next({values:{...l}}),R.values.next({values:{...l}})}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=!L.isValid||!!t.keepIsValid||!!t.keepDirtyValues,C.watch=!!i.shouldUnregister,R.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,l=!0)=>{if(r&&n&&!i.disabled){if(C.action=!0,l&&Array.isArray(f(a,e))){const t=n(f(a,e),r.argA,r.argB);o&&b(a,e,t)}if(l&&Array.isArray(f(s.errors,e))){const t=n(f(s.errors,e),r.argA,r.argB);o&&b(s.errors,e,t),Te(s.errors,e)}if(L.touchedFields&&l&&Array.isArray(f(s.touchedFields,e))){const t=n(f(s.touchedFields,e),r.argA,r.argB);o&&b(s.touchedFields,e,t)}L.dirtyFields&&(s.dirtyFields=_e(d,v)),R.state.next({name:e,isDirty:W(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else b(v,e,t)},_updateDisabledField:ce,_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),R.state.next({isLoading:!1})})),_updateFormState:e=>{s={...s,...e}},_disableForm:e=>{_(e)&&(R.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:R,_proxyFormState:L,_setErrors:e=>{s.errors=e,R.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)?R.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),b(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),L.isValid&&A()),R.state.next({...s}))},clearErrors:e=>{e&&M(e).forEach((e=>ae(s.errors,e))),R.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}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/main.390bccbb.js b/ydb/core/viewer/monitoring/static/js/main.390bccbb.js deleted file mode 100644 index b19b95d7ac..0000000000 --- a/ydb/core/viewer/monitoring/static/js/main.390bccbb.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.390bccbb.js.LICENSE.txt */ -(()=>{var e={71661:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(84375),o=n(77506),i=n(60712);const a=(0,o.cn)("ydb-cell-with-popover"),s=100;function l({children:e,className:t,wrapperClassName:n,fullWidth:o,...l}){return(0,i.jsx)("div",{className:a({"full-width":o},n),children:(0,i.jsx)(r.A,{delayClosing:s,delayOpening:s,className:a("popover",{"full-width":o},t),...l,children:e})})}},34271:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,x:()=>s});var r=n(59284),o=n(60712);const i=r.createContext(void 0);function a({children:e,registry:t}){return(0,o.jsx)(i.Provider,{value:t,children:e})}function s(e){const t=r.useContext(i);if(void 0===t)throw new Error("useComponent must be used within ComponentsProvider");return t.get(e)}},1064:(e,t,n)=>{"use strict";n.d(t,{S:()=>v});var r=n(59284),o=n(16332),i=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:o}){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:o}),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)(i.l,{open:e,hasCloseButton:!0,onClose:t,size:"l",children:[(0,d.jsx)(i.l.Header,{caption:(0,u.A)("header")}),(0,d.jsxs)(i.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)(i.l.Footer,{onClickButtonCancel:t,textButtonCancel:(0,u.A)("close")})]})}const m=o.Ay.create((e=>{const t=o.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 o.Ay.show(g,{id:g,...e})}o.Ay.register(g,m)},63636:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(48372);const o=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"}'),i=(0,r.g4)("ydb-connect-to-db",{en:o})},7889:(e,t,n)=>{"use strict";n.d(t,{p:()=>_,q:()=>E});var r,o,i,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"})),o||(o=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"})),i||(i=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:o="m",position:i="center"})=>(0,b.jsx)("div",{className:w({size:o}),children:(0,b.jsxs)("div",{className:w("wrapper",{size:o,position:i}),children:[(0,b.jsx)("div",{className:w("image"),children:e||(0,b.jsx)(h.I,{data:y,width:x[o],height:x[o]})}),(0,b.jsx)("div",{className:w("title",{size:o}),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}},88632:(e,t,n)=>{"use strict";n.d(t,{tH:()=>L,jt:()=>F,lQ:()=>z});var r=n(59284),o=n(41668),i=n(90826);const a=r.createContext(void 0),s=r.createContext(void 0);function l(e){const{size:t,disabled:n,defaultExpanded:o,arrowPosition:l,summary:c,keepMounted:u,onUpdate:d,expanded:f}=e,[p,h]=r.useState((()=>Boolean(o))),m=void 0!==f,g=(0,i.u)(),v=`disclosure${g}`;return r.createElement(a.Provider,{value:{size:t,disabled:n,summary:c,arrowPosition:l,keepMounted:u,expanded:m?f:p,ariaControls:g,ariaLabelledby:v}},r.createElement(s.Provider,{value:()=>{h((e=>!e));d(m?!f:!p)}},e.children))}function c(){const e=r.useContext(a);if(void 0===e)throw new Error("useDisclosureAttributes must be used within DisclosureProvider");return e}var u=n(72630),d=n(6826);const f=(0,n(69220).om)("disclosure"),p="disclosure-summary",h="disclosure-details";function m({children:e}){const t=r.useRef(null),{ariaControls:n,ariaLabelledby:o,keepMounted:i,expanded:a}=c();return r.createElement(u.A,{nodeRef:t,in:a,addEndListener:e=>{var n;return null===(n=t.current)||void 0===n?void 0:n.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!i,unmountOnExit:!i,appear:!0},r.createElement("div",{ref:t,id:n,role:"region","aria-labelledby":o,className:f("content",{visible:a}),"data-qa":h},e))}m.displayName="DisclosureDetails";var g=n(33705),v=n(27629);const y={m:14,l:16,xl:20};function b(){(0,v.m)('[Disclosure] Physical values (left, right) of "arrowPosition" property are deprecated. Use logical values (start, end) instead.')}function w({children:e}){const t=function(){const e=r.useContext(s);if(void 0===e)throw new Error("useToggleDisclosure must be used within DisclosureProvider");return e}(),{ariaControls:n,ariaLabelledby:o,expanded:i,disabled:a}=c(),l={onClick:t,ariaControls:n,id:o,expanded:i,disabled:a};return e(l,r.createElement(x,Object.assign({},l)))}function x({onClick:e,ariaControls:t,id:n,expanded:o,disabled:i}){const{size:a,summary:s,arrowPosition:l}=c();let u=l;return"left"===u&&(b(),u="start"),"right"===u&&(b(),u="end"),r.createElement("button",{type:"button","aria-expanded":o,className:f("trigger",{disabled:i,arrow:u}),"aria-controls":t,id:n,onClick:e,disabled:i,"data-qa":p},r.createElement(g.I,{size:y[a],direction:o?"top":"bottom"}),s)}w.displayName="DisclosureSummary";const _=(0,o.g)(w),E=r.forwardRef((function(e,t){const{size:n="m",disabled:o=!1,defaultExpanded:i=!1,arrowPosition:a="start",summary:s="",className:c,keepMounted:u=!0,children:d,onUpdate:p=()=>{},expanded:h,qa:g}=e,[v,y]=function(e){const t=r.Children.toArray(e);let n,o;const i=[];for(const r of t){if(_(r)){if(n)throw new Error("Only one <Disclosure.Summary> component is allowed");n=r}else i.push(r)}i.length>0&&(o=r.createElement(m,null,i));n||(n=r.createElement(w,null,(e=>r.createElement(x,Object.assign({},e)))));return[n,o]}(d);return r.createElement(l,{disabled:o,defaultExpanded:i,expanded:h,keepMounted:u,size:n,summary:s,arrowPosition:a,onUpdate:p},r.createElement("section",{ref:t,className:f({size:n},c),"data-qa":g},v,y))}));E.Summary=w,E.displayName="Disclosure";var S=n(84476);const k=(0,r.createContext)(null),C={didCatch:!1,error:null};class O extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=C}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(C)}}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 o,i;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===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(C))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=e;if(i){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===o)throw a;s=o}}return(0,r.createElement)(k.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var N=n(77506);var T=n(34271),A=n(78524),I=n(48372);const P=JSON.parse('{"error-title":"Something went wrong","error-description":"We have something broken, but don\'t worry, it won\'t last long","show-details":"Show details","report-problem":"Report a problem","button-reset":"Try again"}'),D=JSON.parse('{"error-title":"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a","error-description":"\u0423 \u043d\u0430\u0441 \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u043d\u0435\u043d\u0430\u0434\u043e\u043b\u0433\u043e","show-details":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438","report-problem":"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435","button-reset":"\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u043e\u0432\u0430"}'),R=(0,I.g4)("ydb-error-boundary",{ru:D,en:P});var j=n(60712);const M=(0,N.cn)("ydb-error-boundary");function L({children:e}){const t=(0,T.x)("ErrorBoundary");return(0,j.jsx)(t,{children:e})}function z({children:e,useRetry:t=!0,onReportProblem:n}){return(0,j.jsx)(O,{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,resetErrorBoundary:r})=>(0,j.jsx)(F,{error:e,useRetry:t,resetErrorBoundary:r,onReportProblem:n}),children:e})}function F({error:e,resetErrorBoundary:t,useRetry:n,onReportProblem:r}){return(0,j.jsxs)("div",{className:M(),children:[(0,j.jsx)(A.v,{name:"error",className:M("illustration")}),(0,j.jsxs)("div",{className:M("content"),children:[(0,j.jsx)("h2",{className:M("error-title"),children:R("error-title")}),(0,j.jsx)("div",{className:M("error-description"),children:R("error-description")}),(0,j.jsx)(E,{summary:R("show-details"),className:M("show-details"),size:"m",children:(0,j.jsx)("pre",{className:M("error-details"),children:e.stack})}),(0,j.jsxs)("div",{className:M("actions"),children:[n&&(0,j.jsx)(S.$,{view:"outlined",onClick:t,children:R("button-reset")}),r&&(0,j.jsx)(S.$,{view:"outlined",onClick:()=>r(e),children:R("report-problem")})]})]})]})}},59109:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(7889),o=n(78524),i=n(31062),a=n(60712);const s=({title:e,description:t,...n})=>(0,a.jsx)(r.p,{image:(0,a.jsx)(o.v,{name:"403"}),title:e||(0,i.A)("403.title"),description:t||(0,i.A)("403.description"),...n})},64689:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(59284),o=n(81288),i=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,o.uP)(n)?null:(0,o.Pq)(n)?(0,u.jsx)(s.O,{title:e,description:t,...f}):n||t?(0,u.jsx)(i.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})}},79553:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(31062),o=n(60712);const i=({error:e,className:t,defaultMessage:n=(0,r.A)("responseError.defaultMessage")})=>{let i="";return e&&"string"===typeof e&&(i=e),e&&"object"===typeof e&&("data"in e&&"string"===typeof e.data?i=e.data:"statusText"in e&&"string"===typeof e.statusText?i=e.statusText:"message"in e&&"string"===typeof e.message&&(i=e.message)),(0,o.jsx)("div",{className:`error ${t}`,children:i||n})}},44508:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o});var r=n(79553)},31062:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(48372);const o=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"}'),i=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:i,en:o})},78524:(e,t,n)=>{"use strict";n.d(t,{v:()=>c});var r=n(59284),o=n(22680),i=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,i.cn)("kv-illustration"),c=({name:e,className:t,...n})=>{const i=(0,o.i)(),[c,u]=r.useState(""),d=s[i]&&s[i][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}},18863:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var r=n(59284),o=n(77506),i=n(5741),a=n(60712);const s=(0,o.cn)("info-viewer"),l=({title:e,info:t,dots:n=!0,size:o,className:l,multilineLabels:c,renderEmptyState:u})=>t&&t.length||!u?(0,a.jsxs)("div",{className:s({size:o},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,i.A)("no-data")]}):(0,a.jsx)(r.Fragment,{children:u({title:e,size:o})})},5741:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(48372);const o=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),i=(0,r.g4)("ydb-components-info-viewer",{en:o})},60073:(e,t,n)=>{"use strict";n.d(t,{Hr:()=>o.H,jl:()=>o.j,z_:()=>r.z});var r=n(18863),o=n(82176)},82176:(e,t,n)=>{"use strict";function r(e,t){var n;return null!==(n=t[e])&&void 0!==n?n:e}function o(e,t,n,r){const o=n[e]||r;return o?o(t):t}function i({values:e,labels:t,defaultValueFormatter:n}){return(i,a)=>({label:r(i,t||{}),value:o(i,a,e||{},n)})}n.d(t,{H:()=>i,j:()=>a});const a=(e,t)=>t?Object.entries(t).map((([t,n])=>e(t,n))).filter((({value:e})=>Boolean(e))):[]},82015:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(52905),o=n(77506),i=n(60712);const a=(0,o.cn)("g-link"),s=({className:e,to:t,onClick:n,...o})=>t?(0,i.jsx)(r.N_,{to:t,onClick:n,className:a({view:"normal"},e),...o}):(0,i.jsx)("span",{className:e,onClick:n,children:o.children})},44294:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.E});var r=n(82015)},25196:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(59284),o=n(112),i=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)(o.A,{})]});return n?(0,l.jsx)(i.N,{href:t,target:"_blank",className:c(null,a),children:u}):(0,l.jsx)(s.E,{to:t,className:c(null,a),children:u})}},47334:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(74417),o=n(77506),i=n(66781),a=n(60712);const s=(0,o.cn)("ydb-loader"),l=({size:e="m",delay:t=600,className:n})=>{const[o]=(0,i.y)(t);return o?(0,a.jsx)("div",{className:s(null,n),children:(0,a.jsx)(r.a,{size:e})}):null}},98167:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});n(59284);var r=n(47334),o=n(60712);function i({loading:e,size:t="m",className:n,children:i}){return e?(0,o.jsx)(r.a,{size:t,className:n}):i}},80176:(e,t,n)=>{"use strict";n.d(t,{p:()=>p,HG:()=>b,nL:()=>v,Qz:()=>y});var r=n(40336),o=n(78668),i=n(77506),a=n(90182),s=n(25196),l=n(48372);const c=JSON.parse('{"field_rack":"Rack","field_host":"Host","context_developer-ui":"Developer UI","field_database":"Database","field_roles":"Roles"}'),u=(0,l.g4)("ydb-node-name-tooltip",{en:c});var d=n(60712);const f=(0,i.cn)("ydb-node-endpoints-tooltip-content"),p=({data:e,nodeHref:t})=>{var n,i;const l=(0,a.N4)(o._5),c=[];return null!==e&&void 0!==e&&null!==(n=e.Roles)&&void 0!==n&&n.length&&c.push({name:u("field_roles"),children:e.Roles.join(", "),key:"Roles"}),null!==e&&void 0!==e&&null!==(i=e.Tenants)&&void 0!==i&&i[0]&&c.push({name:u("field_database"),children:e.Tenants[0],key:"Database"}),null!==e&&void 0!==e&&e.Host&&c.push({name:u("field_host"),children:e.Host,copyText:e.Host,key:"Host"}),null!==e&&void 0!==e&&e.Rack&&c.push({name:u("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&&c.push({name:e,children:t,key:e})})),l&&t&&c.push({name:"Links",children:(0,d.jsx)(s.K,{title:u("context_developer-ui"),url:t}),key:"developerUi"}),(0,d.jsx)("div",{className:f("list-container"),children:(0,d.jsx)(r.u,{responsive:!0,children:c.map((({children:e,key:t,...n})=>(0,d.jsx)(r.u.Item,{...n,children:(0,d.jsx)("div",{className:f("definition"),children:e})},t)))})})};var h=n(60073),m=n(41826);const g=(0,h.Hr)({values:{ChangeTime:e=>(0,d.jsx)(m.H,{ChangeTime:e})},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),v=({data:e={},className:t})=>{const{TabletId:n,NodeId:r,State:o,Type:i,ChangeTime:a,Generation:s}=e,l=(0,h.jl)(g,{TabletId:n,NodeId:r,State:o,Type:i,ChangeTime:a,Generation:s});return(0,d.jsx)(h.z_,{className:t,info:l,dots:!1,size:"s"})},y=(0,h.Hr)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),b=({data:e={},className:t})=>{const n=(0,h.jl)(y,e);return(0,d.jsx)(h.z_,{className:t,info:n,dots:!1,size:"s"})}},41826:(e,t,n)=>{"use strict";n.d(t,{p:()=>d,H:()=>f});n(59284);var r=n(40336),o=n(76086),i=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,i.wI)(t),s=(0,u.jsx)(r.u.Item,{name:c("disconnect-time"),children:(0,i.r6)(t,{withTimeZone:!0})},"DisconnectTime")):e&&(n=(0,i.H7)(e),s=(0,u.jsx)(r.u.Item,{name:c("start-time"),children:(0,i.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}):o.Pd}function f({ChangeTime:e}){let t;return e&&(t=(0,i.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,i.r6)(e,{withTimeZone:!0})},"changeTime")}),children:t}):o.Pd}},71294:(e,t,n)=>{"use strict";n.d(t,{B:()=>f,s:()=>d});var r=n(59284),o=n(67087),i=n(39567),a=n(58351),s=n(77630);const l=(e=a.Hs,t)=>({getNodeRef:(n={})=>(0,s.Vk)(n,null!==e&&void 0!==e?e:"",t)});var c=n(76086),u=n(90182);function d(){const[e]=(0,o.useQueryParam)("clusterName",o.StringParam),{data:t}=i.ub.useGetClustersListQuery(void 0),n=r.useMemo((()=>(t||[]).find((t=>t.name===e))),[t,e]),{solomon:a,balancer:s,versions:l}=n||{};return{monitoring:a,balancer:s,versions:l,...f({balancer:s})}}function f({balancer:e}){const[t]=(0,u.iK)(c.s2);return{additionalNodesProps:l(e,t),useClusterBalancerAsBackend:t}}},87842:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>o,a:()=>f,bn:()=>u,eC:()=>d});var r=n(92459);const o={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions",tablets:"tablets"},i={id:o.overview,title:"Overview"},a={id:o.tenants,title:"Databases"},s={id:o.nodes,title:"Nodes"},l={id:o.storage,title:"Storage"},c={id:o.versions,title:"Versions"},u=[i,a,s,l,{id:o.tablets,title:"Tablets"},c];function d(e){return Object.values(o).includes(e)}const f=(e,t={})=>(0,r.KY)(r.Ay.cluster,e?{activeTab:e}:void 0,t)},29819:(e,t,n)=>{"use strict";n.d(t,{Gi:()=>u,O3:()=>i,mX:()=>l,q7:()=>a,qn:()=>c,vI:()=>d,wS:()=>s});var r=n(67087),o=n(92459);const i="storage",a="tablets",s="overview",l="structure",c=[{id:s,name:"Overview"},{id:i,name:"Storage"},{id:l,name:"Structure"},{id:a,name:"Tablets"}],u={database:r.StringParam};function d(e,t={},n=s){return(0,o.KY)(o.Ay.node,{id:e,activeTab:n},t)}},54309:(e,t,n)=>{"use strict";n.d(t,{YL:()=>l,nb:()=>s,vh:()=>i,x$:()=>a});var r=n(92459),o=n(52531);const i={summaryTab:"summaryTab",queryTab:"queryTab",diagnosticsTab:"diagnosticsTab",metricsTab:"metricsTab"},a=[{id:o.ml.overview,title:"Overview"},{id:o.ml.acl,title:"ACL"}],s=[{id:o.ml.schema,title:"Schema"}],l=e=>(0,r.KY)(r.Ay.tenant,void 0,e)},11310:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASIDE_HEADER_COMPACT_KEY:()=>je.LQ,AUTOCOMPLETE_ON_ENTER:()=>je.IO,AUTO_REFRESH_INTERVAL:()=>je.av,AppSlots:()=>r,AsideNavigation:()=>wi,BINARY_DATA_IN_PLAIN_TEXT_DISPLAY:()=>je.RY,CASE_SENSITIVE_JSON_SEARCH:()=>je.iD,CLUSTER_DEFAULT_TITLE:()=>je.QM,DAY_IN_SECONDS:()=>je.tt,DEFAULT_CLUSTER_TAB_KEY:()=>je.fY,DEFAULT_DANGER_THRESHOLD:()=>je.Ed,DEFAULT_IS_QUERY_RESULT_COLLAPSED:()=>je.GV,DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED:()=>je.hh,DEFAULT_IS_TENANT_SUMMARY_COLLAPSED:()=>je.jX,DEFAULT_SIZE_RESULT_PANE_KEY:()=>je.l_,DEFAULT_SIZE_TENANT_KEY:()=>je.jQ,DEFAULT_SIZE_TENANT_SUMMARY_KEY:()=>je.ED,DEFAULT_TABLE_SETTINGS:()=>je.N3,DEFAULT_WARNING_THRESHOLD:()=>je.Hh,DEVELOPER_UI_TITLE:()=>je.T5,DEV_ENABLE_TRACING_FOR_ALL_REQUESTS:()=>je.U0,EMPTY_DATA_PLACEHOLDER:()=>je.Pd,ENABLE_AUTOCOMPLETE:()=>je.LK,ENABLE_NETWORK_TABLE_KEY:()=>je.g5,ErrorBoundary:()=>s.lQ,ErrorBoundaryFallback:()=>s.jt,GIGABYTE:()=>je.J7,HOUR_IN_SECONDS:()=>je.Jg,INVERTED_DISKS_KEY:()=>je.TJ,IS_HOTKEYS_HELP_HIDDEN_KEY:()=>je.Gj,KILOBYTE:()=>je.eh,LANGUAGE_KEY:()=>je.jS,LAST_QUERY_EXECUTION_SETTINGS_KEY:()=>je.fr,LAST_USED_QUERY_ACTION_KEY:()=>je.zk,LOAD_AVERAGE_TIME_INTERVALS:()=>je.GT,Lang:()=>pe.JA,MEGABYTE:()=>je.pg,MINUTE_IN_SECONDS:()=>je.r0,MS_IN_NANOSECONDS:()=>je.zz,MultiClusterApp:()=>Ui,PARTITIONS_HIDDEN_COLUMNS_KEY:()=>je.bs,QUERIES_HISTORY_KEY:()=>je.MB,QUERY_EXECUTION_SETTINGS_KEY:()=>je.c4,QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY:()=>je.YQ,SAVED_QUERIES_KEY:()=>je.ld,SECOND_IN_MS:()=>je.KF,SHOW_DOMAIN_DATABASE_KEY:()=>je.Xm,SingleClusterApp:()=>Si,TENANT_DEFAULT_TITLE:()=>je.oK,TENANT_INITIAL_PAGE_KEY:()=>je.Mt,TENANT_OVERVIEW_TABLES_LIMIT:()=>je.Nz,TENANT_OVERVIEW_TABLES_SETTINGS:()=>je.jp,TERABYTE:()=>je.Db,THEME_KEY:()=>je.k4,USE_CLUSTER_BALANCER_AS_BACKEND_KEY:()=>je.s2,USE_SHOW_PLAN_SVG_KEY:()=>je.lr,WEEK_IN_SECONDS:()=>je.Du,YdbEmbeddedAPI:()=>$i.i,appRoutes:()=>de.Ay,cn:()=>fe.cn,componentsRegistry:()=>xi,configureStore:()=>qi.U1,createApi:()=>$i.x,getMonitoringClusterLink:()=>Ci,getMonitoringLink:()=>ki,getSettingValue:()=>Hi.CN,getTabletLabel:()=>je.bk,getUserSettings:()=>rt,i18n:()=>pe.Ru,parseMonitoringData:()=>Oi,registerKeysets:()=>pe.g4,reportWebVitals:()=>Vi.A,rootReducer:()=>qi.d$,setSettingValue:()=>Hi.gc,settingsManager:()=>hi.f,toaster:()=>Wi.X,useSetting:()=>u.iK,useTypedSelector:()=>u.N4});var r={};n.r(r),n.d(r,{ClusterSlot:()=>yn,ClustersSlot:()=>vn,NodeSlot:()=>wn,PDiskPageSlot:()=>xn,RedirectSlot:()=>Cn,RoutesSlot:()=>kn,StorageGroupSlot:()=>En,TabletSlot:()=>Sn,TenantSlot:()=>bn,VDiskPageSlot:()=>_n});var o=n(59284),i=n(61750),a=n(97434),s=n(88632),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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}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],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var b=n(49034),w=n(72837),x=n(81240),_=n(98089),E=n(84476),S={button_close:"Close"},k={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var C=(0,w.N)({en:S,ru:k},`${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=C("button_close"),onClose:i})=>o.createElement("div",{className:O({separator:n})},o.createElement(_.E,{className:O("text"),as:"h3",variant:"subheader-3"},e),i&&o.createElement(E.$,{onClick:i,view:"flat",size:"l",extraProps:{"aria-label":r}},o.createElement(f.I,{data:x.A,size:t})));function T(e){const t=o.useRef();return o.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),o.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=[],i={};let a=!1,s=!1;return o.Children.forEach(e,(e=>{var l,c;if(o.isValidElement(e))if(e.type===o.Fragment){const{menu:o,pages:a}=P(e.props.children,t,n);r.push(...o),Object.assign(i,a)}else if(e.props.groupTitle){0;const o=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;a=!0;const{menu:s,pages:c}=P(e.props.children,o,n);0,r.push({groupTitle:e.props.groupTitle,items:s}),Object.assign(i,c)}else{s=!0;const o=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,i[o]=D(e.props.children,n),i[o].id=o,r.push({id:o,title:e.props.title,icon:e.props.icon,withBadge:i[o].withBadge,disabled:i[o].hidden})}})),{menu:r,pages:i}}function D(e,t){const n={id:"",sections:[],hidden:!0};return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const{sections:r,withBadge:o,hidden:i}=D(e.props.children,t);n.sections.push(...r),n.withBadge=o||n.withBadge,n.hidden=i&&n.hidden}else{const{withBadge:r,showTitle:o=!0}=e.props,{items:i,hidden:a}=R(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:i,hidden:a,showTitle:o}))}})),n}function R(e,t){let n=!0;const r=[];return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const o=R(e.props.children,t);r.push(...o.items),n=n&&o.hidden}else{const o=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});r.push(o),n=n&&o.hidden}})),{items:r,hidden:n}}N.displayName="Title";const j=o.createContext({});function M(e,t){const n=o.useRef(null);return o.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=o.forwardRef((function({items:e,onChange:t,activeItemId:n},r){const[i,a]=o.useState(),s=o.useRef(null),l=T(t),c=function(e){const t=o.useRef(e);return t.current=e,o.useCallback((()=>t.current),[])}(i);return o.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]),o.createElement("div",{ref:s,className:F()},e.map((e=>"groupTitle"in e?o.createElement("div",{key:e.groupTitle,className:F("group")},o.createElement("span",{className:F("group-heading")},e.groupTitle),e.items.map((e=>U(e,t,n,i)))):U(e,t,n,i))))}));function U(e,t,n,r){return o.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?o.createElement(f.I,Object.assign({size:16},e.icon,{className:F("item-icon")})):void 0,o.createElement("span",null,e.title))}function q(e,t,n){var r;const o=e.querySelectorAll(`.${F("item")}:not(.${F("item")}_disabled)`);if(0===o.length)return;let i=n>0?-1:0;return t&&(i=Array.prototype.findIndex.call(o,(e=>e.getAttribute("data-id")===t))),i=(o.length+i+n)%o.length,null!==(r=o[i].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 i=o.useRef(null),a=o.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:o,withBadge:i}=e;t.push({id:n,title:r,disabled:o,className:$("item",{badge:i})})}})),t}),[e]);return o.createElement("div",{ref:i,onTouchMove:e=>{e.stopPropagation()}},o.createElement(p.t,{items:a,className:$(null,r),size:"l",activeTab:n,onSelectTab:t}))};var W={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search"},V={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:W,ru:V},`${v.N}Settings`);const G=(0,v.b)("settings-search");function Y({className:e,initialValue:t,onChange:n,debounce:r=200,inputRef:i,inputSize:a,placeholder:s,autoFocus:l=!0}){const[c,u]=o.useState(null!==t&&void 0!==t?t:""),d=T((0,b.d)(n,r)),f=T((e=>{u(e),d(e)}));return o.createElement("div",{className:G(null,e)},o.createElement(h.k,{value:c,controlRef:i,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 Z=(0,v.b)("settings"),Q=o.createContext({}),J=()=>o.useContext(Q);function X(e){var{loading:t,renderLoading:n,children:r,view:i="normal",renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l=!0}=e,c=d(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?o.createElement("div",{className:Z({loading:!0,view:i})},"function"===typeof n?n():o.createElement(m.a,{className:Z("loader"),size:"m"})):o.createElement(Q.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l}},o.createElement(te,Object.assign({view:i},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:i,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]=o.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,k]=o.useState(E||(e&&_.includes(e)?e:void 0)),C=o.useRef(null),O=o.useRef(null),T="mobile"===c;o.useEffect((()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()}),[v]),o.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=>{k((t=>(t!==e&&(null===u||void 0===u||u(e)),e)))};o.useEffect((()=>{A!==S&&P(A)})),o.useEffect((()=>{E&&k(E)}),[E]),o.useEffect((()=>{var e;(null===(e=x.selectedRef)||void 0===e?void 0:e.current)&&x.selectedRef.current.scrollIntoView()}),[x.selectedRef]);const D=(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 o.createElement("div",{key:t.title,className:Z("section",{selected:n,"only-child":t.onlyChild}),ref:n?x.selectedRef:void 0},t.showTitle&&o.createElement("h3",{className:Z("section-heading")},h?o.createElement(g.s,{gap:2,alignItems:"center"},t.title,o.createElement("div",{className:Z("section-right-adornment",{hidden:m})},h(t))):t.title),t.header&&(T?o.createElement("div",{className:Z("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(({title:e,element:t})=>o.createElement("div",{key:e,className:Z("section-item")},o.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:v&&e?ne(e,v):e}))))(e))))};return o.createElement(L,{value:x},o.createElement("div",{className:Z({view:c})},T?o.createElement(o.Fragment,null,o.createElement(Y,{inputRef:C,className:Z("search"),initialValue:t,onChange:y,autoFocus:!1,inputSize:"xl"}),o.createElement(H,{items:b,onChange:P,activeItemId:A,className:Z("tabs")})):o.createElement("div",{className:Z("menu"),onClick:()=>{C.current&&C.current.focus()},onKeyDown:e=>{O.current&&O.current.handleKeyDown(e)&&e.preventDefault()}},o.createElement(N,null,a),o.createElement(Y,{inputRef:C,className:Z("search"),initialValue:t,onChange:y,placeholder:s,autoFocus:!0}),o.createElement(B,{ref:O,items:b,onChange:P,activeItemId:A})),o.createElement("div",{className:Z("page")},(e=>{if(!e)return"function"===typeof i?i():o.createElement("div",{className:Z("not-found")},l);const t=w[e].sections.filter((e=>!e.hidden));return o.createElement(o.Fragment,null,!T&&o.createElement(N,{hasSeparator:!0,onClose:d},ee(b,e)),o.createElement("div",{className:Z("content")},t.map((t=>D(e,t)))))})(A))))}function ne(e,t){let n=e.slice(0);const r=[],i=A(t).split(" ").filter(Boolean);let a=0;for(const s of i){const e=new RegExp(s,"ig").exec(n);if(e){const t=e[0],i=e.index;i>0&&r.push(n.slice(0,i)),r.push(o.createElement("strong",{key:a++,className:Z("found")},t)),n=n.slice(i+t.length)}}return n&&r.push(n),r}X.Group=function({children:e}){return o.createElement(o.Fragment,null,e)},X.Page=function({children:e}){return o.createElement(o.Fragment,null,e)},X.Section=function({children:e}){return o.createElement(o.Fragment,null,e)},X.Item=function(e){const{id:t,labelId:n,highlightedTitle:r,children:i,align:a="center",withBadge:s,renderTitleComponent:l=z,mode:c,description:u}=e,d=o.useContext(j),f=d.setting&&d.setting.id===t,{renderRightAdornment:p,showRightAdornmentOnHover:h}=J(),m=o.createElement("span",{className:Z("item-title",{badge:s})},l(r));return o.createElement("div",{className:Z("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},o.createElement("label",{className:Z("item-heading"),id:n},p?o.createElement(g.s,{className:Z("item-title-wrapper"),gap:3},m,o.createElement("div",{className:Z("item-right-adornment",{hidden:h})},p(e))):m,u?o.createElement("span",{className:Z("item-description")},u):null),o.createElement("div",{className:Z("item-content")},i))};var re=n(85589),oe=n(44433),ie=n(60712);const ae=({type:e="switch",settingKey:t,options:n,defaultValue:r,onValueUpdate:o})=>{const[i,a]=(0,u.iK)(t,r),s=e=>{a(e),null===o||void 0===o||o()};switch(e){case"switch":return(0,ie.jsx)(re.d,{checked:Boolean(i),onUpdate:s});case"radio":return n?(0,ie.jsx)(oe.a,{value:String(i),onUpdate:s,children:n.map((({value:e,content:t})=>(0,ie.jsx)(oe.a.Option,{value:e,children:t},e)))}):null;default:return null}},se=({settings:e})=>(0,ie.jsx)(X,{children:e.map((e=>{const{id:t,title:n,icon:r,sections:o=[],showTitle:i}=e;return(0,ie.jsx)(X.Page,{id:t,title:n,icon:r,children:o.map((e=>{const{title:n,settings:r=[]}=e;return(0,ie.jsx)(X.Section,{title:n,showTitle:null===i||void 0===i||i,children:r.map((e=>{if("info"===e.type)return(0,ie.jsx)(X.Item,{...e,children:e.content},e.title);const{description:t,...n}=e;return(0,ie.jsxs)(X.Item,{align:"top",...n,children:[(0,ie.jsx)(ae,{...e}),(0,ie.jsx)(_.E,{color:"secondary",as:"div",children:t})]},e.title)}))},t)}))},t)}))}),le=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:"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"})),ce=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:"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"}));var ue=n(10755),de=n(92459),fe=n(77506),pe=n(48372);const he=JSON.parse('{"navigation-item.documentation":"Documentation","navigation-item.settings":"Settings","navigation-item.account":"Account","account.user":"YDB User","account.login":"Login","account.logout":"Logout"}'),me=(0,pe.g4)("ydb-aside-navigation",{en:he}),ge=(0,fe.cn)("kv-ydb-internal-user");function ve({login:e}){const[t]=c.D_.useLogoutMutation(),n=(0,ue.W6)();return(0,ie.jsxs)("div",{className:ge(),children:[(0,ie.jsxs)("div",{className:ge("user-info-wrapper"),children:[(0,ie.jsx)("div",{className:ge("ydb-internal-user-title"),children:me("account.user")}),e&&(0,ie.jsx)("div",{className:ge("username"),children:e})]}),e?(0,ie.jsx)(E.$,{view:"flat-secondary",title:me("account.logout"),onClick:()=>{t(void 0)},children:(0,ie.jsx)(f.I,{data:le})}):(0,ie.jsx)(E.$,{view:"flat-secondary",title:me("account.login"),onClick:()=>{n.push((0,de.KY)(de.Ay.auth,void 0,{returnUrl:encodeURIComponent(location.href)}))},children:(0,ie.jsx)(f.I,{data:ce})})]})}function ye({children:e,userSettings:t}){const n=(0,l.x)("AsideNavigation"),r=(0,u.N4)(c.mB);return(0,ie.jsx)(n,{settings:(0,ie.jsx)(se,{settings:t}),ydbInternalUser:(0,ie.jsx)(ve,{login:r}),user:r?{login:r}:void 0,content:e})}const be={top:0,right:0,bottom:0,left:0};var we=n(39238),xe=n(49818),_e=n(80176);const Ee=(0,fe.cn)("node-tootltip"),Se=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Ee(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ee("label"),children:"ID"}),(0,ie.jsx)("td",{className:Ee("value"),children:t.nodeId||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ee("label"),children:"Rack"}),(0,ie.jsx)("td",{className:Ee("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ee("label"),children:"Net"}),(0,ie.jsx)("td",{className:Ee("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},ke=(0,fe.cn)("histogram-tooltip"),Ce=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:ke(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"Count"}),(0,ie.jsx)("td",{className:ke("value"),children:t.count||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"From"}),(0,ie.jsx)("td",{className:ke("value"),children:t.leftBound||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"To"}),(0,ie.jsx)("td",{className:ke("value"),children:t.rightBound||"?"})]})]})})})},Oe=(0,fe.cn)("cell-tooltip"),Ne={tablet:e=>(0,ie.jsx)(_e.nL,{data:e}),node:e=>(0,ie.jsx)(Se,{data:e}),histogram:e=>(0,ie.jsx)(Ce,{data:e}),cell:e=>(0,ie.jsx)("div",{className:Oe(),children:e})};const Te=(0,a.Ng)((e=>{const{toolTipVisible:t,currentHoveredRef:n,data:r,templateType:o,additionalData:i,positions:a}=e.tooltip,{popupClassName:s}=i||{};return{toolTipVisible:t,currentHoveredRef:n,data:r,template:Ne[o],additionalData:i,positions:a,popupClassName:s}}),{hideTooltip:xe.w7})((function(e){var t,n;const r=function(e={}){const{rect:t,contextElement:n}=e,r=o.useRef(be),i=o.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:o}=r.current;return{top:e,right:t,bottom:n,left:o,width:t-o,height:n-e}}});if(i.current.contextElement=n,t){const{top:e=0,left:n=0,right:o=n,bottom:i=e}=t;r.current={top:e,right:o,bottom:i,left:n}}else r.current=be;return i}({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}}),i=o.useCallback((()=>{const{hideTooltip:t,toolTipVisible:n}=e;n&&setTimeout((()=>t()),500)}),[e]);o.useEffect((()=>(window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i)})),[i]);const{className:a="",toolTipVisible:s,currentHoveredRef:l,data:c,additionalData:u,positions:d}=e;return(0,ie.jsx)("div",{className:`redux-tooltip ${a}`,children:d?((t,n,i,a)=>{const{template:s,popupClassName:l,hideTooltip:c}=e;return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(we.z,{open:t,placement:["top","bottom","left","right"],contentClassName:l,anchorRef:r,onOutsideClick:c,children:i&&s(i,a)})})})(s,0,c,u):((t,n,r,o)=>{const{template:i,popupClassName:a,hideTooltip:s}=e;return(0,ie.jsx)(we.z,{open:t,anchorRef:{current:n},hasArrow:!0,placement:["top","bottom","left","right"],className:a,onOutsideClick:s,children:r&&i(r,o)})})(s,l,c,u)})})),Ae=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",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"})),Ie=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:"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"})),Pe=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:"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 De=n(43937),Re=n(90754),je=n(76086);const Me=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.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"}'),Le=(0,pe.g4)("ydb-user-settings",{en:Me}),ze=[{value:"system",content:Le("settings.theme.option-system")},{value:"light",content:Le("settings.theme.option-light")},{value:"dark",content:Le("settings.theme.option-dark")}],Fe={settingKey:je.k4,title:Le("settings.theme.title"),type:"radio",options:ze},Be=(pe.JA.Ru,Le("settings.language.option-russian"),pe.JA.En,Le("settings.language.option-english"),je.jS,Le("settings.language.title"),pe.oK,{settingKey:je.RY,title:Le("settings.binaryDataInPlainTextDisplay.title")}),Ue={settingKey:je.TJ,title:Le("settings.invertedDisks.title")},qe={settingKey:je.g5,title:Le("settings.enableNetworkTable.title")},$e={settingKey:je.lr,title:Le("settings.useShowPlanToSvg.title"),description:Le("settings.useShowPlanToSvg.description")},He={settingKey:je.Xm,title:Le("settings.showDomainDatabase.title")},We={settingKey:je.s2,title:Le("settings.useClusterBalancerAsBackend.title"),description:Le("settings.useClusterBalancerAsBackend.description")},Ve={settingKey:je.LK,title:Le("settings.editor.autocomplete.title"),description:Le("settings.editor.autocomplete.description")},Ke={settingKey:je.IO,title:Le("settings.editor.autocomplete-on-enter.title"),description:Le("settings.editor.autocomplete-on-enter.description")},Ge={title:Le("settings.about.interfaceVersionInfoField.title"),type:"info",content:"8.7.0"},Ye={id:"appearanceSection",title:Le("section.appearance"),settings:[Fe,Ue,Be,He]},Ze={id:"experimentsSection",title:Le("section.experiments"),settings:[qe,$e]},Qe={id:"devSettingsSection",title:Le("section.dev-setting"),settings:[Ve,Ke]},Je={id:"aboutSettingsSection",title:Le("section.about"),settings:[Ge]},Xe={id:"generalPage",title:Le("page.general"),icon:{data:Ae,height:14,width:14},sections:[Ye],showTitle:!1},et={id:"experimentsPage",title:Le("page.experiments"),icon:{data:Ie},sections:[Ze],showTitle:!1},tt={id:"editorPage",title:Le("page.editor"),icon:{data:Pe},sections:[Qe]},nt={id:"aboutPage",title:Le("page.about"),icon:{data:De.A},sections:[Je],showTitle:!1};function rt({singleClusterMode:e}){const t=e?et:(0,Re.jM)(et,(e=>{e.sections[0].settings.push(We)}));return[Xe,tt,t,nt]}var ot=n(64689),it=n(98167);function at(e="unknown"){const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function st(e){return"function"===typeof e&&"__slotName"in e}class lt{constructor(e){this.children=null,this.slots=void 0;const t=[];this.slots=new Map,o.Children.forEach(e,(e=>{if(n=e,o.isValidElement(n)&&st(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(!st(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var ct=n(67028),ut=n(24600),dt=n(28232),ft=n(99006);const pt=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:"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"})),ht=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:"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 mt,gt,vt=n(67884);function yt(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 bt(){return bt=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},bt.apply(null,arguments)}const wt=function(e){return o.createElement("svg",bt({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),mt||(mt=o.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"})),gt||(gt=o.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"})))},xt=(0,fe.cn)("authentication");const _t=function({closable:e=!1}){const t=(0,ue.W6)(),n=(0,ue.zy)(),[r,{isLoading:i}]=c.D_.useAuthenticateMutation(void 0),{returnUrl:a}=(0,de.mA)(n),[s,l]=o.useState(""),[u,d]=o.useState(""),[p,m]=o.useState(""),[g,v]=o.useState(""),[y,b]=o.useState(!1),w=()=>{r({user:s,password:u}).unwrap().then((()=>{if(a){const e=decodeURIComponent(a.toString()),n=new URL(e),r=n.pathname+n.search;t.replace(r)}})).catch((e=>{(function(e){return yt(e)&&e.data.error.includes("user")})(e)&&m(e.data.error),function(e){return yt(e)&&e.data.error.includes("password")}(e)&&v(e.data.error)}))},_=e=>{13===e.keyCode&&w()};return(0,ie.jsxs)("section",{className:xt(),children:[(0,ie.jsxs)("form",{className:xt("form-wrapper"),children:[(0,ie.jsxs)("div",{className:xt("header"),children:[(0,ie.jsxs)("div",{className:xt("logo"),children:[(0,ie.jsx)(f.I,{data:wt,size:24}),"YDB"]}),(0,ie.jsx)(vt.N,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,ie.jsx)("h2",{className:xt("title"),children:"Sign in"}),(0,ie.jsx)("div",{className:xt("field-wrapper"),children:(0,ie.jsx)(h.k,{value:s,onUpdate:e=>{l(e),m("")},placeholder:"Username",error:p,onKeyDown:_,size:"l",autoFocus:!0})}),(0,ie.jsxs)("div",{className:xt("field-wrapper"),children:[(0,ie.jsx)(h.k,{value:u,onUpdate:e=>{d(e),v("")},type:y?"text":"password",placeholder:"Password",error:g,onKeyDown:_,size:"l"}),(0,ie.jsx)(E.$,{onClick:()=>{b((e=>!e))},size:"l",className:xt("show-password-button"),children:(0,ie.jsx)(f.I,{data:y?pt:ht,size:16})})]}),(0,ie.jsx)(E.$,{view:"action",onClick:w,width:"max",size:"l",disabled:Boolean(!s||p||g),loading:i,className:xt("button-sign-in"),children:"Sign in"})]}),e&&t.length>1&&(0,ie.jsx)(E.$,{onClick:()=>{t.go(-1)},className:xt("close"),children:(0,ie.jsx)(f.I,{data:x.A,size:24})})]})};var Et=n(87842),St=n(49917),kt=n(112),Ct=n(69220);const Ot=(0,Ct.om)("divider"),Nt=o.forwardRef((function(e,t){const{orientation:n="horizontal",className:r,style:i,qa:a,children:s,align:l="start"}=e;return o.createElement("div",{className:Ot({orientation:n,align:l},r),ref:t,style:i,"data-qa":a,role:"separator","aria-orientation":"vertical"===n?"vertical":void 0},s)}));var Tt=n(61758),At=n.n(Tt);const It=(0,Ct.om)("breadcrumbs");function Pt(e){return o.createElement("button",Object.assign({},e,{type:"button",className:It("switcher",{more:!0})}))}const Dt=(0,Ct.om)("breadcrumbs");const Rt=o.memo((function({item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r,renderItem:i}){const a=r?r(e,t,n):e.text;if(i)return i({item:e,children:a,isCurrent:t,isPrevCurrent:n});const s=e.title||e.text;return n||!t?void 0!==e.href?o.createElement(vt.N,{key:e.text,view:"secondary",href:e.href,title:s,onClick:e.action,className:Dt("item",{"prev-current":n})},a):o.createElement(Pt,{key:e.text,title:s,onClick:e.action},a):o.createElement("div",{title:s,className:Dt("item",{current:!0})},a)}));Rt.displayName="Breadcrumbs.Item";var jt=n(40569);const Mt=JSON.parse('{"label_more":"Show more"}'),Lt=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),zt=(0,w.N)({en:Mt,ru:Lt},"Breadcrumbs"),Ft=(0,Ct.om)("breadcrumbs");function Bt({popupStyle:e,popupPlacement:t,items:n}){return o.createElement(jt.r,{items:n,popupProps:{className:Ft("popup",{staircase:"staircase"===e}),placement:t},renderSwitcher:({onClick:e})=>o.createElement(Pt,{title:zt("label_more"),onClick:e},"...")})}Bt.displayName="Breadcrumbs.More";const Ut=(0,Ct.om)("breadcrumbs");function qt({renderItemDivider:e}){return o.createElement("div",{"aria-hidden":!0,className:Ut("divider")},e?e():"/")}qt.displayName="Breadcrumbs.Separator";const $t=(0,Ct.om)("breadcrumbs");var Ht,Wt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Ht||(Ht={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Wt||(Wt={}));class Vt extends o.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?Vt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Vt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=At()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=o.createRef(),this.state=Vt.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 o.createElement("div",{className:$t({calculated:n?"yes":"no"},e),"data-qa":t},o.createElement("div",{className:$t("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return o.createElement(Rt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return o.createElement(qt,{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,i=t===n.length-2;return o.createElement(o.Fragment,{key:t},this.renderItemDivider(),this.renderItem(e,r,i))}))}renderMoreItem(){const{hiddenItems:e}=this.state;if(0===e.length)return null;const{popupStyle:t,popupPlacement:n,renderItemDivider:r}=this.props;return o.createElement(o.Fragment,null,o.createElement(qt,{renderItemDivider:r}),o.createElement(Bt,{items:e,popupPlacement:n,popupStyle:t}))}recalculate(){var e;const{items:t,lastDisplayedItemsCount:n,firstDisplayedItemsCount:r}=this.props;let o=(null===(e=this.container.current)||void 0===e?void 0:e.offsetWidth)||0;if(this.container.current&&o>0){o+=4;const e=Array.from(this.container.current.querySelectorAll(`.${$t("divider")}`)),i=[...Array.from(this.container.current.querySelectorAll(`.${$t("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${$t("item")}`))],a=i.map(((e,t)=>e.scrollWidth+(t===i.length-1?4:8))),s=e.map((e=>e.offsetWidth));let l=a.reduce(((e,t,r,o)=>{const i=o.length-1===r,a=n===Ht.Two&&o.length-2===r;return i||a?e+Math.min(t,200):e+t}),0)+s.reduce(((e,t)=>e+t),0),c=1;for(;l>o&&c<i.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))})}}}Vt.defaultProps={popupPlacement:["bottom","top"]};var Kt=n(1064),Gt=n(44294),Yt=n(67157),Zt=n(31684);const Qt=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:"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"})),Jt=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:"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"})),Xt=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:"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"})),en=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:"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"})),tn=(0,fe.cn)("tablet-icon"),nn=({text:e,className:t})=>(0,ie.jsx)("div",{className:tn(null,t),children:(0,ie.jsx)("div",{className:tn("type"),children:e||"T"})});var rn=n(52531),on=n(29819),an=n(54309);const sn=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"}'),ln=(0,pe.g4)("ydb-header",{en:sn}),cn=(e,t={})=>{const{clusterName:n,clusterTab:r}=e;return[{text:n||je.QM,link:(0,Et.a)(r,t),icon:(0,ie.jsx)(Qt,{})}]},un=(e,t={})=>{const{tenantName:n}=e,r=cn(e,t),o=n?(e=>e.startsWith("/")?e.slice(1):e)(n):ln("breadcrumbs.tenant"),i={text:o,link:n?(0,an.YL)({...t,database:n}):void 0,icon:(0,ie.jsx)(Jt,{})};return r.push(i),r},dn=(e,t={})=>{const{nodeId:n,nodeRole:r,nodeActiveTab:o,tenantName:i}=e,a=(s=o===on.q7?"tablets":"nodes",{[rn.Dt]:rn.Dg.diagnostics,[an.vh.diagnosticsTab]:rn.iJ[s]});var s;const l=i?un(e,{...t,...a}):cn(e,t);let c=ln("breadcrumbs.node");n&&(c+=` ${n}`);const u={text:c,link:n?(0,on.vI)(n,{database:i,...t},o):void 0,icon:fn(r)};return l.push(u),l};function fn(e){switch(e){case"Storage":return(0,ie.jsx)(Xt,{});case"Compute":return(0,ie.jsx)(en,{});default:return}}const pn=(e,t={})=>{const{nodeId:n,pDiskId:r,nodeRole:o}=e,i=dn({...e,nodeRole:null!==o&&void 0!==o?o:"Storage"});let a=ln("breadcrumbs.pDisk");r&&(a+=` ${r}`);const s={text:a,link:r&&n?(0,de.Ck)(r,n,t):void 0};return i.push(s),i},hn={cluster:cn,node:dn,pDisk:pn,tablet:(e,t={})=>{const{tabletId:n,tabletType:r,tenantName:o}=e,i=o?un(e,t):cn(e,t),a={text:n||ln("breadcrumbs.tablet"),icon:(0,ie.jsx)(nn,{text:(0,je.bk)(r)})};return i.push(a),i},tenant:un,vDisk:(e,t={})=>{const{vDiskSlotId:n}=e,r=pn(e,t);let o=ln("breadcrumbs.vDisk");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r},storageGroup:(e,t={})=>{const{groupId:n}=e,r=cn(e,t);let o=ln("breadcrumbs.storageGroup");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r}},mn=(0,fe.cn)("header");const gn=function({mainPage:e}){const{page:t,pageBreadcrumbsOptions:n}=(0,u.N4)((e=>e.header)),r=(0,u.N4)(c._5),i=(0,Yt.Zd)(),a=(0,dt.J)(),s="/tenant"===(0,ue.zy)().pathname,l=i.title||i.name,d=o.useMemo((()=>{const r=[];let o=n;e&&r.push(e),l&&(o={...o,clusterName:l});const i=((e,t,n=[],r={})=>{if(!e)return n;const o=(0,hn[e])(t,r);return[...n,...o]})(t,o,r);return i.map((e=>({...e,action:()=>{}})))}),[l,e,t,n]),p=()=>{const e=[];return s&&a&&e.push((0,ie.jsxs)(E.$,{view:"flat",onClick:()=>(0,Kt.S)({database:a}),children:[(0,ie.jsx)(f.I,{data:St.A}),ln("connect")]})),r&&e.push((0,ie.jsxs)(E.$,{view:"flat",href:(0,Zt.Un)(),target:"_blank",children:[je.T5,(0,ie.jsx)(f.I,{data:kt.A})]})),e.length?(0,ie.jsx)(g.s,{direction:"row",gap:1,children:e.map(((t,n)=>(0,ie.jsxs)(o.Fragment,{children:[t,n===e.length-1?null:(0,ie.jsx)(Nt,{orientation:"vertical"})]},n)))}):null};return(0,ie.jsxs)("header",{className:mn(),children:[(0,ie.jsx)(Vt,{items:d,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:mn("breadcrumbs"),renderItem:({item:e,isCurrent:t})=>{const{icon:n,text:r,link:o}=e;return(0,ie.jsxs)(Gt.E,{className:mn("breadcrumbs-item",{active:t,link:!t}),to:t?void 0:o,children:[n?(0,ie.jsx)("span",{className:mn("breadcrumbs-icon"),children:n}):null,(0,ie.jsx)("span",{children:r})]})}}),p()]})},vn=at("clusters"),yn=at("cluster"),bn=at("tenant"),wn=at("node"),xn=at("pDisk"),_n=at("vDisk"),En=at("storageGroup"),Sn=at("tablet"),kn=at("routes"),Cn=at("redirect"),On=JSON.parse('{"pages.clusters":"All clusters"}'),Nn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Tn=(0,pe.g4)("ydb-app-content",{ru:Nn,en:On}),An=(0,fe.cn)("app"),In=[{path:de.Ay.cluster,slot:yn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(856),n.e(9796),n.e(1329),n.e(9300),n.e(2512)]).then(n.bind(n,6488))),"Cluster"),wrapper:jn},{path:de.Ay.tenant,slot:bn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(7341),n.e(6820),n.e(985),n.e(9796),n.e(1329),n.e(9300),n.e(4187)]).then(n.bind(n,16516))),"Tenant"),wrapper:jn},{path:de.Ay.node,slot:wn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(1329),n.e(371)]).then(n.bind(n,49020))),"Node"),wrapper:jn},{path:de.Ay.pDisk,slot:xn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(684)]).then(n.bind(n,69134))),"PDiskPage"),wrapper:jn},{path:de.Ay.vDisk,slot:_n,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(6030)]).then(n.bind(n,80208))),"VDiskPage"),wrapper:jn},{path:de.Ay.storageGroup,slot:En,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(3812)]).then(n.bind(n,75510))),"StorageGroupPage"),wrapper:jn},{path:de.Ay.tablet,slot:Sn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(7341),n.e(535)]).then(n.bind(n,47584))),"Tablet"),wrapper:jn}],Pn=(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(3779)]).then(n.bind(n,48288))),"Clusters");function Dn(e,t){return(0,ie.jsx)(ue.qh,{path:t.path,exact:t.exact,render:n=>{var r;const i=e.get(t.slot);let a;if(i)a="function"===typeof i.rendered?i.rendered({component:t.component,...n}):i.rendered;else{const e=t.component;a=(0,ie.jsx)(e,{...n})}const s=null!==(r=t.wrapper)&&void 0!==r?r:o.Fragment;return(0,ie.jsx)("main",{className:An("main"),children:(0,ie.jsx)(s,{children:a})})}},t.path)}function Rn(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return o.useMemo((()=>new lt(t)),[t])}(e),i=r.get(kn),a=r.get(Cn),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Et.a)()}:{to:de.Ay.clusters};let l;return n||(l={text:Tn("pages.clusters"),link:de.Ay.clusters}),(0,ie.jsxs)(ue.dO,{children:[n?null:Dn(r,{path:de.Ay.clusters,exact:!0,component:Pn,slot:vn}),null===i||void 0===i?void 0:i.rendered,(0,ie.jsxs)(ue.qh,{children:[(0,ie.jsx)(gn,{mainPage:l}),(0,ie.jsxs)(ue.dO,{children:[In.map((e=>Dn(r,e))),(0,ie.jsx)(ue.qh,{path:s.from||s.path,exact:s.exact,strict:s.strict,render:()=>(0,ie.jsx)(ue.rd,{to:s.to,push:s.push})})]})]},"single-cluster")]})}function jn({children:e}){return(0,ie.jsxs)(Mn,{children:[(0,ie.jsx)(Ln,{}),(0,ie.jsx)(zn,{children:e})]})}function Mn({children:e}){const t=(0,dt.J)(),{isLoading:n,error:r}=c.D_.useWhoamiQuery({database:t});return(0,ie.jsx)(it.r,{loading:n,size:"l",children:(0,ie.jsx)(ot.A,{error:r,children:e})})}function Ln(){return ut.m.useGetNodesListQuery(void 0),null}function zn({children:e}){(0,ct.e5)();const t=(0,ct.Pm)();return(0,ie.jsx)(it.r,{loading:!t,size:"l",children:e})}const Fn=(0,a.Ng)((function(e){return{isAuthenticated:e.authentication.isAuthenticated,singleClusterMode:e.singleClusterMode}}))((function(e){const{singleClusterMode:t,isAuthenticated:n}=e;return(0,ie.jsxs)(ue.dO,{children:[(0,ie.jsx)(ue.qh,{path:de.Ay.auth,children:(0,ie.jsx)(_t,{closable:!0})}),(0,ie.jsx)(ue.qh,{children:(0,ie.jsx)("div",{className:An({embedded:t}),children:n?e.children:(0,ie.jsx)(_t,{})})})]})}));var Bn=n(16332),Un=n(69118),qn=n(67087);const $n=({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}})},Hn=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:"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 Wn=n(73633),Vn=n(27738),Kn=n(98392),Gn=n(18650),Yn=n(40091);const Zn=o.createContext(void 0);Zn.displayName="AsideHeaderInnerContext";const Qn=Zn.Provider,Jn=()=>{const e=o.useContext(Zn);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},Xn=o.createContext({compact:!1,size:0});Xn.displayName="AsideHeaderContext";const er=Xn.Provider,tr=()=>{const e=o.useContext(Xn);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 nr=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 rr=(0,v.b)("composite-bar-highlighted-item"),or=({iconRef:e,iconNode:t,onClick:n,onClickCapture:r})=>{const{openModalSubscriber:i}=Jn(),[{top:a,left:s,width:l,height:c},u]=(0,o.useState)({top:0,left:0,width:0,height:0}),[d,f]=(0,o.useState)(!1),p=(0,o.useMemo)((()=>(0,b.d)((()=>{var t;const{top:n=0,left:r=0,width:o=0,height:i=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:o,height:i})}),200,{leading:!0})),[e]),h=(0,o.useCallback)((()=>p()),[p]);return(0,o.useEffect)((()=>{if(d)return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)}),[h,d]),null===i||void 0===i||i((e=>{f(e)})),t&&d?o.createElement(Kn.Z,null,o.createElement("div",{className:rr(),style:{left:s,top:a,width:l,height:c},onClick:n,onClickCapture:r,"data-toast":!0},o.createElement("div",{className:rr("icon")},t))):null};or.displayName="HighlightedItem";const ir="collapse-item-id",ar=["right-start","right-end","right"];function sr(e){if(!ur(e))return 40;switch(e.type){case"action":return 50;case"divider":return 15;default:return 40}}function lr(e){return e.reduce(((e,t)=>e+sr(t)),0)}function cr(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function ur(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 dr=(0,v.b)("composite-bar-item");function fr(e){let t=o.createElement("div",{className:dr("title-text")},e.title);return e.rightAdornment&&(t=o.createElement(o.Fragment,null,t,o.createElement("div",{className:dr("title-adornment")},e.rightAdornment))),t}const pr=["right-end"],hr=[-20,8],mr=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:i,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=pr,popupOffset:d=hr,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,onCollapseItemClick:b,bringForward:w}=e,{compact:x}=tr(),[_,E]=o.useState(!1),S=o.useRef(null),k=c||S,C=o.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,D=t.id===ir,R=o.useMemo((()=>[{name:"compact",enabled:!0,options:{compact:x},phase:"main",fn(){}}]),[x]),j=o.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 o.createElement("div",{className:dr("menu-divider")});const M=e=>x?o.createElement(Gn.m,{title:"",description:T,disabled:!s||D&&_||l,placement:"right",className:dr("icon-tooltip",{"item-type":O})},o.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===i||void 0===i?void 0:i(),className:dr("btn-icon")},e)):e,L=({icon:e,title:r})=>{const s=o.createElement(o.Fragment,null,o.createElement("div",{className:dr({type:O,current:N,compact:x},n),ref:S,"data-qa":t.qa,onClick:e=>{D?(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===i||void 0===i||i()}},o.createElement("div",{className:dr("icon-place"),ref:C},M(e)),o.createElement("div",{className:dr("title"),title:"string"===typeof t.title?t.title:void 0},r)),m&&Boolean(null===k||void 0===k?void 0:k.current)&&o.createElement(we.z,{contentClassName:dr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:k,onClose:j,modifiers:R},m()));return t.link?o.createElement("a",{href:t.link,className:dr("link")},s):s},z=A?o.createElement(f.I,{qa:P,data:A,size:I,className:dr("icon")}):null,F={icon:z,title:fr(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)),o.createElement(o.Fragment,null,w&&o.createElement(or,{iconNode:U,iconRef:C,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),B,_&&D&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===k||void 0===k?void 0:k.current)&&o.createElement(gr,Object.assign({},e,{anchorRef:S,onClose:()=>E(!1)})))};function gr({onItemClick:e,collapseItems:t,anchorRef:n,onClose:r}){const{compact:i}=tr();return(null===t||void 0===t?void 0:t.length)?o.createElement(we.z,{placement:ar,open:!0,anchorRef:n,onClose:r},o.createElement("div",{className:dr("collapse-items-popup-content")},o.createElement(Yn.B,{itemClassName:dr("root-collapse-item"),items:t,selectedItemIndex:cr(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:r,renderItem:t=>{const r=({title:n,icon:r})=>{const i=o.createElement("div",{className:dr("collapse-item"),onClick:n=>{null===e||void 0===e||e(t,!0,n)}},r,n);return t.link?o.createElement("a",{href:t.link,className:dr("link")},i):i},a={title:fr(t),icon:t.icon&&o.createElement(f.I,{data:t.icon,size:14,className:dr("collapse-item-icon")})},s={compact:Boolean(i),collapsed:!0,item:t,ref:n};return"function"===typeof t.itemWrapper?t.itemWrapper(a,r,s):r(a)}}))):null}mr.displayName="Item";n(82435);y(".gn-footer-item{height:40px;width:100%}");const vr=(0,v.b)("footer-item"),yr=e=>{var{item:t}=e,n=d(e,["item"]);return o.createElement(mr,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:vr({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},br=o.memo((({renderContent:e,size:t})=>o.createElement(o.Fragment,null,e({size:t}))));br.displayName="RenderContent";const wr=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:r,children:i})=>o.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"===typeof r?o.createElement(br,{size:e,renderContent:r}):i);var xr=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 _r=o.lazy((()=>n.e(99).then(n.bind(n,90099)).then((e=>({default:e.TopPanel}))))),Er=Object.assign((({compact:e,className:t,children:n,topAlert:r})=>{const i=e?56:236,a=(0,o.useMemo)((()=>({size:i,compact:e})),[e,i]);return o.createElement(er,{value:a},o.createElement("div",{className:(0,xr.b)({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${i}px`})},r&&o.createElement(o.Suspense,{fallback:null},o.createElement(_r,{topAlert:r})),o.createElement("div",{className:(0,xr.b)("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=tr();return o.createElement(wr,{size:n,className:(0,xr.b)("content"),renderContent:t},e)}});var Sr=n(42793);const kr=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:"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"})),Cr=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:"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 Or;function Nr(){return Nr=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},Nr.apply(null,arguments)}var Tr=function(e){return o.createElement("svg",Nr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Or||(Or=o.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},Ar=n(32084),Ir=n(14794),Pr=n(48681);function Dr(){return Dr=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},Dr.apply(null,arguments)}function Rr(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 jr(e,t){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jr(e,t)}function Mr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jr(e,t)}var Lr,zr,Fr,Br;function Ur(){if(zr)return Lr;zr=1;return Lr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function qr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Br)return Fr;Br=1;var e=Ur();function t(){}function n(){}return n.resetWarningCache=t,Fr=function(){function r(t,n,r,o,i,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 o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}})()();var $r=!1,Hr=o.createContext(null),Wr=function(e){return e.scrollTop},Vr="unmounted",Kr="exited",Gr="entering",Yr="entered",Zr="exiting",Qr=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Kr,r.appearStatus=Gr):o=Yr:o=t.unmountOnExit||t.mountOnEnter?Vr:Kr,r.state={status:o},r.nextCallback=null,r}Mr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Vr?{status:Kr}: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!==Gr&&n!==Yr&&(t=Gr):n!==Gr&&n!==Yr||(t=Zr)}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===Gr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Pr.findDOMNode(this);n&&Wr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kr&&this.setState({status:Vr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Pr.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||$r?this.safeSetState({status:Yr},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Gr},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Yr},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Pr.findDOMNode(this);t&&!$r?(this.props.onExit(r),this.safeSetState({status:Zr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Kr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Kr},(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:Pr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Vr)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=Rr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(Hr.Provider,{value:null},"function"===typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function Jr(){}Qr.contextType=Hr,Qr.propTypes={},Qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jr,onEntering:Jr,onEntered:Jr,onExit:Jr,onExiting:Jr,onExited:Jr},Qr.UNMOUNTED=Vr,Qr.EXITED=Kr,Qr.ENTERING=Gr,Qr.ENTERED=Yr,Qr.EXITING=Zr;var Xr=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}))},eo=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=qr(n.className,r):n.setAttribute("class",qr(n.className&&n.className.baseVal||"",r)));var n,r}))},to=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];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),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"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,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Mr(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Wr(e),r&&(this.appliedClasses[t][n]=r,Xr(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&eo(e,r),o&&eo(e,o),i&&eo(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Rr(e,["classNames"]);return o.createElement(Qr,Dr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function no(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function ro(e,t,n){return null!=n[t]?n[t]:e.props[t]}function oo(e,t,n){var r=no(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:ro(s,"exit",e),enter:ro(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:ro(s,"exit",e),enter:ro(s,"enter",e)})}})),i}to.defaultProps={classNames:""},to.propTypes={};var io,ao,so=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},lo=function(e){function t(t,n){var r,o=(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:o,firstRender:!0},r}Mr(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,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,no(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:ro(e,"appear",n),enter:ro(e,"enter",n),exit:ro(e,"exit",n)})}))):oo(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=no(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Dr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Rr(e,["component","childFactory"]),i=this.state.contextValue,a=so(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(Hr.Provider,{value:i},a):o.createElement(Hr.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);lo.propTypes={},lo.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];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}Mr(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,a=o.Children.toArray(i)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:Pr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Rr(e,["children","in"]),i=o.Children.toArray(t),a=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.createElement(lo,r,n?o.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.Component)).propTypes={};var co="out-in",uo="in-out",fo=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},po=((io={})[co]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:fo(t,"onExited",(function(){n(Gr,null)}))})},io[uo]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,o.cloneElement(r,{in:!0,onEntered:fo(r,"onEntered",(function(){n(Gr)}))})]},io),ho=((ao={})[co]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:fo(t,"onEntered",(function(){n(Yr,o.cloneElement(t,{in:!0}))}))})},ao[uo]=function(e){var t=e.current,n=e.children,r=e.changeState;return[o.cloneElement(t,{in:!1,onExited:fo(t,"onExited",(function(){r(Yr,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},ao),mo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Yr,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Mr(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===Gr&&e.mode===uo?{status:Gr}:!t.current||(n=t.current,r=e.children,n===r||o.isValidElement(n)&&o.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:o.cloneElement(e.children,{in:!0})}:{status:Zr};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,a=i.status,s=i.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case Gr:e=ho[r](l);break;case Zr:e=po[r](l);break;case Yr:e=s}return o.createElement(Hr.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);mo.propTypes={},mo.defaultProps={mode:co};const go=200,vo=800;function yo(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 bo(e){const{direction:t,width:n,minResizeWidth:r=go,maxResizeWidth:i=vo,onResizeStart:a,onResize:s}=e,[l,c]=o.useState(!1),[u,d]=o.useState(0),[f,p]=o.useState(null!==n&&void 0!==n?n:400),h=o.useCallback((e=>Math.min(Math.max(e,r),i)),[r,i]),m=o.useCallback((e=>h((null!==n&&void 0!==n?n:f)+("right"===t?e:-e))),[n,f,t,h]),g=o.useCallback((()=>{c(!0),d(0),null===a||void 0===a||a()}),[a]),v=o.useCallback((e=>{d(e)}),[]),y=o.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=o.useRef(0),i=o.useRef(0),a=o.useCallback((e=>{const n=yo(e);if(i.current===n)return;i.current=n;const o=r.current-n;t(o)}),[t]),s=o.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=yo(e),o=r.current-t;n(o)}),[a,n]),l=o.useCallback((t=>{const n=yo(t);r.current=n,i.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 wo=(0,v.b)("drawer"),xo=o.forwardRef((function(e,t){const{visible:n,content:r,children:i,direction:a="left",className:s,resizable:l,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p,keepMounted:h=!1}=e,[m,g]=o.useState(!0),v=o.useRef(null),y=(0,Ar.N)(t,v),b="left"===a?void 0:a,{resizedWidth:w,resizerHandlers:x}=bo({direction:a,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p});o.useEffect((()=>{g(!0)}),[a]);const _=l?o.createElement("div",Object.assign({className:wo("resizer",{direction:a})},x),o.createElement("div",{className:wo("resizer-handle")})):null;return o.createElement(to,{in:n,timeout:300,mountOnEnter:!h,unmountOnExit:!h,classNames:wo("item-transition",{direction:b}),nodeRef:v,onEnter:()=>g(!1),onExit:()=>g(!1)},o.createElement("div",{ref:y,className:wo("item",{direction:b,hidden:m&&!n},[s]),style:{width:l?`${w}px`:void 0}},_,null!==i&&void 0!==i?i:r))})),_o=({className:e,veilClassName:t,children:n,style:r,onVeilClick:i,onEscape:a,preventScrollBody:s=!0,hideVeil:l,disablePortal:c=!0,keepMounted:u=!1})=>{let d=!1;o.Children.forEach(n,(e=>{if(o.isValidElement(e)&&e.type===xo){Boolean(e.props.visible)&&(d=!0)}})),o.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,Ir.y)({enabled:s&&d});const f=o.useRef(null),p=o.useRef(null),h=o.createElement(Qr,{in:d,timeout:{enter:0,exit:300},mountOnEnter:!u,unmountOnExit:!u,nodeRef:f},(a=>{const s=d&&"entered"===a;return o.createElement("div",{ref:f,className:wo({hideVeil:l},e),style:r},o.createElement(to,{in:s,timeout:300,unmountOnExit:!0,classNames:wo("veil-transition"),nodeRef:p},o.createElement("div",{ref:p,className:wo("veil",{hidden:l},t),onClick:i})),o.Children.map(n,(e=>{if(o.isValidElement(e)&&e.type===xo){const t=Boolean(e.props.visible);return o.cloneElement(e,Object.assign(Object.assign({keepMounted:u},e.props),{visible:t&&s}))}return e})))}));return c?h:o.createElement(Kn.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 Eo=(0,v.b)("all-pages-list-item"),So=e=>{const{item:t,editMode:n,onToggle:r}=e,i=(0,o.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),r()}),[r]);return o.createElement("div",{className:Eo(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?o.createElement(f.I,{className:Eo("icon"),data:t.icon,size:t.iconSize}):null,o.createElement("span",{className:Eo("text")},t.title),n&&!t.preventUserRemoving&&o.createElement(E.$,{onClick:i,view:t.hidden?"flat-secondary":"flat-action"},o.createElement(E.$.Icon,null,t.hidden?o.createElement(kr,null):o.createElement(Cr,null))))};var ko=(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 Co="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 Oo=(0,v.b)("all-pages-panel"),No=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:i,onMenuItemsChanged:a,editMenuProps:s}=Jn(),l=(0,o.useRef)(i);l.current=i;const[c,u]=(0,o.useState)(!1),d=(0,o.useCallback)((()=>{u((e=>!e))}),[]),p=(e=>{const t=(0,o.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==Co));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||ko("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(i);(0,o.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,o.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),m=(0,o.useCallback)((e=>{var t;if(!a)return;const n=Object.assign(Object.assign({},e),{hidden:!e.hidden}),r=l.current.filter((e=>e.id!==Co));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,o.useCallback)(((e,t,n)=>o.createElement(So,{item:e,editMode:c,onToggle:()=>m(e)})),[c,m]),y=(0,o.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!==Co));a(t.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a,s]);return o.createElement(g.s,{className:Oo(null,r),gap:"5",direction:"column"},o.createElement(g.s,{gap:"4",alignItems:"center",justifyContent:"space-between"},o.createElement(_.E,{variant:"subheader-2"},ko(c?"all-panel.title.editing":"all-panel.title.main")),o.createElement(E.$,{selected:c,view:"normal",onClick:d},t||o.createElement(f.I,{data:Vn.A}))),o.createElement(g.s,{className:Oo("content"),gap:"5",direction:"column"},Object.keys(p).map((e=>o.createElement(g.s,{key:e,direction:"column",gap:"3"},o.createElement(_.E,{className:Oo("category"),variant:"body-1",color:"secondary"},e),o.createElement(Yn.B,{virtualized:!1,filterable:!1,items:p[e],onItemClick:h,renderItem:v}))))),c&&o.createElement(E.$,{onClick:y},ko("all-panel.resetToDefault")))};let To;To="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let Ao=null,Io=null;const Po=To.clearTimeout,Do=To.setTimeout,Ro=To.cancelAnimationFrame||To.mozCancelAnimationFrame||To.webkitCancelAnimationFrame,jo=To.requestAnimationFrame||To.mozRequestAnimationFrame||To.webkitRequestAnimationFrame;function Mo(e){let t,n,r,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=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__&&Ao(this.__resizeRAF__),this.__resizeRAF__=Io((function(){i(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; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=To.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'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%; }',i=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)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__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",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__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==Ro||null==jo?(Ao=Po,Io=function(e){return Do(e,20)}):(Ao=function([e,t]){Ro(e),Po(t)},Io=function(e){const t=jo((function(){Po(n),e()})),n=Do((function(){Ro(t),e()}),20);return[t,n]});class Lo extends o.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)||{},o=parseFloat(r.paddingLeft||"0"),i=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-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(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=Mo(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:i=!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),i||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,o.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}const zo={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},Fo=o.createContext(zo);class Bo extends o.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},zo),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return o.createElement(Fo.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 Uo=(0,v.b)("multiple-tooltip"),qo=[-32,4],$o=[{name:"preventOverflow",enabled:!1}],Ho=({items:e,open:t,anchorRef:n,placement:r})=>{const{activeIndex:i,hideCollapseItemTooltip:a}=o.useContext(Fo),s=void 0===i?null:e[i];return o.createElement(we.z,{open:t,anchorRef:n,placement:r,offset:qo,contentClassName:Uo(null),modifiers:$o,disableLayer:!0},o.createElement("div",{className:Uo("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==ir&&"action"!==e)).map(((e,t)=>"divider"===e.type?o.createElement("div",{className:Uo("item",{divider:!0}),key:t},e.title):o.createElement("div",{className:Uo("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 Wo=(0,v.b)("composite-bar"),Vo=({type:e,items:t,onItemClick:n,onMoreClick:r,collapseItems:i,multipleTooltip:a=!1})=>{const s=(0,o.useRef)(null),l=(0,o.useRef)(null),{setValue:c,active:u,activeIndex:d,lastClickedItemIndex:f}=(0,o.useContext)(Fo),{compact:p}=tr();o.useEffect((()=>{function e(){a&&u&&c({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,u,c]);const h=(0,o.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,o.useCallback)((()=>{a&&u&&document.hasFocus()&&(null===c||void 0===c||c({active:!1,lastClickedItemIndex:void 0}))}),[a,u,c]),g=(0,o.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,o.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,o.useCallback)((e=>(t,r,o)=>{p&&a&&e!==f&&t.id!==ir&&c({lastClickedItemIndex:e,active:!1}),null===n||void 0===n||n(t,r,o)}),[p,f,a,n,c]);return o.createElement(o.Fragment,null,o.createElement("div",{ref:l,onMouseEnter:h,onMouseLeave:m},o.createElement(Yn.B,{ref:s,items:t,selectedItemIndex:"menu"===e?cr(t):void 0,itemHeight:sr,itemsHeight:lr,itemClassName:Wo("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const s=ur(e)?{item:e}:e,l=ur(e)?!a:e.enableTooltip;return o.createElement(mr,Object.assign({},s,{enableTooltip:l,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),onCollapseItemClick:r,collapseItems:i}))}})),"menu"===e&&a&&o.createElement(Ho,{open:p&&u,anchorRef:l,placement:["right-start"],items:t}))},Ko=({type:e,items:t,menuMoreTitle:n,onItemClick:r,onMoreClick:i,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 lr(t)+lr(n)+(t.length===e.length?0:40)}(t),l=function(e){return{id:ir,title:e,icon:nr.A,iconSize:18}}(n);s=o.createElement("div",{className:Wo({autosizer:!0}),style:{minHeight:e}},0!==t.length&&o.createElement(Lo,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,o,i;const a=e.filter((e=>e.afterMoreButton)),s=e.filter((e=>!e.afterMoreButton)),l=[...s,...a],c=lr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=sr(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===ir||e.afterMoreButton||("divider"!==e.type?(f-=sr(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-=sr(e),l.splice(p,1)))}return"divider"!==(null===(o=l[p])||void 0===o?void 0:o.type)||0!==p&&"divider"!==(null===(i=l[p-1])||void 0===i?void 0:i.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,s,l);return o.createElement("div",{style:{width:n,height:s}},o.createElement(Vo,{type:"menu",items:c,onItemClick:r,onMoreClick:i,collapseItems:u,multipleTooltip:a}))})))}else s=o.createElement("div",{className:Wo({subheader:!0})},o.createElement(Vo,{type:"subheader",items:t,onItemClick:r}));return o.createElement(Bo,null,s)};var Go={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Yo={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 Zo,Qo=(0,w.N)({en:Go,ru:Yo},`${v.N}AsideHeader`);function Jo(){return Jo=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},Jo.apply(null,arguments)}var Xo=function(e){return o.createElement("svg",Jo({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Zo||(Zo=o.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 ei=(0,v.b)("collapse-button"),ti=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:r,collapseTitle:i}=Jn(),a=(0,o.useCallback)((()=>{null===t||void 0===t||t(!n)}),[n,t]),s=n?r||Qo("button_expand"):i||Qo("button_collapse");return o.createElement("button",{className:ei({compact:n},e),onClick:a,title:s},o.createElement(f.I,{data:Xo,className:ei("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 ni=(0,v.b)("logo"),ri=({text:e,icon:t,iconSrc:n,iconClassName:r,iconSize:i=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=o.createElement(E.$.Icon,{className:r},o.createElement("img",{alt:"logo icon",src:n,width:i,height:i})):t&&(b=o.createElement(f.I,{data:t,size:i,className:r}));const w=o.createElement(E.$,{view:"flat",size:"l",className:ni("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():o.createElement("div",{className:ni("logo"),style:{fontSize:a}},e),o.createElement("div",{className:ni(null,p)},o.createElement("div",{className:ni("logo-btn-place",h)},y?c(w,Boolean(d)):w),!d&&(y?o.createElement("div",{onClick:u},c(x,Boolean(d))):o.createElement("a",{href:null!==s&&void 0!==s?s:"/",target:l,rel:"_self"===l?void 0:"noreferrer",className:ni("logo-link"),onClick:u},x)))},oi=[],ii=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:i}=Jn(),{compact:a}=tr(),s=(0,o.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 o.createElement("div",{className:(0,xr.b)("header",{"with-decoration":r})},e&&o.createElement(ri,Object.assign({},e,{onClick:s,compact:a,buttonWrapperClassName:(0,xr.b)("logo-button-wrapper"),buttonClassName:(0,xr.b)("logo-button")})),o.createElement(Ko,{type:"subheader",items:i||oi,onItemClick:t}),r&&o.createElement(f.I,{data:Tr,className:(0,xr.b)("header-divider"),width:56,height:29}))},ai=()=>{const{panelItems:e,onClosePanel:t,size:n}=Jn();return e?o.createElement(_o,{className:(0,xr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>o.createElement(xo,Object.assign({key:e.id},e))))):null},si=o.forwardRef(((e,t)=>{const{size:n,onItemClick:r,headerDecoration:i,multipleTooltip:a,menuMoreTitle:s,onMenuMoreClick:l,renderFooter:c,compact:u,customBackground:d,customBackgroundClassName:f,className:p,hideCollapseButton:h,qa:m}=Jn(),g=(()=>{const{menuItems:e,allPagesIsAvailable:t}=Jn();return(0,o.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,o.useRef)(null);return o.useEffect((()=>{(0,Sr.c)(t,v.current)}),[t]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,xr.b)("aside",p),style:{width:n},"data-qa":m},o.createElement("div",{className:(0,xr.b)("aside-popup-anchor"),ref:v}),o.createElement("div",{className:(0,xr.b)("aside-content",{"with-decoration":i})},d&&o.createElement("div",{className:(0,xr.b)("aside-custom-background",f)},d),o.createElement(ii,null),(null===g||void 0===g?void 0:g.length)?o.createElement(Ko,{type:"menu",items:g,menuMoreTitle:null!==s&&void 0!==s?s:Qo("label_more"),onItemClick:r,onMoreClick:l,multipleTooltip:a}):o.createElement("div",{className:(0,xr.b)("menu-items")}),o.createElement("div",{className:(0,xr.b)("footer")},null===c||void 0===c?void 0:c({size:n,compact:Boolean(u),asideRef:v})),!h&&o.createElement(ti,null))),o.createElement(ai,null))}));var li;si.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(li||(li={}));const ci=[],ui=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:i,onMenuItemsChanged:a,onAllPagesClick:s}=e,[l,c]=(0,o.useState)(),u=o.useMemo((()=>({id:Co,title:ko("menu-item.all-pages.title"),tooltipText:ko("menu-item.all-pages.title"),icon:nr.A})),[]),d=Boolean(a)&&(!r||(null===r||void 0===r?void 0:r.length)>0);(0,o.useEffect)((()=>{(null===i||void 0===i?void 0:i.some((e=>e.visible)))&&c(void 0)}),[i]);const f=(0,o.useCallback)((()=>{c(void 0),null===n||void 0===n||n()}),[n]),p=(0,o.useCallback)(((e,t,r)=>{var o;e.id===u.id?(null===n||void 0===n||n(),c((e=>e===li.AllPages?void 0:li.AllPages))):f(),null===(o=e.onItemClick)||void 0===o||o.call(e,e,t,r)}),[f,u,n]),h=(0,o.useMemo)((()=>d?[...r||ci,Object.assign(Object.assign({},u),{current:l===li.AllPages,onItemClick:s})]:r||ci),[d,r,l,u,s]),m=(0,o.useMemo)((()=>d?[...i||[],{id:li.AllPages,content:o.createElement(No,null),visible:l===li.AllPages}]:i),[d,i,l]);return Object.assign(Object.assign({},e),{onClosePanel:f,allPagesIsAvailable:d,menuItems:h,panelItems:m,size:t,onItemClick:p})},di=o.forwardRef(((e,t)=>{const{size:n,compact:r}=tr(),i=ui(Object.assign({size:n,compact:r},e));return o.createElement(Qn,{value:i},o.createElement(si,{ref:t}))}));di.displayName="PageLayoutAside";const fi=o.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:i}=e,a=d(e,["compact","className","topAlert"]);return o.createElement(Er,{compact:n,className:r,topAlert:i},o.createElement(di,Object.assign({ref:t},a)),o.createElement(Er.Content,{renderContent:a.renderContent}))}));fi.displayName="AsideHeader";var pi,hi=n(59001);function mi(){return mi=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},mi.apply(null,arguments)}const gi=function(e){return o.createElement("svg",mi({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),pi||(pi=o.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"})))},vi=(0,fe.cn)("kv-navigation");function yi({isCompact:e,popupAnchor:t,user:n,children:r}){var i;const[a,s]=o.useState(!1),l=n?null!==(i=n.icon)&&void 0!==i?i:Hn:gi;return(0,ie.jsx)(yr,{compact:e,item:{id:"user-popup",title:null!==n&&void 0!==n&&n.login?n.login:me("navigation-item.account"),current:a,icon:l,onItemClick:()=>s((e=>!e))},enableTooltip:!a,popupAnchor:t,popupVisible:a,onClosePopup:()=>s(!1),renderPopupContent:()=>(0,ie.jsx)("div",{className:vi("ydb-user-wrapper"),children:r})})}var bi=function(e){return e.UserSettings="UserSettings",e}(bi||{});function wi(e){const t=(0,ue.W6)(),[n,r]=o.useState(),[i,a]=(0,u.iK)(je.LQ);return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(fi,{logo:{text:"YDB",icon:wt,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:i,onChangeCompact:a,className:vi(),renderContent:()=>e.content,renderFooter:({compact:t,asideRef:i})=>(0,ie.jsxs)(o.Fragment,{children:[(0,ie.jsx)(yr,{compact:t,item:{id:"documentation",title:me("navigation-item.documentation"),icon:Wn.A,onItemClick:()=>{window.open("ru"===hi.f.readUserSettingsValue(je.jS,navigator.language)?"https://ydb.tech/docs/ru/":"https://ydb.tech/docs/en/","_blank","noreferrer")}}}),(0,ie.jsx)(yr,{item:{id:"user-settings",title:me("navigation-item.settings"),icon:Vn.A,current:n===bi.UserSettings,onItemClick:()=>{r(n===bi.UserSettings?void 0:bi.UserSettings)}},compact:t}),(0,ie.jsx)(yi,{isCompact:t,popupAnchor:i,user:e.user,children:e.ydbInternalUser})]}),panelItems:[{id:"user-settings",visible:n===bi.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}const xi=(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,ie.jsx)(o.Fragment,{children:e})})).register("AsideNavigation",wi).register("ErrorBoundary",s.lQ);function _i({store:e,history:t,componentsRegistry:n=xi,children:r}){return(0,ie.jsx)(i.vd,{children:(0,ie.jsx)(a.Kq,{store:e,children:(0,ie.jsx)(ue.Ix,{history:t,children:(0,ie.jsx)(qn.QueryParamProvider,{adapter:$n,children:(0,ie.jsx)(Ei,{children:(0,ie.jsx)(l.I,{registry:n,children:(0,ie.jsx)(Bn.Kq,{children:r})})})})})})})}function Ei({children:e}){const[t]=(0,u.iK)(je.k4);return(0,ie.jsx)(Un.N,{theme:t,children:e})}const Si=(0,a.Ng)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function({store:e,history:t,singleClusterMode:n,children:r,userSettings:o=rt({singleClusterMode:n})}){return(0,ie.jsxs)(_i,{store:e,history:t,children:[(0,ie.jsx)(i.mg,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,ie.jsx)(Fn,{children:(0,ie.jsx)(ye,{userSettings:o,children:(0,ie.jsxs)(s.tH,{children:[(0,ie.jsx)(Rn,{singleClusterMode:n,children:r}),(0,ie.jsx)("div",{id:"fullscreen-root"})]})})}),(0,ie.jsx)(Te,{})]})}));function ki({monitoring:e,dbName:t,dbType:n,clusterName:r}){try{const a=Oi(e);if(a){var o,i;const e=null!==(o=a.host)&&void 0!==o?o:"cluster",s=null!==(i=a.slot)&&void 0!==i?i:"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 Ci(e,t){try{const n=Oi(e);if(n){const e=n.cluster_dashboard,r=n.cluster_name||t||"",o=new URL(n.monitoring_url);return!o.search&&e&&(o.pathname+=`/${e}/view`),o.searchParams.has("p.cluster")||o.searchParams.set("p.cluster",r),o.searchParams.set("p.database","-"),o.toString()}}catch{}return""}function Oi(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Ni=n(96873),Ti=n(40537),Ai=n(69446),Ii=n(77630),Pi=n(71294);const Di=(0,fe.cn)("extended-cluster"),Ri=e=>{const t=(0,Ai.Zd)(e);return{label:"Balancer",value:(0,ie.jsxs)("div",{className:Di("balancer"),children:[t,(0,ie.jsx)(Ni.b,{text:t,size:"s",className:Di("clipboard-button")})]})}},ji=(e,t,n,r)=>{const o={};if(t&&r){const n=r(t,e);n&&(o.links=[{title:"Monitoring",url:n}])}return n&&(o.info=[Ri(n)]),o},Mi=(e=[])=>({getVersionToColorMap:()=>(0,Ti.Vm)((0,Ti.HD)(e))}),Li=(e,t,n,r,o)=>{const i={prepareTenantBackend:e=>{var t;if(n){if(r)return(0,Ai.PG)(n);if(e)return"string"===typeof e?(0,Ii.De)(e,n):null!==(t=(0,Ii.Vk)(e,n,!0))&&void 0!==t?t:void 0}}};return t&&o&&(i.getMonitoringLink=(n,r)=>n&&r?o({monitoring:t,dbName:n,dbType:r,clusterName:e}):null),i};function zi({component:e,getMonitoringLink:t,getMonitoringClusterLink:n}){const{versions:r,useClusterBalancerAsBackend:o,additionalNodesProps:i}=(0,Pi.s)(),{name:a,balancer:s,monitoring:l}=(0,Yt.Zd)();return(0,ie.jsx)("div",{className:Di(),children:(0,ie.jsx)(e,{additionalClusterProps:ji(a,l,s,n),additionalVersionsProps:Mi(r),additionalTenantsProps:Li(a,l,s,o,t),additionalNodesProps:i})})}function Fi({component:e}){const{balancer:t}=(0,Yt.Zd)(),{additionalNodesProps:n}=(0,Pi.B)({balancer:t});return(0,ie.jsx)(e,{additionalNodesProps:n})}function Bi({component:e,getMonitoringLink:t}){const{balancer:n,monitoring:r}=(0,Yt.Zd)(),{additionalNodesProps:o}=(0,Pi.B)({balancer:n}),i={getMonitoringLink:(e,n)=>r&&e&&n&&t?t({monitoring:r,dbName:e,dbType:n}):null};return(0,ie.jsx)(e,{additionalTenantProps:i,additionalNodesProps:o})}function Ui({store:e,history:t,getMonitoringLink:n=ki,getMonitoringClusterLink:r=Ci,userSettings:o,children:i}){return(0,ie.jsxs)(Si,{store:e,history:t,userSettings:o,children:[(0,ie.jsx)(yn,{children:({component:e})=>(0,ie.jsx)(zi,{component:e,getMonitoringLink:n,getMonitoringClusterLink:r})}),(0,ie.jsx)(wn,{children:({component:e})=>(0,ie.jsx)(Fi,{component:e})}),(0,ie.jsx)(bn,{children:({component:e})=>(0,ie.jsx)(Bi,{component:e,getMonitoringLink:n})}),i]})}var qi=n(58351),$i=n(37402),Hi=n(88610),Wi=n(59625),Vi=n(42566)},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:o,getTTFB:i})=>{t(e),n(e),r(e),o(e),i(e)}))}},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),o=n.n(r),i=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",tabletsFilters:"/tabletsFilters",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 o=r[0];t=e.replace(n,":\\"+o.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=o()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=p(e);return`${(0,i.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})}},37402:(e,t,n)=>{"use strict";n.d(t,{i:()=>wn,x:()=>xn});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>he,navigator:()=>fe,origin:()=>me});var o=n(58671),i=n.n(o);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"),k=d("URLSearchParams"),[C,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,o;if("object"!==typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function I(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const P="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,D=e=>!h(e)&&e!==P;const R=(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,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||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)),W="undefined"!==typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!==typeof process&&process.nextTick||H,V={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:C,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:k,isTypedArray:R,isFileList:S,forEach:A,merge:function e(){const{caseless:t}=D(this)&&this||{},n={},r=(r,o)=>{const i=t&&I(n,o)||o;w(n[i])&&w(r)?n[i]=e(n[i],r):w(r)?n[i]=e({},r):p(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&A(arguments[o],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 o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],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:D,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 o=p(e)?[]:{};return A(e,((e,t)=>{const i=n(e,r+1);!h(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:H,asap:W};function K(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}V.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:V.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,o,i)=>{const a=Object.create(G);return V.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),K.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Z=K;function Q(e){return V.isPlainObject(e)||V.isArray(e)}function J(e){return V.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=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));const te=function(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!s&&V.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(Q)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(s=V.toArray(e)))return n=J(n),s.forEach((function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===a?X([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Q(e)||(t.append(X(o,n,i),l(e)),!1)}const u=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Q});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),V.forEach(n,(function(n,i){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),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 oe=re.prototype;oe.append=function(e,t){this._pairs.push([e,t])},oe.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 ie=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;V.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):V.isURLSearchParams(t)?t.toString():new ie(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}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){V.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:ie,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,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&V.isArray(r)?r.length:i,s)return V.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&V.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&V.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,((e,r)=>{t(function(e){return V.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,o=V.isObject(e);o&&V.isHTMLForm(e)&&(e=new FormData(e));if(V.isFormData(e))return r?JSON.stringify(ve(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){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&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.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(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw Z.from(o,Z.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}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}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));const be=ye,we=V.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:V.isArray(e)?e.map(Ee):String(e)}function Se(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class ke{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=_e(t);if(!o)throw new Error("header name must be a non-empty string");const i=V.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ee(e))}const i=(e,t)=>V.forEach(e,((e,n)=>o(e,n,t)));if(V.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+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(V.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=_e(e)){const n=V.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(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=_e(e)){const n=V.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 o(e){if(e=_e(e)){const o=V.findKey(n,e);!o||t&&!Se(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Se(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,((r,o)=>{const i=V.findKey(n,o);if(i)return t[i]=Ee(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ee(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.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=V.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(ke.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),V.freezeMethods(ke);const Ce=ke;function Oe(e,t){const n=this||be,r=t||n,o=Ce.from(r.headers);let i=r.data;return V.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ne(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){Z.call(this,null==e?"canceled":e,Z.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Te,Z,{__CANCEL__:!0});const Ae=Te;function Ie(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.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 o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const De=function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]},Re=(e,t,n=3)=>{let r=0;const o=Pe(50,250);return De((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/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)=>V.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,o,i){const a=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),V.isString(r)&&a.push("path="+r),V.isString(o)&&a.push("domain="+o),!0===i&&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 Ce?{...e}:e;function Ue(e,t){t=t||{};const n={};function r(e,t,n,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n,o){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!V.isUndefined(t))return r(void 0,t)}function a(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,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)=>o(Be(e),Be(t),0,!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);V.isUndefined(a)&&i!==s||(n[r]=a)})),n}const qe=e=>{const t=Ue({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Ce.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)):""))),V.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&&(o&&V.isFunction(o)&&(o=o(t)),o||!1!==o&&Le(t.url))){const e=i&&a&&ze.read(a);e&&s.set(i,e)}return t},$e="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=qe(e);let o=r.data;const i=Ce.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=Ce.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 Z("Request aborted",Z.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,o.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&V.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Re(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Re(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 Z("Unsupported protocol "+v+":",Z.ERR_BAD_REQUEST,e)):m.send(o||null)}))},He=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Z?t:new Ae(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>V.asap(a),s}},We=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ve=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 o=async function*(e,t){for await(const n of Ve(e))yield*We(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ge="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ye=Ge&&"function"===typeof ReadableStream,Ze=Ge&&("function"===typeof TextEncoder?(Qe=new TextEncoder,e=>Qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Qe;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((()=>V.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]=V.isFunction(nt[e])?t=>t[e]():(t,n)=>{throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})));const rt=async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await Ze(e)).byteLength:void 0)})(t):n},ot={http:null,xhr:$e,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,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([o,i&&i.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(V.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=je(g,Re(Me(l)));r=Ke(n.body,65536,e,t)}}V.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(p);const a=et&&("stream"===c||"response"===c);if(et&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=V.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&je(t,Re(Me(s),!0))||[];i=new Response(Ke(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await tt[V.findKey(tt,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ie(t,n,{data:v,headers:Ce.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,p),{cause:v.cause||v});throw Z.from(v,v&&v.code,e,p)}})};V.forEach(ot,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const it=e=>`- ${e}`,at=e=>V.isFunction(e)||null===e||!1===e,st=e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!at(n)&&(r=ot[(t=String(n)).toLowerCase()],void 0===r))throw new Z(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).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(it).join("\n"):" "+it(e[0]):"as no adapter specified";throw new Z("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=Ce.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=Ce.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=Ce.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,o,i)=>{if(!1===e)throw new Z(r(o," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!ft[o]&&(ft[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},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 Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Z("option "+i+" must be "+n,Z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Z("Unknown option "+i,Z.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:o}=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&&(V.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 i=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ce.concat(i,o);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)}}V.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}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ue(o||{},{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,o){n.reason||(n.reason=new Ae(e,r,o),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 V.extend(r,gt.prototype,n,{allOwnKeys:!0}),V.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=Z,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 V.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=Ue,xt.AxiosHeaders=Ce,xt.formToJSON=e=>ve(V.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=st,xt.HttpStatusCode=wt,xt.default=xt;const _t=xt,{Axios:Et,AxiosError:St,CanceledError:kt,isCancel:Ct,CancelToken:Ot,VERSION:Nt,all:Tt,Cancel:At,isAxiosError:It,spread:Pt,toFormData:Dt,AxiosHeaders:Rt,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 o=r[n];o&&o instanceof Rt&&(o[e]=t)})):r.common[e]=t},this.apiPath=e=>`${this.apiEndpoint}${e}`;const{config:t={},apiEndpoint:n="/api",collector:r={},csrfHeaderName:o="X-CSRF-Token"}=e,a=Object.assign({xsrfCookieName:"",timeout:Ft.DEFAULT_TIMEOUT,withCredentials:!0},t);this._axios=_t.create(a),this._axios.defaults.headers=i()(this._axios.defaults.headers),this.requestTokens={},this.setApiEndpoint(n),this.collectorSettings=r,this.collector={errors:[],requests:[]},this.csrfHeaderName=o}collectRequest({method:e,url:t,data:n,requestStart:r,response:o,responseError:i,error:a=!1,cancelled:s=!1}){const{collectErrors:l,collectRequests:c}=this.collectorSettings;if(!l&&!c)return;const{responseText:u="",responseURL:d=t}=o&&o.request||{},f=a&&i instanceof Error?i.message:"",p={method:e,url:d,time:{start:r,end:Number(new Date)},status:o&&o.status,size:u.length,requestData:n&&JSON.stringify(n,null,2)||"",responseData:o&&o.data&&JSON.stringify(o.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:o,options:i={},retries:a=0}=e,s=i.requestConfig||{},{concurrentId:l,collectRequest:c=!0,timeout:u,headers:d,onDownloadProgress:f}=i;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:o,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 Wt(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Vt(e){return!!e.config?.method&&(Wt(e)&&-1!==Ht.indexOf(e.config.method))}function Kt(e){return qt(e)||Vt(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 Zt(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 Qt=(e,t)=>{const n=e.interceptors.request.use((e=>(Zt(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 o=Zt(r,t);return n.response&&o.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:r}=e,o=(e.retryCount||0)<n&&r(t);if("object"===typeof o)try{return!1!==await o}catch(i){return!1}return o}(o,n)?async function(e,t,n,r){t.retryCount+=1;const{retryDelay:o,shouldResetTimeout:i,onRetry:a}=t,s=o(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),!i&&r.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,o=r.timeout-e-s;if(o<=0)return Promise.reject(n);r.timeout=o}return r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise((t=>{const n=()=>{clearTimeout(o),t(e(r))},o=setTimeout((()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)}),s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})}))}(e,o,n,r):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(o,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:r}};Qt.isNetworkError=qt,Qt.isSafeRequestError=function(e){return!!e.config?.method&&(Wt(e)&&-1!==$t.indexOf(e.config.method))},Qt.isIdempotentRequestError=Vt,Qt.isNetworkOrIdempotentRequestError=Kt,Qt.exponentialDelay=function(e=0,t=void 0,n=100){const r=2**e*n,o=Math.max(r,Gt(t));return o+.2*o*Math.random()},Qt.linearDelay=function(e=100){return(t=0,n=void 0)=>{const r=t*e;return Math.max(r,Gt(n))}},Qt.isRetryableError=Wt;const Jt=Qt;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=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});class sn 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(an)}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 ln 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 cn=n(31684);class un 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,cn.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 dn extends rn{createSchemaDirectory({database:e,path:t},{signal:n}={}){return this.post(this.getPath("/scheme/directory"),{},{database:e,path:t},{requestConfig:{signal:n}})}}class fn extends rn{getStorageGroups({nodeId:e,pDiskId:t,groupId:n,fieldsRequired:r,filter:o,...i},{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:o||void 0,timeout:2e4,...i},{concurrentId:a,requestConfig:{signal:s}})}}class pn extends rn{evictVDiskOld({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:o}){return this.post(this.getPath("/tablets/app?TabletID=72057594037932033&exec=1"),{Command:{ReassignGroupDisk:{GroupId:e,GroupGeneration:t,FailRealmIdx:n,FailDomainIdx:r,VDiskIdx:o}}},{},{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}})}}const hn=4*en.KF,mn=10*en.KF,gn=10*en.KF;class vn extends rn{checkTrace({url:e},{concurrentId:t,signal:n}={}){return this.get(e,{},{concurrentId:t||"checkTrace",requestConfig:{signal:n,timeout:mn,"axios-retry":{retries:30,retryDelay:(e,t)=>{var n;return(0,tn.F0)(t)&&(404===(null===t||void 0===t||null===(n=t.response)||void 0===n?void 0:n.status)||"ERR_NETWORK"===t.code)?hn:gn},shouldResetTimeout:!0,retryCondition:()=>!0}}})}}class yn extends rn{evictVDisk({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:o,force:i}){return this.post(this.getPath("/vdisk/evict"),{},{group_id:e,group_generation_id:t,fail_realm_idx:n,fail_domain_idx:r,vdisk_idx:o,force:i},{requestConfig:{"axios-retry":{retries:0}}})}}class bn 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,signal:n}={}){return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal: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:o,filter:i,...a},{concurrentId:s,signal:l}={}){const c=Array.isArray(o)?this.prepareArrayRequestParam(o):o;return this.get(this.getPath("/viewer/json/nodes?enums=true"),{type:e,tablets:t,filter:i||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:o}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{database:n,node_id:e,path:t,enums:!0},{concurrentId:r,requestConfig:{signal:o}})}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:o}={}){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:o},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:o}={}){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:o}})}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 o=!nn.f.readUserSettingsValue(en.RY,!0);return this.post(this.getPath("/viewer/json/query"),{...e,base64:o},{schema:"multi",base64:o,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:o}={}){return this.get(this.getPath("/viewer/json/hotkeys"),{database:t,path:e,enable_sampling:n},{concurrentId:r||"getHotKeys",requestConfig:{signal:o}})}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:o,filter:i,...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:o,filter:i||void 0,...a},{concurrentId:s,requestConfig:{signal:l}})}getChartData({target:e,from:t,until:n,maxDataPoints:r,database:o},{concurrentId:i,signal:a}={}){const s=`${e}&from=${t}&until=${n}&maxDataPoints=${r}&format=json`;return this.post(this.getPath(`/viewer/json/render?database=${o}`),s,{},{concurrentId:i,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:o}={}){return this.get(this.getPath("/viewer/json/vdiskinfo?enums=true"),{node_id:n,filter:`(PDiskId=${t};VDiskSlotId=${e})`},{concurrentId:r,requestConfig:{signal:o}})}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 wn{constructor({config:e,webVersion:t}){this.auth=void 0,this.operation=void 0,this.pdisk=void 0,this.scheme=void 0,this.storage=void 0,this.tablets=void 0,this.trace=void 0,this.vdisk=void 0,this.viewer=void 0,this.meta=void 0,this.auth=new on({config:e}),t&&(this.meta=new sn({config:e})),this.operation=new ln({config:e}),this.pdisk=new un({config:e}),this.scheme=new dn({config:e}),this.storage=new fn({config:e}),this.tablets=new pn({config:e}),this.trace=new vn({config:e}),this.vdisk=new yn({config:e}),this.viewer=new bn({config:e})}}function xn({webVersion:e=!1,withCredentials:t=!1}={}){return new wn({config:{withCredentials:t},webVersion:e})}},59001:(e,t,n)=>{"use strict";n.d(t,{c:()=>s,f:()=>l});var r=n(52531),o=n(76086),i=n(11822),a=n(41650);const s={[o.k4]:"system",[o.jS]:void 0,[o.TJ]:!1,[o.RY]:!0,[o.ld]:[],[o.Mt]:r.Dg.query,[o.zk]:i.x5.execute,[o.LQ]:!0,[o.bs]:[],[o.g5]:!1,[o.lr]:!1,[o.s2]:!0,[o.LK]:!0,[o.IO]:!0,[o.Gj]:!1,[o.av]:0,[o.iD]:!1,[o.Xm]:!1,[o.fr]:void 0,[o.YQ]:void 0,[o.c4]:i.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)}}},54878:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>O,P8:()=>N,SL:()=>T,U1:()=>z,In:()=>M,jC:()=>R});var r=n(97091),o=n(45264),i=n(19859),a=n(37402);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 o,i;const t=new URL(e).searchParams;return{basename:"/",backend:null!==(o=t.get("backend"))&&void 0!==o?o:void 0,clusterName:null!==(i=t.get("clusterName"))&&void 0!==i?i: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 k={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 C(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:o}=r;if(o.search===A)return{location:n,shouldPush:!1};{const e=/\?\w+/;return A=o.search,e.test(n.search)&&(o=function(e,t){const{search:n,...r}=e,o=b().parse(t.search.slice(1)),i=(0,x.getMatchingDeclaredPath)(k,e),a=i&&k[i];p()(m()(a),(e=>{delete o[e]})),p()(m()(k.global||{}),(e=>{delete o[e]}));const s=b().stringify(o,{encoder:encodeURIComponent}),l=n.startsWith("?")?"&":"?";return{search:`${n}${l}${s}`,...r}}(o,n)),{...r,location:o}}}function P(e,t,n){return(r,o)=>{const i=((n,r)=>{const{type:o,payload:i}=r;if(!i)return n;if(w.LOCATION_POP===o||w.LOCATION_PUSH===o){const r=i;return r.query=(0,_.parseQuery)(e,i),t(n,r)}return n})(n(r,o),o);return i!==r?i:r}}function D(e,t,n,o){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,i.zx)(k,C,e,t,I);return{locationMiddleware:n,reducersWithLocation:P(k,C,t)}}(t,e),l=(0,r.U1)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.oM,"api/sendQuery/rejected"]}}).concat(a,...o)});return(0,u.N8)(l),l}const R=window.web_version,j=window.custom_backend,M=window.meta_backend,L="undefined"===`${M}`;function z({aRootReducer:e=l.A,singleClusterMode:t=L,api:n=(0,a.x)({webVersion:R,withCredentials:!j})}={}){({backend:O,basename:N,clusterName:T}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,o.zR)({basename:N}),u=D(e,r,{singleClusterMode:t},[c.F.middleware]);return(0,i.BL)(u,r),window.api=n,{history:r,store:u}}},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$:()=>o.d,jC:()=>r.jC});var r=n(54878),o=n(81463)},21334:(e,t,n)=>{"use strict";n.d(t,{F:()=>_});var r=n(44992),o=n(97434),i=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 o=(0,l.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=(0,l.useRef)(o);return(0,l.useEffect)((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function m(e){const t=(0,l.useRef)(e);return(0,l.useEffect)((()=>{(0,o.bN)(t.current,e)||(t.current=e)}),[e]),(0,o.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=o.vA,hooks:t={useDispatch:o.wA,useSelector:o.d4,useStore:o.Pj},createSelector:n=i.Mz,unstable__sideEffectsInRender:a=!1,...d}={})=>({name:w,init(i,{serializeQueryArgs:d},g){const v=i,{buildQueryHooks:w,buildMutationHook:x,usePrefetch:_}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:i,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:o,refetchOnFocus:i,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:o,refetchOnFocus:i,pollingInterval:d,skipPollingIfUnfocused:p}),E=(0,l.useRef)(!1),S=(0,l.useRef)(void 0);let{queryCacheKey:k,requestId:C}=S.current||{},O=!1;k&&C&&(O=w.current.isRequestSubscribed(k,C));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:o,pollingInterval:i=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:o,pollingInterval:i,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:o.bN}})),[f,p]),b=(0,l.useMemo)((()=>s?u([v],s,{devModeChecks:{identityFunctionCheck:"never"}}):v),[v,s]),x=i((e=>b(e,m.current)),o.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),o=E(n,{...e,skip:n===p}),i=(0,l.useMemo)((()=>({lastArg:n})),[n]);return(0,l.useMemo)((()=>[t,{...o,reset:r},i]),[t,o,r,i])},useQuery(e,t){const n=x(e,t),o=E(e,{selectFromResult:e===r.hT||t?.skip?void 0:b,...t}),{data:i,status:a,isLoading:s,isSuccess:c,isError:u,error:d}=o;return(0,l.useDebugValue)({data:i,status:a,isLoading:s,isSuccess:c,isError:u,error:d}),(0,l.useMemo)((()=>({...o,...n})),[o,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=i(y,o.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:k,isSuccess:C,isError:O,error:N}=b;(0,l.useDebugValue)({endpointName:_,data:E,status:S,isLoading:k,isSuccess:C,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 o=n(),i=m(r);return(0,l.useCallback)(((n,r)=>o(e.util.prefetch(t,n,{...i,...r}))),[t,o,i])}};function w(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,o=g.endpointDefinitions[e];n!==r.hT&&d({queryArgs:t.originalArgs,endpointDefinition:o,endpointName:e})===d({queryArgs:n,endpointDefinition:o,endpointName:e})&&(t=void 0)}let o=e.isSuccess?e.data:t?.data;void 0===o&&(o=e.data);const i=void 0!==o,a=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!i&&a,l=e.isSuccess||i&&(a&&!t?.isError||e.isUninitialized);return{...e,data:o,currentData:e.data,isFetching:a,isLoading:s,isSuccess:l}}}({api:i,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:o,useQuerySubscription:a}=w(e);u(v.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:a}),i[`use${c(e)}Query`]=t,i[`useLazy${c(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=x(e);u(v.endpoints[e],{useMutation:t}),i[`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","StorageData","Tablet","UserData","VDiskData"]});Symbol()},78668:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,D_:()=>f,_5:()=>u,mB:()=>d});var r=n(97091),o=n(81288),i=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:o}=t.payload;e.user="Login"===r?n:void 0,e.isUserAllowedToMakeChanges=!1!==o}},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=i.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,o.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"})},68712:(e,t,n)=>{"use strict";n.d(t,{FC:()=>l,Ox:()=>a,RE:()=>o,p2:()=>s});var r=n(53850);const o=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"}),i=(0,r.Mz)((e=>e),(e=>o.endpoints.getClusterCapabilities.select({database:e}))),a=(0,r.Mz)((e=>e),((e,t)=>i(t)),((e,t)=>t(e))),s=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,o;return null===(r=a(e,n).data)||void 0===r||null===(o=r.Capabilities)||void 0===o?void 0:o[t]}));async function l(e,t,{dispatch:n,getState:r}){const i=o.util.getRunningQueryThunk("getClusterCapabilities",{database:t});return await n(i),s(r(),e)||0}},67028:(e,t,n)=>{"use strict";n.d(t,{DM:()=>m,Ii:()=>c,Oi:()=>d,Pm:()=>s,SA:()=>p,WF:()=>g,YA:()=>f,Ye:()=>h,_Q:()=>v,c2:()=>u,e5:()=>a,fp:()=>y});var r=n(90182),o=n(28232),i=n(68712);function a(){const e=(0,o.J)();i.RE.useGetClusterCapabilitiesQuery({database:e})}function s(){const e=(0,o.J)(),{data:t,error:n}=(0,r.N4)((t=>(0,i.Ox)(t,e)));return Boolean(t||n)}const l=e=>{const t=(0,o.J)();return(0,r.N4)((n=>(0,i.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},67157:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>k,Ay:()=>S,ds:()=>A,zR:()=>T,Yv:()=>E,Zd:()=>C});var r=n(97091),o=n(53850),i=n(44992),a=n(67087),s=n(87842),l=n(370);const c=l.z.object({url:l.z.string().url()}),u=l.z.object({url:l.z.string().url()});function d({traceCheck:e,traceView:t}){try{return{traceCheck:e?c.parse(JSON.parse(e)):void 0,traceView:t?u.parse(JSON.parse(t)):void 0}}catch(n){console.error("Error parsing trace fields:",n)}return{}}var f=n(98730),p=n(76086),h=n(11822),m=n(21334),g=n(24600);function v(e){const t={};return null===e||void 0===e||e.forEach((e=>{const{PDiskFilter:n,ErasureSpecies:r,CurrentAvailableSize:o,CurrentAllocatedSize:i,CurrentGroupsCreated:a,AvailableGroupsToCreate:s}=e,l=Number(a)||0,c=l+(Number(s)||0),u=Number(i)||0,d=Number(o)||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 y=e=>{var t,n;return v(null===(t=(0,h.fW)(e).resultSets)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.result)};const b=localStorage.getItem(p.fY);let w;w=(0,s.eC)(b)?b:s.Bi.overview;const x={defaultClusterTab:w},_=(0,r.Z0)({name:"cluster",initialState:x,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function E(e){return t=>{(0,s.eC)(e)&&(localStorage.setItem(p.fY,e),t(_.actions.setDefaultClusterTab(e)))}}const S=_.reducer,k=m.F.injectEndpoints({endpoints:e=>({getClusterInfo:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getClusterInfo(e,{signal:t}),o=r.Domain;if(!o)return{data:{clusterData:r}};if((0,f.L)(r))return{data:{clusterData:r,groupsStats:(n=r,v(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`)(o),t=await window.api.viewer.sendQuery({query:e,database:o,action:"execute-scan"});return(0,h.We)(t)?{data:{clusterData:r}}:{data:{clusterData:r,groupsStats:y(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}=k.useGetClusterBaseInfoQuery(null!==t&&void 0!==t?t:i.hT),{solomon:r,name:o,trace_check:s,trace_view:l,...c}=n||{};return{...c,...d({traceCheck:s,traceView:l}),name:null!==(e=null!==o&&void 0!==o?o:t)&&void 0!==e?e:void 0,monitoring:r}}const O=(0,o.Mz)((e=>e),(e=>k.endpoints.getClusterInfo.select(e))),N=(0,o.Mz)((e=>e),((e,t)=>O(t)),((e,t)=>t(e).data)),T=(0,o.Mz)(((e,t)=>t),((e,t)=>N(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)||p.QM})),A=(0,o.Mz)(((e,t)=>N(e,t)),(e=>(0,g.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:[]}))},39567:(e,t,n)=>{"use strict";n.d(t,{Fe:()=>c,ub:()=>u,Ay:()=>l});var r=n(97091),o=n(21334),i=n(40537);const a=e=>{const{clusters:t=[]}=e;let n=new Map;t.forEach((({versions:e=[]})=>{n=(0,i.HD)(e,n)}));const r=(0,i.Vm)(n);return t.map((e=>({...e,preparedVersions:(0,i.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=o.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"})},69053:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,TX:()=>p,Ke:()=>g});var r=n(14750),o=n(97091),i=n(959),a=n(11822),s=n(21334);const l="EndTime",c="IntervalEnd";function u(e,t){var n,o;const i=[],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===(o=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.from)||(null===t||void 0===t?void 0:t.from)))||void 0===o?void 0:o.valueOf();if(s&&a&&s>a)throw new Error("Invalid date range");if(s){const e=a===s?">=":">";i.push(`${l} ${e} Timestamp('${new Date(s).toISOString()}')`)}return a&&i.push(`${l} <= Timestamp('${new Date(a).toISOString()}')`),s||a||i.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&&i.push(`(QueryText ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%')`),i.join(" AND ")}const d="/*UI-QUERY-EXCLUDE*/",f=(0,o.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),o=(0,i.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${o}\nLIMIT 100\n`},g=s.F.injectEndpoints({endpoints:e=>({getTopQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{const o={...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,o,n),database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(t))throw t;return{data:(0,a.fW)(t)}}catch(i){return{error:i}}},forceRefetch:({currentArg:e})=>{var t,n,o,i;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===(o=e.filters)||void 0===o?void 0:o.from)&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.to))},providesTags:["All"]}),getRunningQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{try{const o=null!==t&&void 0!==t&&t.text?`Query ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%'`:"",s=(0,i.JD)(n),l=`SELECT ${d}\n UserSID, QueryStartAt, Query as QueryText, ApplicationName\n FROM\n \`.sys/query_sessions\`\n WHERE\n ${o||"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(o){return{error:o}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},72976:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,Jf:()=>i,sM:()=>a});const r="ENABLE_FULLSCREEN_MODE",o="DISABLE_FULLSCREEN_MODE";function i(){return{type:r}}function a(){return{type:o}}const s=function(e=false,t){switch(t.type){case o:return!1;case r:return!0;default:return e}}},40174:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>i});const r="header/SET_HEADER_BREADCRUMBS",o={pageBreadcrumbsOptions:{}};function i(e,t){return{type:r,page:e,options:t}}const a=(e=o,t)=>t.type===r?{page:t.page,pageBreadcrumbsOptions:t.options}:e},90565:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,f1:()=>c,nd:()=>l,ue:()=>i});var r=n(97091),o=n(21334);const i={currentMetric:void 0,sort:!1,heatmap:!1},a=(0,r.Z0)({name:"heatmap",initialState:i,reducers:{setHeatmapOptions:(e,t)=>({...e,...t.payload})}}),s=a.reducer,{setHeatmapOptions:l}=a.actions,c=o.F.injectEndpoints({endpoints:e=>({getHeatmapTabletsInfo:e.query({queryFn:async({path:e,database:t},{signal:n,getState:r,dispatch:o})=>{try{var i;const a=function([e,t]){const{TabletStateInfo:n=[]}=e,r=new Map,{PathDescription:o={}}=null!==t&&void 0!==t?t:{},{TablePartitions:i=[],TablePartitionStats:a=[],TablePartitionMetrics:s=[]}=o;n.forEach((e=>{e.TabletId&&r.set(e.TabletId,e)})),i.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!==(i=a.metrics)&&void 0!==i&&i.length){const e=r().heatmap.currentMetric;e&&a.metrics.find((t=>t.value===e))||o(l({currentMetric:a.metrics[0].value}))}return{data:a}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},81463:(e,t,n)=>{"use strict";n.d(t,{A:()=>E,d:()=>_});var r=n(96906),o=n(21334),i=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(10468),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 _={[o.F.reducerPath]:o.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:i.Ay,header:u.A,queryActions:h.Ay,fullscreen:c.Ay,clusters:s.Ay},E=(0,r.HY)({..._})},24600:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,m:()=>i});var r=n(53850),o=n(78034);const i=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=i.endpoints.getNodesList.select(void 0),s=(0,r.Mz)((e=>a(e).data),(e=>(0,o.nN)(e)))},47058:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,aD:()=>f,WD:()=>u});var r=n(97091),o=n(21334),i=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:o,bytes_written:s,partition_node_id:l=0}=e||{},{start:c="0",end:u="0"}=t||{};return{storeSize:n,writeSpeed:(0,i.ey)(s),partitionWriteLag:(0,a.i6)(o),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=o.F.injectEndpoints({endpoints:e=>({getPartitions:e.query({queryFn:async({path:e,database:t,consumerName:n},{signal:r})=>{try{if(n){const o=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,o=l(n),{endOffset:c}=o,{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{...o,partitionId:t,readSpeed:(0,i.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}})))(o.partitions);return{data:c}}{const n=await window.api.viewer.getTopic({path:e,database:t},{signal:r}),o=(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:o}}}catch(o){return{error:o}}},providesTags:["All"]})}),overrideExisting:"throw"})},10468:(e,t,n)=>{"use strict";n.d(t,{iZ:()=>w,Ay:()=>b,tS:()=>C,JK:()=>k,JO:()=>j,nO:()=>E,py:()=>I,Kz:()=>A,jY:()=>T,wf:()=>D,yJ:()=>P,Wp:()=>R,Ni:()=>N,P7:()=>x,Id:()=>O});var r=n(97091),o=n(59001),i=n(11822);const a={[i.PB.off]:0,[i.PB.toplevel]:4,[i.PB.basic]:9,[i.PB.detailed]:13,[i.PB.diagnostic]:14,[i.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,o={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"]}};return t.push(o),function e(r=[],o){r.forEach((r=>{var i;const a={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"],operators:null===(i=r.Operators)||void 0===i?void 0:i.map((e=>e.Name)),stats:d(r),tables:r.Tables}};t.push(a),n.push({from:o,to:a.name}),e(r.Plans,a.name)}))}(r.Plans,o.name),{nodes:t,links:n}}const h=Object.values({v2:"0.2"});const m=o.f.readUserSettingsValue(s.MB,[]),g=m.length-20,v={input:"",history:{queries:m.slice(g<0?0:g).map((function(e){return"string"===typeof e?{queryText:e}:e})),currentIndex:m.length>20?19:m.length-1,filter:""}},y=(0,r.Z0)({name:"query",initialState:v,reducers:{changeUserInput:(e,t)=>{e.input=t.payload.input},setQueryTraceReady:e=>{e.result&&(e.result.isTraceReady=!0)},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(s.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:l,endTime:c}=r;a.splice(i,1,{...e.history.queries[i],durationUs:l,endTime:c}),o.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}},selectors:{selectQueriesHistoryFilter:e=>e.history.filter||"",selectTenantPath:e=>e.tenantPath,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}}}),b=y.reducer,{changeUserInput:w,setQueryTraceReady:x,setQueryResult:_,saveQueryToHistory:E,updateQueryInHistory:S,goToPreviousQuery:k,goToNextQuery:C,setTenantPath:O,setQueryHistoryFilter:N}=y.actions,{selectQueriesHistoryFilter:T,selectQueriesHistoryCurrentIndex:A,selectQueriesHistory:I,selectTenantPath:P,selectResult:D,selectUserInput:R}=y.selectors,j=c.F.injectEndpoints({endpoints:e=>({useSendQuery:e.mutation({queryFn:async({actionType:e="execute",query:t,database:n,querySettings:r={},enableTracingLevel:o,queryId:s},{signal:c,dispatch:u})=>{u(_({type:e,queryId:s,isLoading:!0}));const{action:d,syntax:f}=function(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}}(e,null===r||void 0===r?void 0:r.queryMode);try{var m;const g=Date.now(),v=await window.api.viewer.sendQuery({query:t,database:n,action:d,syntax:f,stats:r.statisticsMode,tracingLevel:r.tracingLevel&&o?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,i.We)(v))return u(_({type:e,error:v,isLoading:!1,queryId:s})),{error:v};const y=function(e){var t,n,r;const o=(0,i.fW)(e),{plan:a,stats:s}=o;if(a){const{tables:e,meta:t,Plan:n,SimplifiedPlan:r}=(0,i.UF)(a);if(-1===h.indexOf(t.version))return{...o,preparedPlan:{pristine:a,version:t.version}};let s,l=[],c=[];if(n){const e=p(n);l=e.links,c=e.nodes}return r&&(s=function(e){const t=[],n=e.map((e=>({node:e})));for(;n.length>0;){var r;const{node:e,subNodes:o}=n.pop(),i=e.Plans,a=null===(r=e.Operators)||void 0===r?void 0:r[0],s=o||t;if(a){const{"A-Cpu":e,"A-Rows":t,"E-Cost":r,"E-Rows":o,"E-Size":l,SsaProgram:c,Name:u,...d}=a,f={name:u,operationParams:d,aCpu:e,aRows:t,eCost:r,eRows:o,eSize:l,children:[]};if(s.push(f),i)for(let a=i.length-1;a>=0;a--)n.push({node:i[a],subNodes:f.children})}else if(i)for(let t=i.length-1;t>=0;t--)n.push({node:i[t],subNodes:s})}return t}([r])),{...o,preparedPlan:{links:l,nodes:c,tables:e,version:t.version,pristine:a},simplifiedPlan:{plan:s,pristine:r}}}const l=null===s||void 0===s||null===(t=s.Executions)||void 0===t||null===(n=t[0])||void 0===n||null===(r=n.TxPlansWithStats)||void 0===r?void 0:r[0];if(l)try{const e=JSON.parse(l);return{...o,preparedPlan:{...p(e),pristine:e}}}catch{}return o}(v);if(y.traceId=null===v||void 0===v||null===(m=v._meta)||void 0===m?void 0:m.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-g),e.endTime=t}u(S({stats:e,queryId:s}))}return u(_({type:e,data:y,isLoading:!1,queryId:s})),{data:null}}catch(g){return u(_({type:e,error:g,isLoading:!1,queryId:s})),{error:g}}}})}),overrideExisting:"throw"})},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),o=n(76086),i=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,i.CN)(a,o.ld))&&void 0!==r?r:[]).filter((t=>t.name.toLowerCase()!==e.toLowerCase()));t((0,i.gc)(o.ld,s))}}function g(e){return function(t,n){var r;const a=n(),s=null!==(r=(0,i.CN)(a,o.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,i.gc)(o.ld,c))}}},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),o=n(97091),i=n(53850),a=n(21334);const s={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1},l=(0,o.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,...o}=t;return r?{...o,...e,[n]:r}:e}})}),overrideExisting:"throw"});function p(e){const t={},{PathDescription:{Children:n=[]}={},Path:r}=e;for(const o of n){const{Name:e=""}=o,n=`${r}/${e}`;t[n]={PathDescription:{Self:o},Path:n,partial:!0}}return t}function h({path:e,database:t}){const{currentData:n,isFetching:o,error:i,refetch:a,originalArgs:s}=f.useGetSchemaQuery({path:e,database:t}),l=null===n||void 0===n?void 0:n[e],c=o&&void 0===l,u=(null===s||void 0===s?void 0:s.path)===e?i:void 0,d=!c&&(!l&&!i||(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,i.Mz)((e=>e),((e,t)=>t),((e,t)=>f.endpoints.getSchema.select({path:e,database:t}))),g=(0,i.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]}))},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),o=n(59001),i=n(41650);const a={ALL:"All",PROBLEMS:"With problems"},s=o.f.extractSettingsFromLS(o.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})),o.f.setUserSettingsValue(e,t)};function m(e){"undefined"!==typeof window&&window.addEventListener("storage",(t=>{if(t.key&&t.key in o.c){const n=t.key;let r=o.c[n];null!==t.newValue&&(r=(0,i.qF)(t.newValue)),e.dispatch(u.actions.setSettingValue({name:n,value:r}))}}))}const g=u.reducer},46496:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Xx:()=>h,rF:()=>f});var r=n(14750),o=n(97091),i=n(959),a=n(11822),s=n(21334),l=n(87747);function c(e,t,n,o){const a=o?`CAST(SUBSTRING(CAST(Path AS String), ${o.length}) AS Utf8) AS Path`:"Path";let s=`Path='${e}' OR Path LIKE '${e}/%'`;const l=function(e){var t,n;const o=[],i=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&&i&&a>i)throw new Error("Invalid date range");if(a){const e=i===a?">=":">";o.push(`IntervalEnd ${e} Timestamp('${new Date(a).toISOString()}')`)}return i&&o.push(`IntervalEnd <= Timestamp('${new Date(i).toISOString()}')`),o.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,i.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,i.JD)(t)}\nLIMIT 20`}const d=(0,o.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:o})=>{try{const i=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:o,withRetries:!0});if((0,a.We)(i))return{error:i};return{data:(0,a.fW)(i)}}catch(i){return{error:i}}},providesTags:["All"],forceRefetch:({currentArg:e})=>{var t,n,o;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===(o=e.filters)||void 0===o?void 0:o.to))}})}),overrideExisting:"throw"})},87747:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=function(e){return e.Immediate="immediate",e.History="history",e}({})},52531:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>o,Dt:()=>r,iJ:()=>a,ml:()=>s,pA:()=>l,tQ:()=>i});const r="tenantPage",o={query:"query",diagnostics:"diagnostics"},i={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"}},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),o=n(59001),i=n(76086),a=n(21334),s=n(370),l=n(52531);const c={tenantPage:s.z.nativeEnum(l.Dg).catch(o.c[i.Mt]).parse(o.f.readUserSettingsValue(i.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(o){return{error:o}}},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"})},8861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,u:()=>r});const r={Unspecified:"Unspecified",Good:"Good",Warning:"Warning",Danger:"Danger"},o={[r.Unspecified]:0,[r.Good]:1,[r.Warning]:2,[r.Danger]:3}},56674:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,GJ:()=>c,gB:()=>s});var r=n(97091),o=n(21334),i=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=o.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 o;if(Array.isArray(r.TenantInfo)){const{singleClusterMode:e}=n();o=(0,i.T3)(r.TenantInfo,e)}else o=[];return{data:o}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},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 o=n(76086),i=n(41650),a=n(8861);const s=(e={})=>{const{CoresUsed:t,MemoryUsed:n,StorageAllocatedSize:o,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(o)||0,v=Number(u.Storage)||0,y=(0,i.kf)(a)?Number(a):void 0,b=(0,i.kf)(s)?Number(s):void 0,w=(0,i.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,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:c(o,i)}})):[{name:r.SSD,used:g,limit:b,usage:c(g,b)}],p?E=p.map((e=>{const{Type:t,Size:n,Limit:r}=e,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:c(o,i)}})):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,o=e.find((e=>e.Id===n.ResourceId)),a=null===o||void 0===o?void 0:o.Name,l=null===o||void 0===o?void 0:o.NodeIds,c=(e=>{var t,n;const r=null===(t=e.Name)||void 0===t?void 0:t.split("/"),o=null!==r&&void 0!==r&&r.length?r[r.length-1]:"\u2014",i=null===(n=e.ControlPlane)||void 0===n?void 0:n.name;return null!==i&&void 0!==i?i:o})(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,i.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>o.Ed?a.u.Danger:e>o.Hh?a.u.Warning:a.u.Good:a.u.Unspecified}},49818:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,DK:()=>c,oM:()=>a,w7:()=>l});var r=n(62060),o=n.n(r);const i="tooltip/HIDE_TOOLTIP",a="tooltip/UPDATE_REF",s={toolTipVisible:!1,currentHoveredRef:void 0,data:void 0,templateType:"cell"},l=()=>({type:i}),c=(e,t,n,r,o)=>({type:a,node:e,data:t,templateType:n,additionalData:r,positions:o}),u=(e=s,t)=>{switch(t.type){case i:return{...e,currentHoveredRef:void 0,toolTipVisible:!1};case a:return"cell"===t.templateType&&o()(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}}},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})},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}({})},6354:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,r:()=>o});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}({}),o=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}({})},15619:(e,t,n)=>{"use strict";n.d(t,{d:()=>l,z:()=>u});var r=n(76086),o=n(56839),i=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,t)=>{const n=10**t,r=s.tb.value*n,o=s.gb.value*n,i=s.mb.value*n;let a="b";return e>=s.kb.value*n&&(a="kb"),e>=i&&(a="mb"),e>=o&&(a="gb"),e>=r&&(a="tb"),a},c=(e,t,n=i.en)=>e+n+s[t].label,u=({value:e,size:t,withSpeedLabel:n=!1,withSizeLabel:r=!0,significantDigits:u=0,delimiter:d,...f})=>{if(!(0,i.kf)(e))return"";const p=Number(e),h=null!==t&&void 0!==t?t:l(p,u),m=(({value:e,size:t="mb",precision:n=0})=>{const r=(0,o.CR)(Number(e)/s[t].value,n);return(0,o.ZV)(r)})({value:p,size:h,...f});return n?((e,t)=>c(e,t)+(0,a.A)("perSecond"))(m,h):r?c(m,h,d):m}},82621:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(48372);const o=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"}'),i=(0,r.g4)("ydb-bytes-parsers",{en:o})},46549:(e,t,n)=>{"use strict";n.d(t,{ey:()=>i,z3:()=>r.z,dd:()=>r.d});var r=n(15619),o=n(76086);const i=e=>({perMinute:e&&e.per_minute?Math.round(Number(e.per_minute)/o.r0):0,perHour:e&&e.per_hour?Math.round(Number(e.per_hour)/o.Jg):0,perDay:e&&e.per_day?Math.round(Number(e.per_day)/o.tt):0})},40537:(e,t,n)=>{"use strict";n.d(t,{HD:()=>l,NN:()=>u,Vm:()=>c});var r=n(11078),o=n.n(r),i=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 o=(0,i.U)(e);t.has(n)||t.set(n,new Set),null===(r=t.get(n))||void 0===r||r.add(o)})),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,o)=>{if(n===s)t.set(e,a.OT);else{const i=Number(n)%a.lm.length,s=r.size,l=a.lm[i],c=Math.max(100-o*(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 o()(n,"version").map((e=>({...e,minorVersion:(0,i.U)(e.version)}))).reduce(((e,n)=>{const r=t.get(n.minorVersion);return e.push({...n,color:r}),e}),[])}},77506:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(82435).withNaming)({e:"__",m:"_"})},76086:(e,t,n)=>{"use strict";n.d(t,{Db:()=>l,Du:()=>p,ED:()=>j,Ed:()=>g,GT:()=>b,GV:()=>F,Gj:()=>te,Hh:()=>m,IO:()=>ee,J7:()=>s,Jg:()=>d,KF:()=>c,LK:()=>X,LQ:()=>T,MB:()=>A,Mt:()=>G,N3:()=>U,Nz:()=>w,Pd:()=>x,QM:()=>E,RY:()=>I,T5:()=>_,TJ:()=>O,U0:()=>ne,Xm:()=>Q,YQ:()=>W,av:()=>P,bk:()=>y,bs:()=>K,c4:()=>$,eh:()=>i,fY:()=>B,fr:()=>H,g5:()=>Y,hh:()=>z,iD:()=>D,jQ:()=>M,jS:()=>C,jX:()=>L,jp:()=>q,k4:()=>k,l_:()=>R,ld:()=>N,lr:()=>Z,oK:()=>S,pg:()=>a,r0:()=>u,s2:()=>J,tt:()=>f,zk:()=>V,zz:()=>h});var r=n(4557),o=n(6354);const i=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={[o.e.OldTxProxy]:"P",[o.e.TxProxy]:"P",[o.e.BSController]:"BS",[o.e.Dummy]:"DY",[o.e.RTMRPartition]:"RP",[o.e.PersQueueReadBalancer]:"PB",[o.e.Cms]:"CM",[o.e.BlockStorePartition]:"BP",[o.e.BlockStoreVolume]:"BV",[o.e.Console]:"CN",[o.e.TenantSlotBroker]:"TB",[o.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=["1 min","5 min","15 min"],w=5,x="\u2014",_="Developer UI",E="Cluster",S="Database",k="theme",C="language",O="invertedDisks",N="saved_queries",T="asideHeaderCompact",A="queries_history",I="binaryDataInPlainTextDisplay",P="auto-refresh-interval",D="caseSensitiveJsonSearch",R="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},q={...U,stickyHead:"fixed",dynamicRender:!1},$="queryExecutionSettings",H="last_query_execution_settings",W="querySettingsBannerLastClosed",V="last_used_query_action",K="partitionsHiddenColumns",G="saved_tenant_initial_tab",Y="enableNetworkTable",Z="useShowPlanToSvg",Q="showDomainDatabase",J="useClusterBalancerAsBacked",X="enableAutocomplete",ee="autocompleteOnEnter",te="isHotKeysHelpHidden",ne="enable_tracing_for_all_requests"},56839:(e,t,n)=>{"use strict";n.d(t,{tC:()=>v,z3:()=>g,iM:()=>D,r6:()=>R,lr:()=>w,ZV:()=>N,Nd:()=>k,l9:()=>T,Pt:()=>A,j9:()=>S,vX:()=>C,ki:()=>O,Ey:()=>j,wI:()=>_,vN:()=>M,H7:()=>x,CR:()=>I,U9:()=>y});var r=n(14750),o=n(15619),i=n(76086),a=n(79685),s=n(41650);function l(e,t,n,r,o,i,a=!1){let l=t(Number(n),0),c=!0,u=0;(0,s.kf)(r)&&(l=t(Number(r),0),c=a,u=1);return[e({value:n,withSizeLabel:c,size:o||l,precision:u,delimiter:i}),e({value:r,size:o||l,delimiter:i})]}var c=n(82621);const u={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,t)=>{const n=10**t;let r="thousand";return e>u.thousand.value*n&&(r="thousand"),e>=u.million.value*n&&(r="million"),e>=u.billion.value*n&&(r="billion"),e>=u.trillion.value*n&&(r="trillion"),r},f=({value:e,size:t,withSizeLabel:n=!0,significantDigits:r=0,delimiter:o,...i})=>{if(!(0,s.kf)(e))return"";const a=Number(e),l=null!==t&&void 0!==t?t:d(a,r),c=(({value:e,size:t="thousand",precision:n=0})=>{const r=I(Number(e)/u[t].value,n);return N(r)})({value:a,size:l,...i});return n?((e,t,n=s.en)=>e+n+u[t].label)(c,l,o):c};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 o;return o=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+o}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,i){return l(o.z,o.d,e,t,n,r,i)}function k(e,t,n,r,o){return l(f,d,e,t,n,r,o)}const C=(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/i.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)},D=e=>{if(void 0!==e)return(0,a.p)(P(e)).format("0.[000]")},R=(e,{withTimeZone:t,defaultValue:n=""}={})=>{var o;const i=t?" z":"",a=null===(o=(0,r.bQ)(Number(e)))||void 0===o?void 0:o.format(`YYYY-MM-DD HH:mm${i}`);return null!==a&&void 0!==a?a:n},j=(e,t="")=>{var n;const o=null===(n=(0,r.bQ)(e))||void 0===n?void 0:n.format("YYYY-MM-DD HH:mm:ss.SSS");return null!==o&&void 0!==o?o:t};function M(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},31684:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>s,Un:()=>i,Wg:()=>c,_t:()=>u,ar:()=>l,t1:()=>a});var r=n(58351),o=n(41650);function i(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,o.pY)(t);return s(e,n)+r},c=({nodeId:e,pDiskId:t,vDiskSlotId:n,host:r})=>{const i="/actors/vdisks/vdisk"+(0,o.pY)(t)+"_"+(0,o.pY)(n);return s(e,r)+i};function u(e,t,n="TabletID",o=r.Hs){return`${o}/tablets${t?`/${t}`:""}?${n}=${e}`}},90182:(e,t,n)=>{"use strict";n.d(t,{JN:()=>s.JN,Nt:()=>f,A5:()=>h,XS:()=>a.X,e4:()=>u,iK:()=>i.i,GY:()=>s.GY,YQ:()=>o.Y,N4:()=>r.N});var r=n(75022),o=n(51533),i=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,i.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)}),[])}},28232:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(67087);function o(){const[e]=(0,r.useQueryParam)("database",r.StringParam);return null!==e&&void 0!==e?e:void 0}},66781:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(59284);function o(e=600){const[t,n]=r.useState(!1),[o,i]=r.useState(0);r.useEffect((()=>{n(!1);const t=setTimeout((()=>{n(!0)}),e);return()=>{clearTimeout(t)}}),[e,o]);return[t,r.useCallback((()=>{i((e=>e+1))}),[])]}},95312:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var r=n(59284),o=n(67028),i=n(76086),a=n(11822),s=n(80967);const l=()=>{const e=(0,o.Oi)(),[t,n]=(0,s.i)(i.c4),l=a.dZ.parse(t),[c]=(0,s.i)(i.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]}},80967:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(59284),o=n(88610),i=n(51533),a=n(75022);const s=(e,t)=>{const n=(0,i.Y)();return[(0,a.N)((n=>{var r;return null!==(r=(0,o.CN)(n,e))&&void 0!==r?r:t})),r.useCallback((t=>{n((0,o.gc)(e,t))}),[n,e])]}},959:(e,t,n)=>{"use strict";n.d(t,{GY:()=>a,JD:()=>c,JN:()=>s});var r=n(59284),o=n(62060),i=n.n(o);function a({initialSortColumn:e,initialSortOrder:t=-1,fixedOrderType:n,multiple:o,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})))),o||(t=t.slice(0,1)),l((e=>t&&!i()(e,t)?(null===a||void 0===a||a(t),t):e))}),[n,o,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(", ")}`:""}},51533:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=n(97434).wA},75022:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(97434).d4},48372:(e,t,n)=>{"use strict";n.d(t,{JA:()=>s,oK:()=>l,Ru:()=>u,g4:()=>d});var r=n(1448),o=n(3357),i=n(59001),a=n(76086),s=function(e){return e.En="en",e.Ru="ru",e}(s||{});const l=s.En,c=i.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,o.jK)({lang:c})},7435:(e,t,n)=>{"use strict";n.d(t,{_e:()=>r,f8:()=>o,uk:()=>i});const r=e=>[...Array(e).keys()];function o(e){return null!==e&&void 0!==e}async function i(e,t){return new Promise((n=>{setTimeout((()=>n(t)),e)}))}},99006:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(59284),o=n(74417),i=n(34271),a=n(88632),s=n(60712);function l(e,t,n){const o=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,i.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)(o,{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)(o.a,{size:"l"})})}},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),o=n(88610),i=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===i.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,o,i,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===(o=e.SharedCacheStats)||void 0===o?void 0:o.LimitBytes)||void 0,p=(0,s.f8)(null===(i=e.SharedCacheStats)||void 0===i?void 0:i.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===o.s$.PROBLEMS,m=e=>e===l.SmallUptime?a.Jg:void 0},79685:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(7139),o=n.n(r),i=(n(97650),n(48372)),a=n(41650);Object.values(i.JA).forEach((e=>{o().locales[e]&&(o().locales[e].delimiters.thousands=a.en)})),o().locale(i.Ru.lang);const s=o()},69446:(e,t,n)=>{"use strict";n.d(t,{M6:()=>o,PG:()=>r,Zd:()=>i});const r=e=>e.replace(/\/viewer\/json/,""),o=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 o=n[0];return{balancer:t.replace(o+"/",""),proxy:o}},i=e=>o(e).balancer.replace(/:\d+$/,"")},77630:(e,t,n)=>{"use strict";n.d(t,{De:()=>i,Vk:()=>a});var r=n(69446);const o="https://",i=(e,t)=>{const n=null!==(i=e)&&void 0!==i&&i.startsWith("vm-")?`u-${i}`:i;var i;const a=(0,r.M6)(t).proxy;return a?o+a+"/"+n:o+n},a=(e,t,n)=>{const{Host:o,Endpoints:a,NodeId:s}=e;if(n&&s){return`${(0,r.PG)(t)}/node/${s}`}if(o&&a){var l;const e=null===(l=a.find((e=>"http-mon"===e.Name)))||void 0===l?void 0:l.Address;if(!e||!o)return null;return i(o+e,t)}return null}},11822:(e,t,n)=>{"use strict";n.d(t,{jU:()=>k,x5:()=>f,ei:()=>p,om:()=>h,pE:()=>l,Pn:()=>c,PB:()=>u,PX:()=>d,Wg:()=>a,_d:()=>s,nh:()=>m,We:()=>b,fW:()=>w,KH:()=>E,Cb:()=>S,UF:()=>x,vi:()=>_,dZ:()=>I,id:()=>A});var r=n(370);let o=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 i=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 o.Bool:return"boolean";case o.Int8:case o.Int16:case o.Int32:case o.Int64:case o.Uint8:case o.Uint16:case o.Uint32:case o.Uint64:case o.Float:case o.Double:case o.Decimal:return"number";case o.String:case o.Utf8:case o.Json:case o.JsonDocument:case o.Yson:case o.Uuid:return"string";case o.Date:case o.Datetime:case o.Timestamp:case o.Interval:case o.TzDate:case o.TzDateTime:case o.TzTimestamp:case o.Date32:case o.Datetime64:case o.Timestamp64:case o.Interval64:case o.TzDate32:case o.TzDatetime64:case o.TzTimestamp64:return"date";default:return}},g=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 o;return n&&(o=[]),t&&n&&(o=((e,t)=>e.map((e=>e.reduce(((e,n,r)=>{const{name:o}=t[r];return e[o]=n,e}),{}))))(t,n)),{columns:n,result:o,truncated:r}})),...n}},v=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]),y=e=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function b(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}function w(e){return y(e)?{}:v(e)?g(e):e}const x=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=>Array.isArray(e)?e.map((e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=typeof e[n];null!==e[n]&&"object"===r||"boolean"===r||Array.isArray(e[n])?t[n]=JSON.stringify(e[n]):t[n]=e[n]}return t})):[],E=e=>"string"===typeof e||b(e)?e:(0,i.TX)(e)?e.message:(0,i.qP)(e)?"data"in e&&b(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},k={queryMode:p.query,transactionMode:a.implicit,timeout:60,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.off},C=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:C,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(k.timeout)),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).optional().catch(k.limitRows)),queryMode:C.catch(k.queryMode),transactionMode:O.catch(k.transactionMode),statisticsMode:N.catch(k.statisticsMode),tracingLevel:T.catch(k.tracingLevel)}).catch(k)},81288:(e,t,n)=>{"use strict";n.d(t,{F0:()=>i,Pq:()=>a,TX:()=>r,qP:()=>o,uP:()=>s});const r=e=>Boolean(e&&"object"===typeof e&&"message"in e&&"Network Error"===e.message),o=e=>Boolean(e&&"object"===typeof e&&"status"in e);function i(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)}},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),o=n(56839),i=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,i.g4)("ydb-time-parsers",{ru:s,en:a}),c=(e,t=2)=>{const n=e%1e3;let o=Math.floor(e/1e3);const i=Math.floor(o/r.tt);o%=r.tt;const a=Math.floor(o/r.Jg);o%=r.Jg;const s=Math.floor(o/60);o%=60;const c=o,u={days:i,hours:a,minutes:s,seconds:c,ms:n};if(2===t){if(i>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(i>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,o.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,o.CR)(Number(e)/1e3,t):0},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 o=[" B"," KB"," MB"," GB"," TB"," PB"," EB"],i=1e3;function a(e){const t=function(e){const t=Number(e);if(isNaN(t))return"";const n=t/i**2;return n<10?n.toFixed(2)+o[2]:n<100?n.toFixed(1)+o[2]:n.toFixed()+o[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()+o[3]:r<10?r.toFixed(2)+o[3]:r<100?r.toFixed(1)+o[3]:r.toFixed()+o[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"},66592:(e,t,n)=>{"use strict";n.d(t,{OT:()=>a,_n:()=>s,lm:()=>i,s5:()=>o});var r=n(38596);const o=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return 0|n}),0),i=["#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:o(e)}))),n=new Map;let r=i.length-1;return t.sort(((e,t)=>e.hash-t.hash)).forEach((t=>{if(/^(\w+-)?stable/.test(t.version)){r=(r+1)%i.length,n.set(t.version,i[r]);const a=Array.from(e.get(t.version)||[]).filter((e=>e!==t.version)).map((e=>({version:e,hash:o(e)}))),s=a.length;a.sort(((e,t)=>t.hash-e.hash)).forEach(((e,t)=>{const o=i[r],a=Math.max(100-t*(100/s),20),l=`${o}${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 o=(0,r.Q)(e),i=(0,r.U)(e);t.has(o)||t.set(o,new Set),null===(n=t.get(o))||void 0===n||n.add(i)})),t))(e))},38596:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,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},o=e=>{const t=r(e);return/\d{1,}-\d{1,}-\d{1,}/.test(t)?t.replace(/-\d{1,}$/,""):t}},31560:(e,t)=>{"use strict";function n(e){function t(t,o,i,a){var s=o?n+t+e.e+o:n+t,l=s;if(i){var c=" "+l+e.m;for(var u in i)if(i.hasOwnProperty(u)){var d=i[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,o,i){return"string"==typeof r?"string"==typeof o||Array.isArray(o)?t(e,r,void 0,o):t(e,r,o,i):t(e,n,r,o)}}}n({e:"-",m:"_"}),t.withNaming=n},82435:(e,t,n)=>{"use strict";e.exports=n(31560)},16332:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>A,Kq:()=>O,hS:()=>_,kz:()=>S,vt:()=>E});var r=n(59284),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}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,i;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,c=a.args;return o(o({},e),((n={})[l]=o(o({},e[l]),{id:l,args:c,visible:!!d[l],delayVisible:!d[l]}),n));case"nice-modal/hide":return e[l=t.payload.modalId]?o(o({},e),((r={})[l]=o(o({},e[l]),{visible:!1}),r)):e;case"nice-modal/remove":l=t.payload.modalId;var u=o({},e);return delete u[l],u;case"nice-modal/set-flags":var f=t.payload,p=(l=f.modalId,f.flags);return o(o({},e),((i={})[l]=o(o({},e[l]),p),i));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,o,i=new Promise((function(e,t){r=e,o=t}));g[n]={resolve:r,reject:o,promise:i}}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,o=new Promise((function(e,t){n=e,r=t}));v[t]={resolve:n,reject:r,promise:o}}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),o=(0,r.useContext)(c),i=null,a=e&&"string"!==typeof e;if(!(i=e?y(e):o))throw new Error("No modal id found in NiceModal.useModal.");var s=i;(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=i(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,o({},f,m))):null}},S=function(e,t,n){u[e]?u[e].props=n:u[e]={comp:t,props:n}},k=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 o({id:e},u[e])}));return r.createElement(r.Fragment,null,n.map((function(e){return r.createElement(e.comp,o({key:e.id,id:e.id},e.props))})))},C=function(e){var t=e.children,n=(0,r.useReducer)(m,s),o=n[0];return p=n[1],r.createElement(l.Provider,{value:o},t,r.createElement(k,null))},O=function(e){var t=e.children,n=e.dispatch,o=e.modals;return n&&o?(p=n,r.createElement(l.Provider,{value:o},t,r.createElement(k,null))):r.createElement(C,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=i(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,o({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()}}}}},22551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},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"}},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 o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=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}),o(n(22551),t),o(n(95197),t),o(n(71165),t)},71165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=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,o=t.lang,s=a.default.locale(o||l.settings.getLocale(),void 0,!0);return y({ts:b(n,i.UtcTimeZone,r,o,!0)[0],timeZone:i.UtcTimeZone,offset:0,locale:s})};var i=n(72328),a=o(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||i.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 o=this.valueOf();return t&&(o-=60*(r-this._offset)*1e3),y({ts:o,timeZone:i.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()),o=this.valueOf(),i=(0,c.timeZoneOffset)(r,o);return t&&(o+=60*this._offset*1e3,o=(n=(0,c.fixOffset)(o,i,r))[0],i=n[1]),y({ts:o,timeZone:r,offset:i,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 o=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system")[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!o.isValid())return NaN;var i=(0,u.normalizeDurationUnit)(n||"millisecond"),a=6e4*(o.utcOffset()-this.utcOffset()),s=0;switch(i){case"years":s=(0,u.monthDiff)(this,o)/12;break;case"quarters":s=(0,u.monthDiff)(this,o)/3;break;case"months":s=(0,u.monthDiff)(this,o);break;case"weeks":s=(this.valueOf()-o.valueOf()-a)/6048e5;break;case"days":s=(this.valueOf()-o.valueOf()-a)/864e5;break;case"hours":s=(this.valueOf()-o.valueOf())/36e5;break;case"minutes":s=(this.valueOf()-o.valueOf())/6e4;break;case"seconds":s=(this.valueOf()-o.valueOf())/1e3;break;default:s=this.valueOf()-o.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||i.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||i.INVALID_DATE_STRING;var o=r,a=this,l=!1;a.isBefore(o)&&(o=this,a=r,l=!0);var c=a.month()-o.month()+12*(a.year()-o.year());o.add(c,"months").isAfter(a)&&c--;var u=a.valueOf()-o.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(i.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,o;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 k=this.weekInfo();if(S){var C=g(this._localeData),O=C.minDaysInFirstWeek,N=C.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:k.weekday)+1,weekNumber:null!==v&&void 0!==v?v:k.weekNumber,weekYear:null!==b&&void 0!==b?b:k.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?k.isoWeekday:E||7,weekNumber:null!==x&&void 0!==x?x:k.isoWeekNumber,weekYear:null!==_&&void 0!==_?_:k.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===i.UtcTimeZone?A-=60*I*1e3:(A=(o=(0,c.fixOffset)(A,I,this._timeZone))[0],I=o[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||i.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(i.INVALID_DATE_STRING," }")},e.prototype.addSubtract=function(e,t,n){var o;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===i.UtcTimeZone?l-=60*d*1e3:(l=(o=(0,c.fixOffset)(l,d,a))[0],d=o[1])}return g&&(l+=n*g,a!==i.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,o=e.locale||"en",i=a.default.Ls[o],s=!isNaN(Number(new Date(t)));return new m({ts:t,timeZone:n,offset:r,locale:o,localeData:i,isValid:s})}function b(e,t,n,r,o){var s,u,d,p;if(void 0===o&&(o=!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(o)d=a.default.utc(e,n,i.STRICT).valueOf();else{var h=a.default.locale(r||l.settings.getLocale(),void 0,!0);d=(n?(0,a.default)(e,n,h,i.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,o=t.timeZone,i=t.lang,s=(0,c.normalizeTimeZone)(o,l.settings.getDefaultTimeZone()),u=a.default.locale(i||l.settings.getLocale(),void 0,!0),d=b(n,s,r,i);return y({ts:d[0],timeZone:s,offset:d[1],locale:u})}},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=o.settings.getLocaleData());var i=l(n,r.formats);return i.replace(c,(function(t){return u[t]?u[t](e,r,i):d(t)}))};var r=n(72328),o=n(77966),i=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=o.settings.getLocaleData().formats)&&void 0!==n?n:r.englishFormats);for(var i=e,l=0;l<5;l++){var c=i.replace(s,(function(e,n,o){if(o){var i=o.toUpperCase();return t[o]||r.englishFormats[o]||a(t[i]||r.englishFormats[i])}return n}));if(c===i)break;i=c}return i}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,o=e.index,i=e.fullData,a=e.maxLength,s="";if(r&&(s="function"===typeof r?r(t,n):r[o]),!s&&i&&(s="function"===typeof i?i(t,n):i[o])&&(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)),o="";return e<0?o="-":n&&(o="+"),"".concat(o).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,i.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"short"})},u.zz=function(e){return(0,i.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)}},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 o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=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}),o(n(40453),t),o(n(29863),t)},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],o=n[1],i=void 0===o?0:o,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:i,date:l,hour:u,minute:f,second:h,millisecond:void 0===m?0:m},t)},t.getTimestampFromObject=s;var r=n(84080),o=n(13064);var i={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,o.normalizeDateComponents)(e,o.normalizeComponent);s.date=null!==(n=s.day)&&void 0!==n?n:s.date;for(var l=(0,o.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?i[f]:l[f]}var p=(0,r.fixOffset)((0,o.objToTS)(s),(0,r.timeZoneOffset)(t,Date.now()),t);return[p[0],p[1]]}},16244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=function(e,t,o){void 0===t&&(t=r);void 0===o&&(o=!1);for(var i,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(i=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,o,c.l,i);break}}if(o)return s;var f=i?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"}},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,o,a,s=t.roundUp,l=t.timeZone,c="";"now"===e.substring(0,3)?(n=(0,r.dateTime)({timeZone:l}),c=e.substring(3)):(-1===(o=e.indexOf("||"))?(a=e,c=""):(a=e.substring(0,o),c=e.substring(o+2)),n=(0,r.dateTime)({input:a,timeZone:l}));if(!n.isValid())return;if(!c.length)return n;return i(c,n,s)},t.parseDateMath=i;var r=n(60166),o=["y","Q","M","w","d","h","m","s"];function i(e,t,n){for(var r=e.replace(/\s/g,""),i=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(!o.includes(f))return;0===c?i=n?i.endOf(f):i.startOf(f):1===c?i=i.add(u,f):2===c&&(i=i.subtract(u,f))}return i}},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 o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=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}),o(n(57855),t)},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 o=r(n(88409)),i=r(n(54533)),a=r(n(20549)),s=r(n(77354)),l=n(72328);o.default.extend(i.default),o.default.extend(s.default),o.default.extend(a.default),o.default.Ls.en.formats=l.englishFormats,t.default=o.default},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,o.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,i.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 o.DurationImpl({values:(0,r.normalizeDateComponents)(l,r.normalizeDurationUnit),locale:u})};var r=n(11345),o=n(57491),i=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}},57491:function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}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:o(o({},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(),o=this.milliseconds();if("months"===t||"quarters"===t||"years"===t){var i=r+function(e){return 4800*e/146097}(n+o/864e5);switch(t){case"months":return i;case"quarters":return i/3;case"years":return i/12}}var a=n+function(e){return 146097*e/4800}(r);switch(t){case"weeks":return a/7+o/6048e5;case"days":return a+o/864e5;case"hours":return 24*a+o/36e5;case"minutes":return 1440*a+o/6e4;case"seconds":return 86400*a+o/1e3;case"milliseconds":return Math.floor(864e5*a)+o;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(),o=(0,u.createDuration)(t,n).toObject(),i=0,a=Object.entries(o);i<a.length;i++){var s=a[i],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 o=r[n],i=o[0],a=o[1];t[i]=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()?o({},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,o(o({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=i(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,o(o({useGrouping:!1},y),{minimumIntegerDigits:_.padTo})),k=g?Math.floor(E):E;p+=S.format(k)}else{k=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(k<0?"-":"").concat(Math.abs(k).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},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 o=n(57491);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return o.isDuration}})},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);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,o=30.436875,i=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:o,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 o,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,o=a.slice(1);r<o.length;r++){var s=o[r],l=e[s];l&&(n+=l*i[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!==(o=h[g])&&void 0!==o?o:0)*m,b=i[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)+_*i[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 o=r[n],i=o[0],a=o[1];0!==a&&(t[i]=a)}return t}function c(e,n,r){var o;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+=i[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!==(o=l[a])&&void 0!==o?o:0)+(x===a?_:_/i[a][x]))}var E;(E=l[a])&&(l[a]=Math.round(1e3*E)/1e3)}return s(l,r)}},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 o=n(49837);var i=n(43160);Object.defineProperty(t,"bQ",{enumerable:!0,get:function(){return i.dateTimeParse}}),Object.defineProperty(t,"eP",{enumerable:!0,get:function(){return i.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}})},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 o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=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}),o(n(16445),t)},16445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeParse=void 0,t.isLikeRelative=i,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(o){return!1}};var r=n(60166),o=n(77966);function i(e){return"string"===typeof e&&o.settings.getRelativeParser().isLikeRelative(e)}t.dateTimeParse=function(e,t){if(void 0!==e){var n=function(e,t){var n;if(i(e)){if(null!==(n=null===t||void 0===t?void 0:t.allowRelative)&&void 0!==n&&!n)return;return o.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}}},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 o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=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}),o(n(32213),t)},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))}}},32213:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(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())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=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(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;var a=i(n(58671)),s=n(49837),l=i(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 o(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},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 o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=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}),o(n(71765),t)},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);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,o=c(n,r);if(t===o)return[r,t];var i=c(n,r-=60*(o-t)*1e3);if(o===i)return[r,o];return[e-60*Math.min(o,i)*1e3,Math.min(o,i)]},t.parseZoneInfo=function(e){var t=e.timeZone,n=e.ts,o=e.locale,i=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:i},s),c=new Intl.DateTimeFormat(o,l).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:""};var o=n(72328),i=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,o={year:1,month:1,day:1,hour:0,minute:0,second:0,era:"AD"},a=0,c=(0,i.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?o.era=f:(r=d,l.includes(r)&&(o[d]=parseInt(f,10)))}var p="BC"===o.era?1-Math.abs(o.year):o.year,h=o.month-1,m=24===o.hour?0:o.hour,g=Date.UTC(p,h,o.day,m,o.minute,o.second,0);if(p<100&&p>=0){var v=new Date(g);v.setUTCFullYear(p,h,o.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 o.UtcTimeZone;if("system"===n)return"system";if("default"===n)return t;if(s(e))return e;throw new Error("InvalidZone: ".concat(e))}},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 o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=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}),o(n(11345),t)},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=i.get(n);r||(r=new Intl.DateTimeFormat(e,t),i.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=o.default.Ls[e];if(!t)throw new Error("Locale ".concat(e," is not loaded"));return t};var o=r(n(38960)),i=new Map;var a=new Map;var s=new Map},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 o(e){return r(e)?366:365}Object.defineProperty(t,"__esModule",{value:!0}),t.floorMod=n,t.isLeapYear=r,t.daysInYear=o,t.daysInMonth=function(e,t){var o=n(t,12),i=e+(t-o)/12;return 1===o?r(i)?29:28:[31,-1,31,30,31,30,31,31,30,31,30,31][o]},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 i)return i[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,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],l=i[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],o=r[0],i=r[1],a=r[2],s=Number(60*Number(i))+(isFinite(Number(a))?Number(a):0);return"+"===o?s:-s},t.computeOrdinal=h,t.uncomputeOrdinal=m,t.isoWeekdayToLocal=g,t.gregorianToWeek=function(e,t,n){var r=e.year,o=e.month,i=e.date,a=u(r,o,i),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,i=e.weekYear,a=e.weekNumber,s=e.weekday,l=g(d(i,0,t),n),c=o(i),u=7*a+s-l-7+t;u<1?u+=o(r=i-1):u>c?(r=i+1,u-=o(i)):r=i;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,o=12*(n.year()-t.year())+(n.month()-t.month()),i=t.add(o,"months");if(n.valueOf()-i.valueOf()<0){var a=t.add(o-1,"months");r=(n.valueOf()-i.valueOf())/(i.valueOf()-a.valueOf())}else{a=t.add(o+1,"months");r=(n.valueOf()-i.valueOf())/(a.valueOf()-i.valueOf())}return-(o+r)||0};var i={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,o=r(t)?p:f,i=o.findIndex((function(e){return e<n}));return{month:i,date:n-o[i]}}function g(e,t){return(e-t+7)%7+1}function v(e,t,n){var r,o=e.year,i=e.month,a=e.date,s=g(d(o,i,a),n),l=h({year:o,month:i,date:a}),c=Math.floor((l-s+14-t)/7);return c<1?c=b(r=o-1,t,n):c>b(o,t,n)?(r=o+1,c=1):r=o,{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),i=y(e+1,t,n);return(o(e)-r+i)/7}},1448:(e,t,n)=>{"use strict";n.d(t,{TH:()=>u});const r=/{{(.*?)}}/g;const o=()=>new RegExp(/\$t{([^}]+)}/g);var i;!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"}(i||(i={}));Object.values(i);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:o,key:i}){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)||i;if(!r)return o("Can not use deprecated plural format without pluralizers"),i;if(r[n]||o(`Pluralization is not configured for language '${n}', falling back to the english ruleset`),e.length<3)return o("Missing required plurals"),i;const s=r[n]||r.en;return s?e[s(t,a)]||e[a.Many]||i:(o("Fallback pluralization is not configured!"),i)}!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:o=null}=e;this.fallbackLang=n,this.lang=r,this.logger=o,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 o=this.getLanguageData(n);return Boolean(o&&o[e]&&(null===(r=o[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 o="";t?(o+=t,n&&(o+=`.${n}`)):o="languageData",null===(r=this.logger)||void 0===r||r.log(`I18n: ${e}`,{level:"info",logger:o,extra:{type:"i18n"}})}getLanguageData(e){const t=e||this.lang;return t?this.data[t]:void 0}_i18n(e,t,n,r){const{text:o,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 o=`Using language ${r}. `;switch(t){case i.EmptyKeyset:o+="Keyset is empty.";break;case i.EmptyLanguageData:o+="Language data is empty.";break;case i.KeysetNotFound:o+="Keyset not found.";break;case i.MissingKey:o+="Missing key.";break;case i.MissingKeyFor0:return o+="Missing key for 0",o;case i.MissingKeyParamsCount:o+="Missing params.count for key.";break;case i.MissingKeyPlurals:o+="Missing required plurals.";break;case i.NoLanguageData:o=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(o+=` Trying to use fallback language "${n}"...`),o}({code:a.code,lang:n,fallbackLang:this.fallbackLang===n?void 0:this.fallbackLang});this.warn(e,a.keysetName,a.key)}return o}}class d{constructor(e,t,n,r,o,i){this.i18n=e,this.lang=t,this.key=n,this.keysetName=r,this.params=o,this.nestingDepth=null!==i&&void 0!==i?i: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(i.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=o().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(i.NestedPlural);const r=Number(null===(e=this.params)||void 0===e?void 0:e.count);if(Number.isNaN(r))return this.getTranslationDataError(i.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,o="",i=r.lastIndex=0;for(;n=r.exec(e);){i!==n.index&&(o+=e.slice(i,n.index)),i=r.lastIndex;const[a,s]=n;s&&Object.prototype.hasOwnProperty.call(t,s)?o+=t[s]:o+=a}return i<e.length&&(o+=e.slice(i)),o}(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(i.NoLanguageData);if(0===Object.keys(e).length)return this.getTranslationDataError(i.EmptyLanguageData);const t=e[this.keysetName];return t?0===Object.keys(t).length?this.getTranslationDataError(i.EmptyKeyset):{data:t}:this.getTranslationDataError(i.KeysetNotFound)}replaceTranslationsInheritance(e){const{keyValue:t}=e,n=o();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,o]=r;if(o){if(this.nestingDepth+1>1)return this.getTranslationDataError(i.ExceedTranslationNestingDepth);let[e,t]=[o,void 0];const n=o.split("::");if(n.length>1&&([t,e]=[n[0],n[1]]),!e)return this.getTranslationDataError(i.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(i.MissingInheritedKey);a+=r.text}else a+=e}return s<t.length&&(a+=t.slice(s)),{text:a}}}},112:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},13066:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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:"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"}))},9187:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},38602:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},70825:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},43937:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},73633:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},51016:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},7450:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},27738:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},66821:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},49917:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},27612:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},94420:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},81240:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=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"}))},92209:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,b:()=>i});var r=n(82435);const o="gn-";(0,r.withNaming)({e:"__",m:"_"});const i=(0,r.withNaming)({n:o,e:"__",m:"_"})},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 o=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i="object"==typeof r&&r&&r.Object===Object&&r,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||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(i){}var o=y.call(e);return r&&(t?e[b]=n:delete e[b]),o},x=Object.prototype.toString;var _=w,E=function(e){return x.call(e)},S=h?h.toStringTag:void 0;var k=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?_(e):E(e)},C=function(e){return null!=e&&"object"==typeof e};var O=p,N=o,T=function(e){return"symbol"==typeof e||C(e)&&"[object Symbol]"==k(e)},A=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,P=/^0o[0-7]+$/i,D=parseInt;var R=o,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)?D(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,o,i,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,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}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,i-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=j(),n=h(e);if(r=arguments,o=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,R(n)&&(u=!!n.leading,i=(d="maxWait"in n)?L(M(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(j())},v}},16258:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(92209).b)("aside-header")},6388:(e,t,n)=>{"use strict";n.d(t,{M3:()=>i,N2:()=>l,NS:()=>s,Q7:()=>a,Uc:()=>u,VU:()=>r,xN:()=>o,zQ:()=>c});const r=1,o=-1,i="left",a="center",s="right",l="fixed",c="moving",u="__index__"},4557:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>D});var r=n(27145),o=n(59284),i=n(56993),a=n.n(i),s=n(82435),l=n(6388);const c=(0,s.withNaming)({e:"__",m:"_"})("data-table");function u({name:e,defaultOrder:t},{sortOrder:n={},sortColumns:o=[]},i=!1,{defaultOrder:a,disableSortReset:s}={}){const c=t||a,u={sortOrder:{},sortColumns:[]};if(!e)return i?{sortOrder:n,sortColumns:o}:u;let d=o;const f=n[e];let p=c;if(f&&(p=f===c||s?f===l.VU?l.xN:l.VU:void 0),!i)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(o).has(e)||(d=[...o,e])):d=o.filter((t=>t!==e)),{sortOrder:g,sortColumns:d}}function d(e,t,n={}){const r=t,{sortAscending:o}=e;return"function"===typeof o?(e,t)=>r*o(e,t):(t,o)=>{const i=e._getSortValue(t.row),a=e._getSortValue(o.row);return null==i&&null!=a?n.nullBeforeNumbers?-r:1:null==a&&null!=i?n.nullBeforeNumbers?r:-1:i<a?Number(-r):i>a?Number(r):0}}function f(e,t,{sortOrder:n,sortColumns:r},o){const i={};t.forEach((e=>{n[e.name]?i[e.name]=d(e,n[e.name],o):e.group&&e.autogroup&&(i[e.name]=d(e,l.VU,o))}));const a=t.filter((e=>e.group)),s=a.length>0,c=[...a.map((e=>i[e.name])).filter(Boolean),...r.map((e=>i[e])).filter(Boolean)],u=e.map(((e,t)=>s?{row:e,index:t,span:{}}:{row:e,index:t}));if(c.length&&!o.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,o)=>{const i=r._getValue(n.row);return e[o]&&i===t[o]?(e[o].span[r.name]+=1,n.span[r.name]=0,!0):(a.slice(o).forEach(((r,i)=>{e[o+i]=n,t[o+i]=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:i,onResize:a}){const s=o.useRef(null),[l,u]=o.useState(!1);return o.useEffect((()=>{const o=s.current;if(!o)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,o=function(e,t=40,n=1/0){return Math.max(t,Math.min(e,n))}(c+t,r,i);o!==d&&(d=o,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 o.addEventListener("mousedown",h),()=>{o.removeEventListener("mousedown",h),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}}),[n,a,r,i,e,t]),o.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=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.createElement("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})),w=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.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?o.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 o.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:i,footer:a,span:s,getColSpansOfRow:l,headerData:u}=this.props,d=l?l(this.props):void 0;let f=0;return o.createElement("tr",{className:c("row",{odd:i,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 i;if(s){if(0===s[e.name])return null;i=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})),o.createElement("td",{key:t,className:e._className,title:e._getTitle(n),style:c,colSpan:d?d[e.name]:void 0,rowSpan:i,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 o.Component{constructor(){super(...arguments),this._dataRowsRef=null,this.renderedColumns=[],this.renderHeadCell=e=>{var t;const{onResize:n}=this.props,{column:r,rowSpan:i,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})),o.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:i,style:x,onClick:this._getOnSortClick(r)},o.createElement("div",{className:c("head-cell")},l,o.createElement(_,Object.assign({},r))),v&&o.createElement(h,{getColumn:this._getRenderedColumn,columnIndex:f,onResize:n,columnId:m,minWidth:y,maxWidth:b}))},this.renderHeadLevel=(e,t)=>o.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,o.createElement(o.Fragment,null,o.createElement("thead",{className:c("head")},e.map(this.renderHeadLevel)),void 0===n?null:o.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 k extends o.Component{constructor(){super(...arguments),this.state={style:{top:k.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,i=(0,r.Tt)(e,["mode","top"]);if(t===l.zQ){const{style:e}=this.state;return o.createElement("div",{className:c("sticky",{moving:!0,head:!0}),style:e},this.renderHeader(i))}{const{widths:e=[],right:t=0}=this.state,n=e.reduce(((e,t)=>e+t),0);return o.createElement("div",{ref:this._nodeRef,className:c("sticky",{fixed:!0,head:!0}),style:{right:t,display:n?void 0:"none"}},this.renderHeader(i))}}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 o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.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})}}k.defaultProps={top:0};class C extends o.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 o.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 o.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 o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.createElement("tbody",null,e)))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}C.defaultProps={bottom:0};class O extends o.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:o,span:i}=t[e];return this.renderRowImpl(r,o,{onRowClick:n,odd:e%2===0,span:i})},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:i,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 o.createElement(E,{getColSpansOfRow:d,key:u(e,t),className:f,columns:l,row:e,index:t,span:i,odd:r,onClick:n,footer:a,headerData:s})},this.renderTable=(e,t)=>{const{footerData:n,columns:{dataColumns:r},settings:{stickyHead:i}}=this.props,{movingHeaderStyle:a,movingFooterStyle:s}=this.state,u=this.getStickyFooterMode();return o.createElement("div",{className:c("table-wrapper"),style:u===l.zQ?s:void 0},o.createElement("table",{className:c("table"),style:i===l.zQ?a:void 0},o.createElement("colgroup",null,r.map((({width:e},t)=>o.createElement("col",{key:t,width:e})))),this.renderHead(),o.createElement("tbody",{ref:t},e.length?e:this._getEmptyRow()),n&&o.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 o.createElement("div",{className:e,ref:this._refBody},t&&this.renderStickyHead(),o.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):o.createElement("tr",{className:c("row")},o.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,i=this.renderHeaderRows();return o.createElement(S,Object.assign({ref:this._refHead},e,{displayIndices:Boolean(r),onSort:t,onResize:n,onColumnsUpdated:this._onColumnsUpdated,renderedDataRows:i}))}renderStickyHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r,stickyTop:i,stickyHead:a}=this.props.settings,s="auto"===i&&this._body&&this._body.parentNode?this._body.parentNode.offsetTop:Number(i)||0,l=this.renderHeaderRows();return o.createElement(k,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 o.createElement(C,{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:i,dynamicRenderMinSize:s,dynamicRenderScrollParentGetter:l,dynamicRenderScrollParentViewportSizeGetter:c,dynamicItemSizeEstimator:u,dynamicItemSizeGetter:d}={}}=this.props;return o.createElement(a(),{ref:t,type:n,useStaticSize:r,threshold:i,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=o.memo((function(e){const{column:t,value:n,row:r,index:i,footer:a,headerData:s}=e;return o.createElement(o.Fragment,null,t.render({value:n,row:r,index:i,footer:a,headerData:s}))}));class T extends o.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:i,headerData:a})=>o.createElement(N,{column:e,value:t,row:n,index:r,footer:i,headerData:a}),this.getColumn=(e,t)=>{var n;const{onResize:r}=this.props,{settings:o}=this.state,{defaultOrder:i}=o,{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=o.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:o.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):_,k="function"===typeof e.render?({value:t,row:n,index:r,footer:o,headerData:i})=>this.renderMemoizedCell({column:e,value:t,row:n,index:r,footer:o,headerData:i}):({value:e})=>e,C="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:i},e),{resizeable:x,sortable:m&&d,_className:w,_getValue:_,_getTitle:E,_getSortValue:S,_renderValue:k,_getOnClick:O,customStyle:C,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:o}=this.props;if("function"===typeof o){const e=function(e){return Object.keys(e).map((t=>({columnId:t,order:e[t]})))}(n);o(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}){const r=e+t.length+1;return{name:l.Uc,header:"#",className:c("index"),render:({row:t,index:r,footer:o,headerData:i})=>{var a,s;return i?null!==(a=t.headerIndex)&&void 0!==a?a:e+r:o?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(r))}}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:i,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(i);return v.dynamicRender&&S.dataColumns.some((e=>e.group))&&console.warn("Simultaneously used grouping cells and dynamic render. The table will render unpredictable."),o.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:o}=this.state,i=o?[o,...e]:e,a=(e,o)=>{t[o]||(t[o]=[]);const i=t[o];return e.reduce(((e,t)=>{let s=1,l=-1,c=t;if(Array.isArray(t.sub))s=a(t.sub,o+1);else{const e=this.getColumn(t,n.length);n.push(e),l=o,c=e}const u={column:c,itemLevel:l,colSpan:s,rowSpan:0};return r.push(u),i.push(u),s+e}),0)};return a(i,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 o.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?o.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)):o.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 D=P},18650:(e,t,n)=>{"use strict";n.d(t,{m:()=>S});var r=n(27145),o=n(59284),i=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=o.forwardRef((function(e,t){const{value:n,platform:r,view:i="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",o=l[r];return m(o,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,o.createElement("span",{key:`${e}_${t}_${n}_plus`,className:v("plus")},"+"),y.BetweenKeys),d.push(o.createElement("kbd",{key:`${e}_${t}_${n}`},e))})))})),0===d.length?null:o.createElement("kbd",{ref:t,style:s,"data-qa":a,className:v({view:i},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]=o.useState(null),k=(0,a.d)(y,v),C=o.Children.only(l),O=(0,x.Q)(C),N=(0,i.N)(S,O);return o.createElement(o.Fragment,null,o.cloneElement(C,{ref:N}),y?o.createElement(w.z,{id:m,disablePortal:g,role:"tooltip",className:E(null,c),style:p,open:k&&!f,placement:t,anchorRef:{current:y},disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:h},o.createElement("div",{className:E("content",u)},o.createElement("div",{className:E("heading")},o.createElement("div",{className:E("title")},n),s&&o.createElement(b,{view:"dark",value:s,className:E("hotkey")})),d&&o.createElement("div",{className:E("description")},d))):null)}},33705:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(59284),o=n(13066),i=n(99991);const a=(0,n(69220).om)("arrow-toggle");function s({size:e=16,direction:t="bottom",className:n,qa:s}){return r.createElement("span",{style:{width:e,height:e},className:a({direction:t},n),"data-qa":s},r.createElement(i.I,{data:o.A,size:e}))}},84476:(e,t,n)=>{"use strict";n.d(t,{$:()=>m});var r=n(59284),o=n(69220),i=n(10176),a=n(11669),s=n(41668),l=n(27629);const c=(0,o.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,o.om)("button"),h=r.forwardRef((function({view:e="normal",size:t="m",pin:n="round-round",selected:o,disabled:i=!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:k,style:C,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:k,style:C,className:p({view:e,size:t,pin:n,selected:o,disabled:i||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":i||s}),b(S))}return r.createElement("button",Object.assign({},v,A,{ref:T,type:d,disabled:i||s,"aria-pressed":o}),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,i.If)(e)||(0,i.$D)(e)?r.createElement(m.Icon,{key:"icon"},e):r.createElement("span",{key:"text",className:p("text")},e)}{let e,n,o;const a=[];for(const s of t){const t=(0,i.If)(s)||(0,i.$D)(s),o=g(s),l=v(s)&&y.test(s.props.className||"");if(t||o||l)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",i="end";n=t?r.createElement(m.Icon,{key:e,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}}else{const n="icon-start",i="start";e=t?r.createElement(m.Icon,{key:n,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}else a.push(s)}return a.length>0&&(o=r.createElement("span",{key:"text",className:p("text")},a)),[e,n,o]}}},96873:(e,t,n)=>{"use strict";n.d(t,{b:()=>b});var r=n(27145),o=n(59284),i=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"]),_=o.createElement(a.$.Icon,{className:h("icon")},o.createElement(s.u,{size:v[t],status:u}));return o.createElement(i.m,{title:"success"===u?c:l,disabled:!n,closeDelay:y},o.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:i,options:a,hasTooltip:s=!0,onMouseEnter:c,onFocus:u}=e,d=(0,r.Tt)(e,["text","timeout","onCopy","options","hasTooltip","onMouseEnter","onFocus"]),f=o.useRef(),[p,h]=o.useState(void 0),[v,b]=o.useState(!1);o.useEffect((()=>window.clearTimeout(f.current)),[]);const w=o.useCallback(((e,t)=>{null===i||void 0===i||i(e,t),b(!1),h(n),window.clearTimeout(f.current),f.current=window.setTimeout((()=>{b(!0)}),n-g)}),[i,n]),x=o.useCallback((()=>{v&&(b(!1),h(void 0))}),[v]),_=o.useCallback((e=>{null===c||void 0===c||c(e),x()}),[c,x]),E=o.useCallback((e=>{null===u||void 0===u||u(e),x()}),[u,x]);return o.createElement(l.$,{text:t,timeout:n,onCopy:w,options:a},(e=>o.createElement(y,Object.assign({},d,{closeDelay:p,hasTooltip:s&&!v,status:e,onMouseEnter:_,onFocus:E}))))}},48699:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(27145),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:"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=>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("g",{fill:"currentColor"},o.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"}),o.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?o.createElement(l.I,Object.assign({data:i},n)):"success"===t?o.createElement(l.I,Object.assign({data:a},n)):o.createElement(l.I,Object.assign({data:s.A},n))}},46898:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(59284);const o=(0,n(69220).om)("control-label"),i=r.forwardRef((({children:e,className:t,labelClassName:n,title:i,style:a,disabled:s=!1,control:l,size:c="m",qa:u},d)=>{const f=r.cloneElement(l,{className:o("indicator",l.props.className)});return r.createElement("label",{ref:d,title:i,style:a,className:o({size:c,disabled:s},t),"data-qa":u},f,e?r.createElement("span",{className:o("text",n)},e):null)}));i.displayName="ControlLabel"},46700:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(59284),o=n(64255),i=n.n(o);const a="pending";function s(e){const{children:t,text:n,options:o,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(i(),{text:n,onCopy:p,options:o},f)}},40336:(e,t,n)=>{"use strict";n.d(t,{u:()=>k});var r=n(59284),o=n(41668),i=n(27629);const a=r.createContext(void 0);function s({direction:e,contentMaxWidth:t,nameMaxWidth:n,children:o}){const i=n?{maxWidth:n,width:n}:{},s="number"===typeof t?{width:t,maxWidth:t}:{};return r.createElement(a.Provider,{value:{keyStyle:i,valueStyle:s,direction:e}},o)}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:o,className:i}=e,a=(0,f.Tt)(e,["buttonRef","buttonProps","children","className"]);return r.createElement(m.A,Object.assign({},a,{delayClosing:300,className:g(null,i),content:o}),(()=>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,o=(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)},o))}return null}function E({note:e,name:t,direction:n}){const o=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,o),"horizontal"===n&&r.createElement("div",{className:c("dots")}))}function S({name:e,children:t,copyText:n,note:o}){const{direction:i,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:i,name:e,note:o})),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 k({responsive:e,direction:t="horizontal",nameMaxWidth:n,contentMaxWidth:o,className:a,children:l,qa:u}){const d=function(e){const t=r.Children.toArray(e),n=[];for(const r of t){C(r)?n.push(r):(0,i.m)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(l);return r.createElement(s,{direction:t,nameMaxWidth:n,contentMaxWidth:o},r.createElement("dl",{className:c({responsive:e,vertical:"vertical"===t},a),"data-qa":u},d))}S.displayName="DefinitionListItem";const C=(0,o.g)(S);k.Item=S,k.displayName="DefinitionList"},2198:(e,t,n)=>{"use strict";n.d(t,{l:()=>A});var r=n(59284),o=n(72630),i=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:k,onTransitionExited:C,children:O,style:N,contentOverflow:T="visible",className:A,contentClassName:I,"aria-labelledby":P,"aria-label":D,container:R,qa:j}){const M=r.useRef(null),L=r.useRef(null),[z,F]=r.useState(!1);(0,i.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(o.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===k||void 0===k||k()},onEntered:()=>{F(!1),null===S||void 0===S||S()},onExited:()=>{F(!1),null===C||void 0===C||C()}},r.createElement(s.Z,{container:R},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":D,"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 k=n(39238);const C=(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:o,textButtonApply:i,propsButtonCancel:a,propsButtonApply:s,preset:l,children:c,errorText:u,showError:d,renderButtons:f,className:p}=this.props,h=r.createElement("div",{className:C("button",{action:"cancel"})},r.createElement(m.$,Object.assign({view:i?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},a),o)),g=r.createElement("div",{className:C("button",{action:"apply"})},r.createElement(m.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:C("button-apply",{preset:l})},s),i),u&&r.createElement(k.z,{open:d,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},r.createElement("div",{className:C("error")},u)));return r.createElement("div",{className:C(null,p)},r.createElement("div",{className:C("children")},c),r.createElement("div",{className:C("bts-wrapper")},f?f(g,h):r.createElement(r.Fragment,null,o&&h,i&&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:o,disableEscapeKeyDown:i,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:k,"aria-label":C,"aria-labelledby":O,qa:N}=this.props;return r.createElement(p,{open:n,contentOverflow:f,disableBodyScrollLock:o,disableEscapeKeyDown:i,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:k,className:T("modal",m),"aria-label":C,"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:o,className:i,id:a}=e;return r.createElement("div",{className:N(null,i)},n,r.createElement("div",{className:N("caption"),id:a},t),o)},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)})}},40569:(e,t,n)=>{"use strict";n.d(t,{r:()=>F});var r=n(59284),o=n(7450),i=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:o,qa:i},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",o),"data-qa":i},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:o,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,i.N)(f),E=r.useCallback((e=>{v.o.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),S={role:"menuitem",onKeyDown:f&&!a?_:void 0},k={title:o,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},C=[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,k,{href:c,target:u,rel:d}),C):r.createElement("div",Object.assign({},S,g,k),C),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:o,qa:i},a){return r.createElement("ul",{ref:a,role:"menu",style:n,className:w({size:e},o),"data-qa":i},t)}));x.Item=b,x.Group=g;var _=n(54245);function E(e,t,n=1,r){const o=(e.length+t-n%e.length)%e.length;return r&&r(e[o])?E(e,o,1,r):o}function S(e,t,n=1,r){const o=(t+n)%e.length;return r&&r(e[o])?S(e,o,1,r):o}var k=n(39238);const C=[],O=r.createContext({activeMenuPath:C,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=({anchorRef:e,children:t,disabled:n})=>{const[o,i]=r.useState(C);r.useEffect((()=>{n&&i(C)}),[n]);const a=r.useMemo((()=>({activeMenuPath:o,setActiveMenuPath:i,anchorRef:e})),[o,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 D=({items:e,open:t,anchorRef:n,onClose:o,size:i,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]),C=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],o=null===r||void 0===r?void 0:r.items;return(v||o)&&(n.stopPropagation(),n.preventDefault()),r&&_(r,n),!1}}return!0}),[y,_,v,e]),N=t&&P(d)===P(h),{activeItemIndex:T,setActiveItemIndex:D,reset:R}=function({items:e,skip:t,pageSize:n,processHomeKey:o=!0,processEndKey:i=!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(!o)return;r.preventDefault(),d((n=>E(e,n,n,t)));break;case"End":if(!i)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,i,o,t]),{activeItemIndex:u,setActiveItemIndex:d,reset:f}}({items:e,skip:I,anchorRef:g,onAnchorKeyDown:C,disabled:!N,initialValue:v?0:-1});return r.useEffect((()=>{t||R()}),[t,R]),r.createElement(k.z,Object.assign({open:t,anchorRef:n,onClose:o},l,{onMouseEnter:b,onMouseLeave:w}),s||r.createElement(x,Object.assign({className:c("menu"),size:i},a),e.map(((e,n)=>{var i;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:()=>D(n)});return r.createElement(M,Object.assign({key:n,className:c("menu-item",{separator:A(e),"active-parent":s,"with-submenu":Boolean(null===(i=e.items)||void 0===i?void 0:i.length)},e.className),selected:a,popupProps:l,closeMenu:o},e,{extraProps:u}))}))))};function R(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:o}=r.useContext(O),i=Boolean(t)&&Boolean(null===e||void 0===e?void 0:e.length),a=r.useCallback((()=>{t&&o(t.slice(0,t.length-1))}),[t,o]),s=r.useCallback((()=>{t&&o(t)}),[t,o]);return{hasSubmenu:i,isSubmenuOpen:R(t,n),openSubmenu:s,closeSubmenu:a}}const M=e=>{var{text:t,action:n,items:o,popupProps:i,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:k}=j({items:o,path:h}),C=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),C())}),[n,v,C,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&&k()},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,k]),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&&o&&r.createElement(D,{popupProps:Object.assign(Object.assign({},i),{className:c("sub-menu",null===i||void 0===i?void 0:i.className),placement:T}),items:o,path:h,open:E,anchorRef:y,onClose:C}))};function L(e,t,n,o=void 0!==e&&void 0!==t){const i=function(e,t){const[n,o]=r.useState(e);return[n,r.useCallback((e=>{"function"===typeof e?o((n=>{const r=e(n);return null===t||void 0===t||t(r),r})):(null===t||void 0===t||t(e),o(e))}),[t])]}(e||n,t);return o?[e,t]:i}function z(e,t,n=[],r=0){const o=[];let i=!1,a=r;for(const s of e)if(Array.isArray(s)){const e=z(s,t,n,a);0!==o.length&&o.push(t),o.push(...e),a+=e.length,i=!0}else{if(s.hidden)continue;i&&o.push(t);const e=Object.assign(Object.assign({},s),{path:[...n,a++]});s.items&&(e.items=z(s.items,t,e.path)),o.push(e),i=!1}return o}const F=Object.assign((({items:e=[],size:t="m",icon:n=r.createElement(s.I,{data:o.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:k,togglePopup:C,closePopup:O}=function(e,t,n){const[o,i]=L(e,t,!1),a=r.useCallback((e=>{i((t=>"boolean"===typeof e?e:!t))}),[i]),s=r.useCallback((()=>{i(!1)}),[i]);return r.useEffect((()=>{n&&o&&s()}),[s,n,o]),{isPopupShown:o,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,!k||!f);const A=r.useMemo((()=>({toggle:C,data:p})),[p,C]),I=r.useMemo((()=>z(e,T)),[e]),P=r.useCallback((e=>{h||(null===w||void 0===w||w(e),C())}),[h,w,C]),{onKeyDown:R}=(0,i.N)(P),j=r.useMemo((()=>({onClick:P,onKeyDown:R})),[P,R]);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:!k},r.createElement(D,{items:I,open:k,size:t,menuProps:x,anchorRef:S,onClose:O,popupProps:_},E)))}),{Item:M})},99991:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(59284),o=n(69220);const i={"aria-hidden":!0};function a(e){return"object"===typeof e}function s(e){return"string"===typeof e}const l=(0,o.om)("icon"),c=r.forwardRef((({data:e,width:t,height:n,size:o,className:u,fill:d="currentColor",stroke:f="none",qa:p},h)=>{let m,g,v;if(o&&(m=o,g=o),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},i);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=""},47665:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var r=n(59284),o=n(81240),i=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:k}=e,C=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&C,N="copy"===n&&C,T="function"===typeof S,A=Boolean(N&&y),I=(T||A||x)&&!v,{copyIconSize:P,closeIconSize:D}=c[d],R=p&&r.createElement("div",{className:l("addon",{side:C?"start":void 0,type:"icon"})},p),j=C&&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(i.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:D,data:o.A}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:I,disabled:v},g),title:f,"data-qa":k},R,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()}))},67884:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(59284),o=n(69220),i=n(11669);const a=(0,o.om)("link"),s=r.forwardRef((function({view:e="normal",visitable:t,underline:n,href:o,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=>{i.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:o,target:s,rel:x}),u)}))},40091:(e,t,n)=>{"use strict";n.d(t,{B:()=>le});var r=n(59284),o=n(62060),i=n.n(o),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,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=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(){i(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; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,u){if(l)i.attachEvent("onresize",u);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,u=c.getComputedStyle(i);u&&"static"===u.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'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%; }',i=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)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__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",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__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)||{},o=parseFloat(r.paddingLeft||"0"),i=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-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(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:o=!1,disableWidth:i=!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 o||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),i||(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 o(){_()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var k=-1;function C(e){if(void 0===e&&(e=!1),-1===k||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),k=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return k}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"),o=r.style;return o.width="100px",o.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,o=e.getEstimatedTotalSize,i=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,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),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,o=r.props,a=o.direction,s=o.itemSize,l=o.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=i(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,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(N()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-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,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-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,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?C():0:l.scrollHeight>l.clientHeight?C():0}this.scrollTo(a(this.props,e,t,i,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 o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(N()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&E(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,i=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"===i||"horizontal"===h,E=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),k=S[0],C=S[1],O=[];if(u>0)for(var N=k;N<=C;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=o(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:i},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],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=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=o&&"backward"!==i?1:Math.max(1,n),f=o&&"forward"!==i?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,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},D=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=P(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},R=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&P(e,n,t).offset<r;)n+=i,i*=2;return D(e,t,Math.min(n,o-1),Math.floor(n/2),r)},j=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},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,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=P(e,t,o),f=j(e,o),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);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,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?D(e,t,o,0,n):R(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,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"),W=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 V=n(66821),K=n(99991),G=n(11669),Y=n(359);const Z="list-active-item",Q=[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:o,style:i,sortable:a,sortHandleAlign:s,itemClassName:l,selected:c,active:u,role:d="listitem",isDragging:f=!1}=this.props,p=Object.assign(Object.assign({height:o},i),{right:void 0});return r.createElement("div",Object.assign({role:d,"aria-selected":c,"aria-disabled":n.disabled,"data-qa":u?Z: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:V.A,size:12})):null}renderContent(){const{renderItem:e=X,item:t,active:n,itemIndex:o}=this.props;return r.createElement("div",{className:J("item-content")},e(t,n,o))}}te.publishEvent=G.o.withEventPublisher("List");var ne=n(36613),re=n.n(ne);function oe(e){return re()(e).reduce(((e,t)=>(e[t]=r.createRef(),e)),{})}class ie extends r.Component{static getDerivedStateFromProps({itemCount:e},t){return e===Object.keys(t.refsList).length?t:{refsList:oe(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:oe(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,o;const i=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(i&&"function"===typeof i.getNode){const e=i.getNode();e&&((null===(r=(n=this.props).onScrollToItem)||void 0===r?void 0:r.call(n,e))||null===(o=e.scrollIntoView)||void 0===o||o.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(Q.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:o}=this.props;return s()(e)&&"value"in e&&e.value===this.loadingItem.value?r.createElement(W,{onIntersect:0===n?void 0:o}):this.props.renderItem?this.props.renderItem(e,t,n):X(e)},this.renderItem=({index:e,style:t,height:n,provided:o,isDragging:i})=>{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:o,isDragging:i})},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),[o]=r.splice(t,1);return r.splice(n,0,o),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 o=(t+r)%r;for(let i=0;i<r;i+=1){if(e[o]&&!e[o].disabled)return o;o=(o+r+n)%r}}componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}componentDidUpdate(e,t){if(!i()(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:o,itemsClassName:i,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},o),"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},i),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:o,filterClassName:i="",autoFocus:a}=this.props;return t?r.createElement("div",{className:ae("filter",i)},r.createElement(L.k,{controlRef:this.refFilter,size:e,placeholder:o,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(ie,{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(ie,{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:o})=>r.createElement(se,{ref:this.refContainer,outerRef:t.innerRef,width:n,height:o,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 o=this.getItemsWithLoading();this.activateItem(le.findNextIndex(o,r+t,Math.sign(t)))}}le.defaultProps={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0}},74417:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(59284);const o=(0,n(69220).om)("loader");function i({size:e="s",className:t,qa:n}){return r.createElement("div",{className:o({size:e},t),"data-qa":n},r.createElement("div",{className:o("left")}),r.createElement("div",{className:o("center")}),r.createElement("div",{className:o("right")}))}},84375:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(59284),o=n(81240),i=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:o})=>t||n?t?r.createElement("div",{className:d("tooltip-content",{secondary:e},o),dangerouslySetInnerHTML:{__html:t}}):n?r.createElement("div",{className:d("tooltip-content",{secondary:e},o)},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:o,target:i="_blank",onClick:a}=e;return r.createElement(r.Fragment,{key:`link-${t}`},r.createElement(m.N,{href:o,target:i,onClick:a,className:d("tooltip-link")},n),r.createElement("br",null))})));var v=n(46734);const y=({open:e,openOnHover:t,disabled:n,className:o,openTooltip:i,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):(i(),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:o,onClick:u,onKeyDown:l?d:void 0},c)};var b=n(63291);const w=({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:o,delayOpening:i,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===o||void 0===o||o(e)}),[o,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!==i&&void 0!==i?i:y)}),[y,i,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:k,tooltipContentClassName:C,theme:O="info",size:N="s",hasArrow:T=!0,hasClose:A=!1,className:I,children:P,title:D,content:R,htmlContent:j,contentClassName:M,links:L,forceLinksAppearance:z=!1,tooltipActionButton:F,tooltipCancelButton:B,onOpenChange:U,onCloseClick:q,onClick:$,anchorRef:H,strategy:W,qa:V,disablePortal:K=!1,tooltipId:G,focusTrap:Y,autoFocus:Z,restoreFocusRef:Q,modifiers:J},X){const ee=(0,c.j)(),te=r.useRef(null),ne=r.useRef(!1),re=r.useRef(e),{isOpen:oe,closingTimeout:ie,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(D),he=`popover-${null!==G&&void 0!==G?G:""}-title-${(0,i.u)()}`,me=r.createElement(l.z,{id:G,role:f?"tooltip":"dialog",strategy:W,anchorRef:H||te,className:d("tooltip",{theme:O,size:N,"with-close":A,"force-links-appearance":z},k),contentClassName:d("tooltip-popup-content",C),open:oe,placement:fe,hasArrow:T,offset:S,onClose:H?void 0:ce,qa:V?`${V}-tooltip`:"",disablePortal:K,focusTrap:Y,autoFocus:Z,restoreFocus:!0,restoreFocusRef:Q||te,modifiers:J,"aria-labelledby":D?he:void 0},r.createElement(r.Fragment,null,D&&r.createElement("h3",{id:he,className:d("tooltip-title")},D),r.createElement(h,{secondary:!!pe&&"announcement"!==O,content:R,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:o.A,size:16})))));if(H)return me;const ge=()=>{de(),oe||t||ne.current?re.current=!0:se()},ve=()=>{!n||ne.current||ie.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":V},r.createElement(y,{closeTooltip:ce,openTooltip:ae,open:oe,openOnHover:f,className:d("handler"),disabled:t,onClick:$,closedManually:ne},P),me)}));x.displayName="Popover"},63291:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>o,m:()=>r}),function(e){e.Immediate="immediate",e.Delayed="delayed",e.DelayedClosing="delayedClosing"}(r||(r={}));const o={[r.Immediate]:[0,0],[r.Delayed]:[300,300],[r.DelayedClosing]:[0,300]}},39238:(e,t,n)=>{"use strict";n.d(t,{z:()=>Be});var r=n(59284),o=n(72630),i=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(),o=1,i=1;t&&c(e)&&(o=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,i=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))/o,f=(r.top+(u&&a?a.offsetTop:0))/i,h=r.width/o,g=r.height/i;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,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function E(e,t,n){void 0===n&&(n=!1);var r=c(t),o=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),i=b(t),a=g(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||_(i))&&(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):i&&(u.x=w(i))),{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 k(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function C(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&_(e)?e:C(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=C(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=s(r),a=o?[i].concat(i.visualViewport||[],_(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(O(k(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=k(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",D="right",R="left",j="auto",M=[I,P,D,R],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 o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function W(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var V={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,o=t.defaultOptions,i=void 0===o?V:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},V,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(n){var s="function"===typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.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,o.options.modifiers)));return o.orderedModifiers=d.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(K(t,n)){o.rects={reference:E(t,A(n),"fixed"===o.options.strategy),popper:S(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,l=i.options,u=void 0===l?{}:l,d=i.name;"function"===typeof a&&(o=a({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:W((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),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 Z(e){return e.split("-")[0]}function Q(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,o=e.placement,i=o?Z(o):null,a=o?Q(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case I:t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:l};break;case R:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?J(i):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,o=e.placement,i=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=R,S=I,k=window;if(u){var C=A(n),O="clientHeight",N="clientWidth";if(C===s(n)&&"static"!==x(C=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),o===I||(o===R||o===D)&&i===z)S=P,v-=(f&&C===k&&k.visualViewport?k.visualViewport.height:C[O])-r.height,v*=c?1:-1;if(o===R||(o===I||o===P)&&i===z)E=D,m-=(f&&C===k&&k.visualViewport?k.visualViewport.width:C[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,o=t.devicePixelRatio||1;return{x:p(n*o)/o||0,y:p(r*o)/o||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=(k.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,o=n.offset,i=void 0===o?[0,0]:o,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=Z(e),o=[R,I].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[R,D].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),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 oe(e){return e.replace(/left|right|bottom|top/g,(function(e){return re[e]}))}var ie={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return ie[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),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var u=m();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,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),o=null==(t=e.ownerDocument)?void 0:t.body,i=d(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===x(o||n).direction&&(s+=d(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(b(e)))}function ue(e,t,n,r){var o="clippingParents"===t?function(e){var t=O(k(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),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=ce(e,n,r);return t.top=d(o.top,t.top),t.right=f(o.right,t.right),t.bottom=f(o.bottom,t.bottom),t.left=d(o.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,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,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),k=g(e.elements.reference),C=X({reference:k,element:_,strategy:"absolute",placement:o}),O=le(Object.assign({},_,C)),N=p===B?O:k,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 R=A[o];Object.keys(T).forEach((function(e){var t=[D,P].indexOf(e)>=0?1:-1,n=[I,P].indexOf(e)>=0?"y":"x";T[e]+=R[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 o=n.mainAxis,i=void 0===o||o,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=Z(g),y=l||(v===g||!h?[oe(g)]:function(e){if(Z(e)===j)return[];var t=oe(e);return[ae(e),t,ae(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Z(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q:l,u=Q(r),d=u?s?U:U.filter((function(e){return Q(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:o,rootBoundary:i,padding:a})[Z(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],k=0;k<b.length;k++){var C=b[k],O=Z(C),N=Q(C)===L,T=[I,P].indexOf(O)>=0,A=T?"width":"height",z=pe(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?D:R:N?P:I;w[A]>x[A]&&(F=oe(F));var B=oe(F),$=[];if(i&&$.push(z[O]<=0),s&&$.push(z[F]<=0,z[B]<=0),$.every((function(e){return e}))){S=C,E=!1;break}_.set(C,$)}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"},W=h?3:1;W>0;W--){if("break"===H(W))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,o=n.mainAxis,i=void 0===o||o,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=Z(t.placement),w=Q(t.placement),x=!w,_=J(b),E="x"===_?"y":"x",k=t.modifiersData.popperOffsets,C=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(k){if(i){var z,F="y"===_?I:R,B="y"===_?P:D,U="y"===_?"height":"width",q=k[_],$=q+y[F],H=q-y[B],W=m?-O[U]/2:0,V=w===L?C[U]:O[U],K=w===L?-O[U]:-C[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,C[U],Y[U]),re=x?C[U]/2-W-ne-ee-T.mainAxis:V-ne-ee-T.mainAxis,oe=x?-C[U]/2+W+ne+te+T.mainAxis:K+ne+te+T.mainAxis,ie=t.elements.arrow&&A(t.elements.arrow),ae=ie?"y"===_?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(z=null==j?void 0:j[_])?z:0,le=q+oe-se,ce=me(m?f($,q+re-se-ae):$,q,m?d(H,le):H);k[_]=ce,M[_]=ce-q}if(s){var ue,de="x"===_?I:R,fe="x"===_?P:D,he=k[E],ge="y"===E?"height":"width",ve=he+y[de],ye=he-y[fe],be=-1!==[I,R].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,xe=be?ve:he-C[ge]-O[ge]-we+T.altAxis,_e=be?he+C[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);k[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,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Z(n.placement),l=J(s),c=[R,D].indexOf(s)>=0?"height":"width";if(i&&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))}(o.padding,n),d=S(i),f="y"===l?I:R,p="y"===l?P:D,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=A(i),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,D,P,R].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,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Y)})),l&&c.addEventListener("resize",n.update,Y),function(){i&&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,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:Z(t.placement),variation:Q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,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]||{},o=t.elements[e];c(o)&&y(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.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],o=t.attributes[e]||{},i=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,i),Object.keys(o).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,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),l=ye(a,r),c=ye(s,o,i),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,ke=[],Ce=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ke},s=r.useState({styles:{popper:{position:i.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:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return _e()(o.current,e)?o.current||e:(o.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.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),De=n(69220),Re=n(99635),je=n(6826);const Me=(0,De.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,De.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:k,onTransitionEntered:C,onTransitionExit:O,onTransitionExited:N,disablePortal:T,container:A,strategy:I,qa:P,restoreFocus:D,restoreFocusRef:R,"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,Re.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:W,setArrowRef:V}=function({anchorRef:e,placement:t=Ne,offset:n,modifiers:o=[],strategy:i,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}=Ce(null===e||void 0===e?void 0:e.current,s,{strategy:i,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]:[],...o],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,i.N)(W,q,(0,Pe.N)()),G=(0,Ae.s)({enabled:Boolean(D&&a),restoreFocusRef:R});let Y=L;return!0!==U&&"true"!==U||Y||(Y="dialog"),r.createElement(o.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===k||void 0===k||k()},onEntered:()=>{null===C||void 0===C||C()},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:V}),g)))))}},98392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(59284),o=n(48681);const i=r.createContext({current:null});i.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(i);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?o.createPortal(u?r.createElement(a.N,{rootClassName:l("theme-wrapper"),scoped:!0},t):t,d):null}},44433:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var r=n(59284),o=n(90826),i=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,o.u)(),[b,w]=(0,i.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,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a.has(i)||n&&s.has(i)||(null===r||void 0===r?void 0:r.has(i))||l.test(i))&&(o[i]=e[i]);return o}(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,o.u)(),b=r.useRef(null),[w,x]=(0,i.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:o,style:i,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:i,className:v({size:n,width:o},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},85589:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(59284),o=n(64222),i=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,o.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(i.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)}))},23871:(e,t,n)=>{"use strict";n.d(t,{t:()=>p});var r=n(59284),o=n(69220);const i=r.createContext({activeTabId:void 0});i.displayName="TabsContext";var a=n(47665);const s=(0,o.om)("tabs");function l({id:e,className:t,title:n,meta:o,hint:l,icon:c,counter:u,label:d,active:f,disabled:p,hasOverflow:h,extraProps:m,onClick:g}){const{activeTabId:v}=r.useContext(i),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)),o&&r.createElement("div",{className:s("item-meta")},o))}l.displayName="Tabs.Item";const c=(0,o.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:o=!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,o,a),y=r.useMemo((()=>({activeTabId:v})),[v]),b=r.useMemo((()=>{const e=e=>{p&&p(e)};return a.map(((t,n)=>{const o=r.createElement(l,Object.assign({key:t.id},t,{onClick:e}));return h?h(t,o,n):o}))}),[a,p,h]);return r.createElement("div",{role:"tablist",className:c({direction:e,size:t},f),"data-qa":m,ref:g},r.createElement(i.Provider,{value:y},s||b))}));f.displayName="Tabs";const p=Object.assign(f,{Item:l})},98089:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(27145),o=n(59284),i=n(63365);const a=(0,n(69220).om)("text"),s=({variant:e="body-1",ellipsis:t,ellipsisLines:n,whiteSpace:r,wordBreak:o},i)=>a({variant:e,ellipsis:t,ws:r,wb:o,"ellipsis-lines":n},i),l=o.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),o.createElement(y,Object.assign({ref:t,className:s({variant:l,ellipsis:u,whiteSpace:f,wordBreak:p,ellipsisLines:"number"===typeof h},d?(0,i.$)({color:d},c):c),style:b,"data-qa":g},v),a)}));l.displayName="Text"},63365:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});const r=(0,n(69220).om)("color-text"),o=({color:e},t)=>r({color:e},t)},28664:(e,t,n)=>{"use strict";n.d(t,{k:()=>D});var r=n(59284),o=n(94420),i=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,o]=r.useState({width:0,height:0});return r.useLayoutEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;o({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;o({width:u()(e.inlineSize,2),height:u()(e.blockSize,2)})}else{const e=t.target;o({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}"`)}},k=e=>{const{size:t,className:n,onClick:o}=e;return r.createElement(y.$,{size:t,className:E(null,n),onClick:o,extraProps:{onMouseDown:e=>{e.preventDefault()},"aria-label":_("label_clear-button")}},r.createElement(h.I,{data:v.A,size:16}))};var C=n(63246),O=n(34379);const N=(0,g.om)("text-input"),T=r.forwardRef((function({placement:e,children:t,onClick:n},o){return t?r.createElement("div",{ref:o,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:o,name:i,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:o,name:i,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"),D=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:D,tabIndex:R,style:j,className:M,qa:L,controlProps:z,leftContent:F,rightContent:B,startContent:U=F,endContent:q=B,unstable_endContent:$,note:H,onUpdate:W,onChange:V}=e,{errorMessage:K,errorPlacement:G,validationState:Y}=(0,O.Av)({error:x,errorMessage:_,errorPlacement:E,validationState:N}),[Z,Q]=(0,i.P)(f,null!==g&&void 0!==g?g:"",W),J=r.useRef(null),X=(0,l.d)({initialValue:Z,onReset:Q}),ee=(0,a.N)(e.controlRef,J,X),te=r.useRef(null),ne=r.useRef(null),re=(0,O.lf)(Y),oe=Boolean(v),ie="invalid"===Y&&Boolean(K)&&"outside"===G,ae="invalid"===Y&&Boolean(K)&&"inside"===G,se=Boolean(w&&!y&&!b&&Z),le=Boolean(U),ce=Boolean($),ue=Boolean(q)&&!ce,de=oe&&!D&&!d&&"undefined"===typeof A,fe=(0,s.u)(),pe=oe?D||fe:D,he=p(oe?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,ie?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),oe&&he.width?{paddingInlineStart:`${he.width}px`}:{}),"aria-invalid":"invalid"===Y||void 0,"aria-describedby":ye||void 0}),we={id:pe,tabIndex:R,name:d,onChange(e){Q(e.target.value),V&&V(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),o=Boolean(null===(t=document.getSelection())||void 0===t?void 0:t.toString());r&&!o&&(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),oe&&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(k,{size:S(c),onClick:e=>{Q("");const t=J.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",V&&V(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:o.A,className:P("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(T,{placement:"end",onClick:xe},$)),r.createElement(C.o,{note:H,errorMessage:ie?K:null,noteId:ve,errorMessageId:ge}))}))},63246:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(59284),o=n(69220),i=n(34379);const a=(0,o.om)("outer-additional-content"),s=({errorMessage:e,note:t,noteId:n,errorMessageId:o})=>e||t?r.createElement("div",{className:a()},e&&r.createElement("div",{className:a("error"),id:o,"data-qa":i.mF},e),t&&r.createElement("div",{className:a("note"),id:n},t)):null},34379:(e,t,n)=>{"use strict";n.d(t,{Av:()=>s,_y:()=>o,lf:()=>a,mF:()=>r,o$:()=>i});const r="control-error-message-qa",o="control-error-icon-qa",i=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:o}=e;let i,a;return"string"===typeof t&&(i=t),n&&(i=n),("invalid"===o||Boolean(t))&&(a="invalid"),{errorMessage:i,errorPlacement:r,validationState:a}}},9296:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(27145),o=n(59284),i=n(69220),a=n(46423);const s=(0,i.om)("box"),l=o.forwardRef((function(e,t){var{as:n,children:i,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 o.createElement(x,Object.assign({},w,{"data-qa":l,style:_,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),i)}))},87184:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(27145),o=n(59284),i=n(69220),a=n(9296),s=n(69033),l=n(8944);const c=(0,i.om)("flex"),u=o.forwardRef((function(e,t){const{as:n,direction:i,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:k,space:C,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,D=P(E),R=D?I*Number(D):void 0,j=P(S)||D,M=j?I*Number(j):void 0,L=P(C),z=E||S||!L?void 0:(0,l.si)(L);return o.createElement(a.a,Object.assign({as:T,className:c({"center-content":O,inline:_,s:z},k),ref:t,style:Object.assign({flexDirection:P(i),flexGrow:!0===u?1:u,flexWrap:!0===x?"wrap":x,flexBasis:d,flexShrink:w,columnGap:R,rowGap:M,alignContent:P(h),alignItems:P(m),alignSelf:P(g),justifyContent:P(v),justifyItems:P(y),justifySelf:P(b)},p)},N),C?o.Children.map(f,(e=>e?o.createElement("div",{className:c("wr")},e):e)):f)}))},35719:(e,t,n)=>{"use strict";n.d(t,{W:()=>r,z:()=>o});const r={.5:"half"},o={breakpoints:{s:576,m:768,l:1080,xl:1200,xxl:1400,xxxl:1920},spaceBaseSize:4,components:{container:{gutters:"3",media:{l:{gutters:"5"}}}}}},55330:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(59284),o=n(35719);const i=r.createContext({theme:o.z,activeMediaQuery:"s"})},69033:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(59284),o=n(55330),i=n(8944);const a=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(o.M),{isMediaActive:n,getClosestMediaProps:a}=r.useMemo((()=>({isMediaActive:(0,i.nR)(e),getClosestMediaProps:(0,i.yZ)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:a}}},46423:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,Y:()=>a});var r=n(69220),o=n(8944);const i=(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(i(`${r}_${(0,o.si)(t)}`))}return t&&n.push(t),n.join(" ")},s=a},8944:(e,t,n)=>{"use strict";n.d(t,{nR:()=>i,si:()=>l,yZ:()=>s});var r=n(35719);const o={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},i=e=>t=>e in o&&o[e]-o[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[o[n]-1]}},l=e=>e in r.W?r.W[e]:String(e)},11507:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var r=n(59284);const o={mobile:!1,platform:n(67459).O.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},i=r.createContext(o)},67459:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var r,o=n(69220);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,o.om)("root")({mobile:!0}).split(/\s+/)[1]},46819:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(59284),o=n(11507);function i(){return r.useContext(o.G).mobile}},42933:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=n(59284).createContext(void 0);r.displayName="ThemeContext"},69118:(e,t,n)=>{"use strict";n.d(t,{N:()=>O});var r=n(59284),o=n(55330);const i={media:"",matches:!1,onchange:()=>{},addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:e=>!0},a=e=>"undefined"===typeof window||"function"!==typeof window.matchMedia?i: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,o]=r.useState(t);return r.useLayoutEffect((()=>{const t=new s(e),n=()=>{o(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 i=r.useContext(o.M),a=r.useMemo((()=>function({theme:e,override:t}){return u()(e,t)}({theme:i.theme,override:t})),[t,i.theme]),s=l(a.breakpoints,n),c=r.useMemo((()=>({activeMediaQuery:s,theme:a})),[s,a]);return r.createElement(o.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 o=document.body;if(o.classList.contains(x)||o.classList.add(x),r){r.split(" ").forEach((e=>{e&&o.classList.remove(e)}))}if(n){n.split(" ").forEach((e=>{e&&!o.classList.contains(e)&&o.classList.add(e)}))}[...o.classList].forEach((e=>{e.startsWith((0,f.Nx)(w({theme:!0})))&&o.classList.remove(e)})),o.classList.add((0,f.Nx)(w({theme:e})));const i={"native-scrollbar":t};for(const[a,s]of Object.entries(i))o.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 k(){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 C=(0,f.om)(y);function O({theme:e,systemLightTheme:t,systemDarkTheme:n,direction:o,nativeScrollbar:i,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!==o&&void 0!==o?o:I,D="light"===k()?T:A,R="system"===N?D:N,j=r.useRef("");r.useLayoutEffect((()=>{S||(_({theme:R,nativeScrollbar:i,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,R,P,i,s]);const M=r.useMemo((()=>({theme:N,themeValue:R,direction:P,scoped:S})),[N,R,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:C({theme:R,"native-scrollbar":!1!==i},s),dir:P},l):l)))}O.displayName="ThemeProvider"},54245:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(46878);function o(){return(0,r.w)().direction}},46878:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(59284),o=n(42933);function i(){const e=r.useContext(o.D);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},22680:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var r=n(46878);function o(){return(0,r.w)().themeValue}},19225:(e,t,n)=>{"use strict";n.d(t,{s:()=>S,N:()=>k});var r=n(59284),o=n(83046);function i(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 i(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 i(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)?i(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,i=(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,o=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||o.find((function(t){return t===e}))}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,o=void 0!==n&&n,i=t.params,s=void 0===i?[]:i,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&&!o)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,o.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,o.Kr)(e,a.tabbableOptions),n=(0,o.nq)(e,a.tabbableOptions),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,s=n.find((function(e){return(0,o.AO)(e)})),l=n.slice().reverse().find((function(e){return(0,o.AO)(e)})),c=!!t.find((function(e){return(0,o.yT)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:s,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find((function(e){return(0,o.AO)(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return(0,o.AO)(e)})):t[i+(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},k=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()):k(_()))},C=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,i=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=i?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(i){var d=s.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(u.container===t||(0,o.tp)(t,a.tabbableOptions)&&!(0,o.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,o.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,o.tp)(t,a.tabbableOptions)&&!(0,o.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,o.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 i=!0;if(s.mostRecentlyFocusedNode)if((0,o.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],i=!1):u-1>=0&&(r=c[u-1],i=!1))}}else s.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,o.yT)(e)>0}))}))||(i=!1);else i=!1;i&&(r=O({target:s.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(s.recentNavEvent)})),k(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(),k(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())},D=function(){if(s.active)return u(i,n),s.delayInitialFocusTimer=a.delayInitialFocus?m((function(){k(_())})):k(_()),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},R=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}))}))&&k(_())})):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"),o=b(e,"checkCanFocusTrap");o||E(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var i=function(){o&&E(),D(),M(),null===n||void 0===n||n()};return o?(o(s.containers.concat()).then(i,i),this):(i(),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,R(),s.active=!1,s.paused=!1,M(),d(i,n);var r=b(t,"onDeactivate"),o=b(t,"onPostDeactivate"),c=b(t,"checkCanReturnFocus"),u=b(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var f=function(){m((function(){u&&k(C(s.nodeFocusedBeforeActivation)),null===o||void 0===o||o()}))};return u&&c?(c(C(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,i[i.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(),R(),M(),null===r||void 0===r||r()}else{var o=b(t,"onUnpause"),i=b(t,"onPostUnpause");null===o||void 0===o||o(),E(),D(),M(),null===i||void 0===i||i()}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:o=!0}){const i=r.useRef(null),a=r.useRef(!n&&o);r.useEffect((()=>{a.current=!n&&o}));const s=r.useRef(),l=r.useRef({}),c=r.useCallback((()=>{var e;null===(e=s.current)||void 0===e||e.updateContainerElements([i.current,...Object.values(l.current)])}),[]),u=r.useMemo((()=>({addNode(e,t){var n;l.current[e]===t||(null===(n=i.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?(i.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(),i.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 k(){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])}},69220:(e,t,n)=>{"use strict";n.d(t,{CU:()=>o,Nx:()=>a,om:()=>i});var r=n(82435);const o="g-",i=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:o,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},10176:(e,t,n)=>{"use strict";n.d(t,{$D:()=>l,If:()=>c,zm:()=>s});var r=n(99991),o=n(69220),i=n(41668);let a=1;function s(){return`${o.CU}uniq-${a++}`}const l=(0,i.g)("svg"),c=(0,i.g)(r.I)},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 o=[];const i={lang:r.En,fallbackLang:r.En},a=e=>{Object.assign(i,e),o.forEach((e=>{e(i)}))},s=e=>(o.push(e),()=>{o=o.filter((t=>t!==e))}),l=()=>i},11669:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(27145),o=n(69220);const i=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}))}}}(o.CU)},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})},41668:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(59284);function o(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 o=n.displayName;return Boolean(o&&o===e.displayName)}}},99635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(59284),o=n(359),i=n(11669);const a=new class{constructor(){this.stack=[],this.handleDocumentKeyDown=e=>{var t,n,r;if(e.code===o.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,o=null;if(this.mouseDownLayerTarget){if(r=this.mouseDownLayerTarget.layer,o=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(r))return}else r=this.getTopLayer();!r.disableOutsideClick&&this.isOutsideClick(r,e,o)&&(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(){i.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:o}=t,i="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,o))||(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))||i.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:o,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u=!0,type:d}){const f=r.useRef({disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:o,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,type:d});r.useEffect((()=>{Object.assign(f.current,{disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:o,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u})}),[t,n,o,i,s,l,c,u]),r.useEffect((()=>{if(e&&u){const e=f.current;return a.add(e),()=>{a.remove(e)}}}),[e,u])}},6826:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(69220);function o(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"}))}}},27629:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});const r=new Map;function o(e){!e||r.has(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"}},64222:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(59284),o=n(85736),i=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,o.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,i.N)(p,y,E);r.useLayoutEffect((()=>{y.current&&(y.current.indeterminate=Boolean(u))}),[u]);const k=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:k,defaultChecked:l,checked:x,"aria-checked":_,ref:S})}}},794:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(59284);function o({initialValue:e,onReset:t}){const[n,o]=r.useState(null),i=r.useRef(e);r.useEffect((()=>{if(!n)return;const e=()=>{t(i.current)};return n.addEventListener("reset",e),()=>{n.removeEventListener("reset",e)}}),[n,t]);return r.useCallback((e=>{var t;o(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[])}},18670:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(59284),o=n(83046);function i({enabled:e,restoreFocusRef:t,focusTrapped:n}){const i=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,o.AO)(t)&&(s.current=t)},r=e=>{const t=e.target;t instanceof HTMLElement&&(0,o.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;i.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=i.current;const t=s.current;t&&document.contains(t)&&(0,o.AO)(t)&&(e=t),e&&"function"===typeof e.focus&&document.contains(e)&&(0,o.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,i.current=null!==(r=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==r?r:null)}}}},81517:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(59284),o=n(359);const i=(e,{openDelay:t=250,closeDelay:n,preventTriggerOnFocus:i=!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),i||(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===o.D.ESCAPE&&(clearTimeout(c.current),l())}}),[e,s,l,t,n,i]),a}},46734:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,h:()=>i});var r=n(59284),o=n(359);function i(e){return t=>{e&&[o.D.ENTER,o.D.SPACEBAR,o.D.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function a(e){return{onKeyDown:r.useMemo((()=>i(e)),[e])}}},14794:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(59284);const o="padding-right",i="padding-bottom",a="overflow",s=[a,o,i];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(o,`${n.right+e}px`);t&&document.body.style.setProperty(i,`${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])}},85736:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(59284);function o(e,t,n){const[o,i]=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:o;const c=r.useCallback(((e,...t)=>{Object.is(l,e)||null===n||void 0===n||n(e,...t),s||(l=e,i(e))}),[s,n,l]);return[l,c]}},42793:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},32084:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(59284),o=n(42793);function i(...e){return r.useMemo((()=>e.every((e=>null===e||void 0===e))?null:t=>{for(const n of e)(0,o.c)(n,t)}),e)}},29322:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(59284);const o=({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])}},90826:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(59284),o=n(69220),i=n(10176);const a="function"===typeof r.useId?function(){return`${o.CU}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,i.zm)()),e.current}},72837:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(1448),o=n(3357);const{lang:i,fallbackLang:a}=(0,o.zj)(),s=new r.TH({lang:i,fallbackLang:a});function l(e,t){Object.entries(e).forEach((([e,n])=>s.registerKeyset(e,t,n)));return s.keyset(t)}(0,o.ZM)((e=>{s.setLang(e.lang),s.setFallbackLang(e.fallbackLang)}))},59625:(e,t,n)=>{"use strict";n.d(t,{X:()=>re});var r=n(5906),o=n(59284),i=n(87924),a=n.n(i),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=o.createContext(null);f.displayName="ToasterContext";const p=o.createContext([]);p.displayName="ToastsContext";const h=o.forwardRef((function({children:e},t){const[n,r]=o.useState([]),i=o.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:o.createRef()})]}))}),[]),a=o.useCallback((e=>{r((t=>d(t,e)))}),[]),s=o.useCallback((()=>{r((()=>[]))}),[]),l=o.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=o.useRef(n);o.useEffect((()=>{h.current=n}),[n]);const m=o.useCallback((e=>!!h.current&&u(h.current,e)),[]),g=o.useMemo((()=>({add:i,remove:a,removeAll:s,update:l,has:m})),[i,a,s,l,m]);return o.useImperativeHandle(t,(()=>({add:i,remove:a,removeAll:s,update:l,has:m}))),o.createElement(f.Provider,{value:g},o.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&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.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),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:_(s,"exit",e),enter:_(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",e),enter:_(s,"enter",e)})}})),i}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},k=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,y.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,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,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,x(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:_(e,"appear",n),enter:_(e,"enter",n),exit:_(e,"exit",n)})}))):E(e,i,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"]),i=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(w.A.Provider,{value:i},a):o.createElement(w.A.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);k.propTypes={},k.defaultProps={component:"div",childFactory:function(e){return e}};const C=k;var O=n(72630),N=n(6826),T=n(43937),A=n(70825),I=n(94420),P=n(27612),D=n(81240);function R({onClose:e,timeout:t}){const[n,r,i]=function(){const[e,t]=o.useState(!1);return[o.useCallback((()=>{t(!0)}),[]),o.useCallback((()=>{t(!1)}),[]),e]}();var a,s;return a=e,s=i?null:t,o.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=o.forwardRef((function(e,t){const{name:n,content:r,actions:i,title:a,className:s,theme:l="normal",renderIcon:c,autoHiding:u=q,isClosable:d=!0,mobile:f=!1,onClose:p,removeCallback:h}=e,m=o.useCallback((()=>{h(n),p&&p()}),[h,p,n]),g=R({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]?o.createElement(M.I,{data:$[e],size:20,className:U("icon",{[e]:!0})}):null}({theme:l});return o.createElement("div",Object.assign({ref:t,className:U(v,s)},g,{"data-toast":!0}),w&&o.createElement("div",{className:U("icon-container")},w),o.createElement("div",{className:U("container")},y&&o.createElement("h3",{className:U("title")},a),d&&o.createElement(j.$,{size:"s",view:"flat",className:U("btn-close"),onClick:m,extraProps:{"aria-label":B("label_close-button")}},o.createElement(M.I,{data:D.A})),b&&o.createElement("div",{className:U("content",{"without-title":!y})},r),function({actions:e,onClose:t}){return e&&e.length?o.createElement("div",{className:U("actions")},e.map((({label:e,onClick:n,view:r="outlined",removeAfterClick:i=!0},a)=>o.createElement(j.$,{key:`${e}__${a}`,className:U("action"),onClick:()=>{n(),i&&t()},type:"button",size:"l",view:r,width:"auto"},e)))):null}({actions:i,onClose:m})))})),W=(0,N.L)((0,l.om)("toast-animation-desktop")),V=(0,N.L)((0,l.om)("toast-animation-mobile"));function K(e){const{toasts:t,mobile:n,removeCallback:r}=e;return o.createElement(C,{component:null},t.map((e=>o.createElement(O.A,{key:`${e.name}_${e.addedAt}`,nodeRef:e.ref,classNames:n?V:W,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)},o.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 Z=(0,l.om)("toaster");function Q({children:e,className:t,mobile:n}){const r=o.useRef("undefined"===typeof document?void 0:document.createElement("div"));return o.useEffect((()=>{const e=r.current;if(e)return document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),o.useEffect((()=>{r.current&&(r.current.className=Z({mobile:n},t))}),[t,n]),o.createElement(Y.Z,{container:r.current},e)}function J({className:e,mobile:t,hasPortal:n=!0}){const r=(0,m.I)(),{remove:i}=function(){const e=o.useContext(f);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return o.useMemo((()=>e),[e])}(),a=o.useContext(p),s=o.createElement(K,{toasts:a,removeCallback:i,mobile:null!==t&&void 0!==t?t:r});return n?o.createElement(Q,{className:e||"",mobile:null!==t&&void 0!==t?t:r},s):s}Q.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=o.createElement(h,{ref:e=>{this.componentAPI=e}},o.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:{}},63904:(e,t,n)=>{"use strict";var r=n(35711),o=n(69426),i=n(70084),a=n(98599);e.exports=a||r.call(i,o)},69426:e=>{"use strict";e.exports=Function.prototype.apply},70084:e=>{"use strict";e.exports=Function.prototype.call},31886:(e,t,n)=>{"use strict";var r=n(35711),o=n(39955),i=n(70084),a=n(63904);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new o("a function is required");return a(r,i,e)}},98599:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},90308:(e,t,n)=>{"use strict";var r=n(94701),o=n(31886),i=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o([n]):n}},32133:(e,t,n)=>{"use strict";var r=n(33410),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,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 i=o[t.format]||o.default;window.clipboardData.setData(i,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"),i=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(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},88409:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="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),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,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()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||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:i,s:o,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 C||!(!e||!e[x])},E=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(b=o),o||!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 C(n)},k=y;k.l=E,k.i=_,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=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(k.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 o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}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 k},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 k.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=!!k.u(t)||t,u=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},h=function(e,t){return k.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 i:return h(y+"Seconds",2);case o: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=k.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[i]=u+"Minutes",n[o]=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[k.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=k.p(u),m=function(e){var t=S(p);return k.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[i]=t,f[a]=n,f[o]=e,f)[h]||1,v=this.$d.getTime()+r*g;return k.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",o=k.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return k.s(i%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 k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.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 k.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(i);case"HH":return k.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=k.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return k.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 i:h=b/t;break;case o:h=b/e;break;default:h=b}return p?h:k.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 k.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=C.prototype;return S.prototype=O,[["$ms",r],["$s",o],["$m",i],["$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,C,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}()},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?/,o=/\d*[^-_:/,()\s\d]+/,i={},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=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,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:[o,function(e){var t=i.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:[o,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:[o,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,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].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 o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,l=o.parser,c=e.slice(r),u=i.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,o=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]),i=this.$locale(),!l&&d&&(i=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),o=r.year,i=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||(o||i?1:p.getDate()),m=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-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("")),i={}}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 o.call(this,e)}}}()},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}}}()},77354:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(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,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(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 o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)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?i(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(),o=i(e).local();return f.call(r,o,t,n)}}}()},8928:(e,t,n)=>{"use strict";var r,o=n(31886),i=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&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"===typeof a.get?o([a.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},78599:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},82461:e=>{"use strict";e.exports=EvalError},73759:e=>{"use strict";e.exports=Error},52530:e=>{"use strict";e.exports=RangeError},19770:e=>{"use strict";e.exports=ReferenceError},78236:e=>{"use strict";e.exports=SyntaxError},39955:e=>{"use strict";e.exports=TypeError},22921:e=>{"use strict";e.exports=URIError},30836:e=>{"use strict";e.exports=Object},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 o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!==typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),s=n(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=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 i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},35711:(e,t,n)=>{"use strict";var r=n(9265);e.exports=Function.prototype.bind||r},94701:(e,t,n)=>{"use strict";var r,o=n(30836),i=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,k=n(27199)(),C=n(91268),O=n(39232),N=n(62384),T=n(69426),A=n(70084),I={},P="undefined"!==typeof Uint8Array&&C?C(Uint8Array):r,D={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&C?C([][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%":i,"%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%":k&&C?C(C([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&k&&C?C((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%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&&k&&C?C((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&C?C(""[Symbol.iterator]()):r,"%Symbol%":k?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(C)try{null.error}catch(K){var R=C(C(K));D["%Error.prototype%"]=R}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 o=e("%AsyncGenerator%");o&&C&&(n=C(o.prototype))}return D[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,W=/\\(\\)?/g,V=function(e,t){var n,r=e;if(z(M,r)&&(r="%"+(n=M[r])[0]+"%"),z(D,r)){var o=D[r];if(o===I&&(o=j(r)),"undefined"===typeof o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}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,o){r[r.length]=n?U(o,W,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=V("%"+r+"%",t),i=o.name,a=o.value,s=!1,l=o.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(D,i="%"+(r+="."+p)+"%"))a=D[i];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&&(D[i]=a)}}return a}},39232:(e,t,n)=>{"use strict";var r=n(30836);e.exports=r.getPrototypeOf||null},62384:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},91268:(e,t,n)=>{"use strict";var r=n(62384),o=n(39232),i=n(8928);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},55357:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},84363:(e,t,n)=>{"use strict";var r=n(55357);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},27199:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(80605);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},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 o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},86173:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(35711);e.exports=i.call(r,o)},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 o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;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&&o(e),l=t&&o(t),c=s||l;if(e&&o(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?i(a,f):".."===p?(i(a,f),d++):d&&(i(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&o(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),o=s(n);return r!==t||o!==n?e(r,o):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,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,r.A)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}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,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!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}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,d=void 0===l?b:l,g=i.keyLength,E=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function k(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=f(i,S)),m(i,r,n)}function C(){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(k(e.state))}function A(){P(k(_()))}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=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(I=!0,M(o))}(e)}))}}var D=k(_()),R=[D.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),o&&window.addEventListener(x,A)):0===L&&(window.removeEventListener(w,T),o&&window.removeEventListener(x,A))}var F=!1;var B={length:t.length,action:"POP",location:D,createHref:j,push:function(e,r){var o="PUSH",i=m(e,r,C(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=R.indexOf(B.location.key),u=R.slice(0,c+1);u.push(i.key),R=u,N({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=m(e,r,C(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=R.indexOf(B.location.key);-1!==c&&(R[c]=i.key),N({action:o,location:i})}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",k={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 C(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(C(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),o=n.getUserConfirmation,i=void 0===o?b:o,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=k[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 o=x(),a=B.location;if(!T&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(o))return;A=null,function(e){if(T)T=!1,E();else{var t="POP";_.confirmTransitionTo(e,t,i,(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 o=n-r;o&&(T=!0,M(o))}(e)}))}}(o)}}var P=O(),D=g(P);P!==D&&N(D);var R=x(),j=[h(R)];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:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(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,i,(function(e){if(e){var t=h(r),o=g(l+t);if(O()!==o){A=t,function(e){window.location.hash=e}(o);var i=j.lastIndexOf(h(B.location)),a=j.slice(0,i+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,i,(function(e){if(e){var t=h(r),o=g(l+t);O()!==o&&(A=t,N(o));var i=j.indexOf(h(B.location));-1!==i&&(j[i]=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,o=t.initialEntries,i=void 0===o?["/"]:o,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,i.length-1),g=i.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",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,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,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},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}},5290:(e,t,n)=>{"use strict";var r=n(51700),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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]||o}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 o=p(n);o&&o!==h&&e(t,o,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(!i[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},65144:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=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 i: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 o: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=i,t.Lazy=g,t.Memo=m,t.Portal=o,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)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},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===i||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},51700:(e,t,n)=>{"use strict";e.exports=n(65144)},83791:e=>{"use strict";e.exports=function(e,t,n,r,o,i,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,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},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)},4786:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},36484:(e,t,n)=>{var r=n(92470)(n(4133),"DataView");e.exports=r},7653:(e,t,n)=>{var r=n(22984),o=n(99806),i=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=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},935:(e,t,n)=>{var r=n(93454),o=n(4200),i=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=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},37815:(e,t,n)=>{var r=n(92470)(n(4133),"Map");e.exports=r},97269:(e,t,n)=>{var r=n(11320),o=n(22894),i=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=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},70364:(e,t,n)=>{var r=n(92470)(n(4133),"Promise");e.exports=r},32361:(e,t,n)=>{var r=n(92470)(n(4133),"Set");e.exports=r},90035:(e,t,n)=>{var r=n(97269),o=n(67596),i=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=o,a.prototype.has=i,e.exports=a},81382:(e,t,n)=>{var r=n(935),o=n(4212),i=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=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},537:(e,t,n)=>{var r=n(4133).Symbol;e.exports=r},7804:(e,t,n)=>{var r=n(4133).Uint8Array;e.exports=r},41527:(e,t,n)=>{var r=n(92470)(n(4133),"WeakMap");e.exports=r},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)}},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}},61522:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return 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}},19417:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},20943:(e,t,n)=>{var r=n(30040),o=n(52964),i=n(19305),a=n(20368),s=n(83649),l=n(91159),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(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}},54380:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},59368:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},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}},63786:e=>{e.exports=function(e){return e.split("")}},14837:(e,t,n)=>{var r=n(80472),o=n(61872);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},71259:(e,t,n)=>{var r=n(80472),o=n(61872),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},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}},63909:(e,t,n)=>{var r=n(62871),o=n(96294);e.exports=function(e,t){return e&&r(t,o(t),e)}},46710:(e,t,n)=>{var r=n(62871),o=n(6737);e.exports=function(e,t){return e&&r(t,o(t),e)}},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}},35367:(e,t,n)=>{var r=n(81382),o=n(12249),i=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),k="[object Arguments]",C="[object Function]",O="[object Object]",N={};N[k]=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[C]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,T,A,I,P){var D,R=1&n,j=2&n,M=4&n;if(T&&(D=I?T(t,A,I,P):T(t)),void 0!==D)return D;if(!x(t))return t;var L=y(t);if(L){if(D=m(t),!R)return c(t,D)}else{var z=h(t),F=z==C||"[object GeneratorFunction]"==z;if(b(t))return l(t,R);if(z==O||z==k||F&&!I){if(D=j||F?{}:v(t),!R)return j?d(t,s(D,t)):u(t,a(D,t))}else{if(!N[z])return I?t:{};D=g(t,z,R)}}P||(P=new r);var B=P.get(t);if(B)return B;P.set(t,D),_(t)?t.forEach((function(r){D.add(e(r,n,T,r,t,P))})):w(t)&&t.forEach((function(r,o){D.set(o,e(r,n,T,o,t,P))}));var U=L?void 0:(M?j?p:f:j?S:E)(t);return o(U||t,(function(r,o){U&&(r=t[o=r]),i(D,o,e(r,n,T,o,t,P))})),D}},50088:(e,t,n)=>{var r=n(38469),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},75125:(e,t,n)=>{var r=n(98137),o=n(94305)(r);e.exports=o},89875:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},84401:(e,t,n)=>{var r=n(31693)();e.exports=r},98137:(e,t,n)=>{var r=n(84401),o=n(96294);e.exports=function(e,t){return e&&r(e,t,o)}},43238:(e,t,n)=>{var r=n(68097),o=n(92061);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},21551:(e,t,n)=>{var r=n(59368),o=n(19305);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},16320:(e,t,n)=>{var r=n(537),o=n(48955),i=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)?o(e):i(e)}},16133:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},11275:(e,t,n)=>{var r=n(89875),o=n(21519),i=n(68055);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},19750:(e,t,n)=>{var r=n(16320),o=n(59698);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},31926:(e,t,n)=>{var r=n(84100),o=n(59698);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},84100:(e,t,n)=>{var r=n(81382),o=n(63679),i=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)?o(e,t,n,m,g,v):i(e,t,w,n,m,g,v);if(!(1&n)){var k=_&&h.call(e,"__wrapped__"),C=E&&h.call(t,"__wrapped__");if(k||C){var O=k?e.value():e,N=C?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))}},72220:(e,t,n)=>{var r=n(43261),o=n(59698);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},8543:(e,t,n)=>{var r=n(81382),o=n(31926);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;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(i)var h=i(d,f,u,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},21519:e=>{e.exports=function(e){return e!==e}},84579:(e,t,n)=>{var r=n(36738),o=n(31016),i=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!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},68414:(e,t,n)=>{var r=n(43261),o=n(59698);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},54573:(e,t,n)=>{var r=n(16320),o=n(72078),i=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 i(e)&&o(e.length)&&!!a[r(e)]}},28293:(e,t,n)=>{var r=n(85191),o=n(4178),i=n(9112),a=n(19305),s=n(35535);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},71824:(e,t,n)=>{var r=n(48303),o=n(54074),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},24447:(e,t,n)=>{var r=n(38469),o=n(48303),i=n(71325),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},85191:(e,t,n)=>{var r=n(8543),o=n(83216),i=n(89157);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4178:(e,t,n)=>{var r=n(31926),o=n(87924),i=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=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},634:(e,t,n)=>{var r=n(81382),o=n(14837),i=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&&i(n,(function(i,l){if(f||(f=new r),s(i))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),i,l+"",t,n,f):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},66944:(e,t,n)=>{var r=n(14837),o=n(49538),i=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 k=w?w(_,E,n+"",e,t,x):void 0,C=void 0===k;if(C){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);k=E,O||N||T?c(_)?k=_:u(_)?k=a(_):N?(C=!1,k=o(E,!0)):T?(C=!1,k=i(E,!0)):k=[]:h(E)||l(E)?(k=_,l(_)?k=v(_):p(_)&&!f(_)||(k=s(E))):C=!1}C&&(x.set(E,k),b(k,E,y,w,x),x.delete(E)),r(e,n,k)}}},73885:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},49535:(e,t,n)=>{var r=n(43238);e.exports=function(e){return function(t){return r(t,e)}}},44735:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,s=n(t((r-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},62990:(e,t,n)=>{var r=n(9112),o=n(39069),i=n(72633);e.exports=function(e,t){return i(o(e,t,r),e+"")}},63546:(e,t,n)=>{var r=n(71259),o=n(68097),i=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=o(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:i(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},47018:(e,t,n)=>{var r=n(80222),o=n(40691),i=n(9112),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},32112:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},30040:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},85532:(e,t,n)=>{var r=n(537),o=n(54380),i=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(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},15464:(e,t,n)=>{var r=n(73712),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},57741:e=>{e.exports=function(e){return function(t){return e(t)}}},62509:(e,t,n)=>{var r=n(90035),o=n(82789),i=n(19417),a=n(2859),s=n(43821),l=n(80303);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=i;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}},2859:e=>{e.exports=function(e,t){return e.has(t)}},37530:(e,t,n)=>{var r=n(9112);e.exports=function(e){return"function"==typeof e?e:r}},68097:(e,t,n)=>{var r=n(19305),o=n(46626),i=n(35554),a=n(68814);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},19418:(e,t,n)=>{var r=n(32112);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},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}},49538:(e,t,n)=>{e=n.nmd(e);var r=n(4133),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?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}},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)}},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}},33120:(e,t,n)=>{var r=n(537),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},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)}},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}},62871:(e,t,n)=>{var r=n(71259),o=n(80472);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},40279:(e,t,n)=>{var r=n(62871),o=n(54736);e.exports=function(e,t){return r(e,o(e),t)}},91644:(e,t,n)=>{var r=n(62871),o=n(12927);e.exports=function(e,t){return r(e,o(e),t)}},31473:(e,t,n)=>{var r=n(4133)["__core-js_shared__"];e.exports=r},35647:(e,t,n)=>{var r=n(62990),o=n(90552);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},94305:(e,t,n)=>{var r=n(88118);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},31693:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},78195:(e,t,n)=>{var r=n(19418),o=n(9434),i=n(12880),a=n(68814);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},73148:(e,t,n)=>{var r=n(44735),o=n(90552),i=n(29776);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},64205:(e,t,n)=>{var r=n(4133),o=n(33609),i=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=i(e),(n=null==n?0:l(o(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)}}},43821:(e,t,n)=>{var r=n(32361),o=n(94454),i=n(80303),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},40691:(e,t,n)=>{var r=n(92470),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},63679:(e,t,n)=>{var r=n(90035),o=n(89728),i=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(!o(t,(function(e,t){if(!i(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}},39450:(e,t,n)=>{var r=n(537),o=n(7804),i=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 o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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}},66217:(e,t,n)=>{var r=n(67530),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,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:o.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(i)var b=l?i(y,v,f,t,e,s):i(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,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}},54528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},67530:(e,t,n)=>{var r=n(21551),o=n(54736),i=n(96294);e.exports=function(e){return r(e,i,o)}},35725:(e,t,n)=>{var r=n(21551),o=n(12927),i=n(6737);e.exports=function(e){return r(e,i,o)}},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}},83216:(e,t,n)=>{var r=n(17900),o=n(96294);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},92470:(e,t,n)=>{var r=n(84579),o=n(98112);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},22807:(e,t,n)=>{var r=n(64503)(Object.getPrototypeOf,Object);e.exports=r},48955:(e,t,n)=>{var r=n(537),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},54736:(e,t,n)=>{var r=n(61522),o=n(82121),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},12927:(e,t,n)=>{var r=n(59368),o=n(22807),i=n(54736),a=n(82121),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},43261:(e,t,n)=>{var r=n(36484),o=n(37815),i=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(o),v=c(i),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.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},98112:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},78326:(e,t,n)=>{var r=n(68097),o=n(52964),i=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)&&(i(e)||o(e))}},9434:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},22984:(e,t,n)=>{var r=n(57578);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},99806:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},68489:(e,t,n)=>{var r=n(57578),o=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 o.call(t,e)?t[e]:void 0}},38533:(e,t,n)=>{var r=n(57578),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},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}},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}},55799:(e,t,n)=>{var r=n(74413),o=n(54353),i=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 o(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 i(e);case"[object Symbol]":return a(e)}}},52497:(e,t,n)=>{var r=n(50088),o=n(22807),i=n(48303);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},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}},90552:(e,t,n)=>{var r=n(61872),o=n(88118),i=n(83649),a=n(38469);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},46626:(e,t,n)=>{var r=n(19305),o=n(60242),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},19058:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},31016:(e,t,n)=>{var r=n(31473),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},48303:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},17900:(e,t,n)=>{var r=n(38469);e.exports=function(e){return e===e&&!r(e)}},93454:e=>{e.exports=function(){this.__data__=[],this.size=0}},4200:(e,t,n)=>{var r=n(6993),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},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]}},74343:(e,t,n)=>{var r=n(6993);e.exports=function(e){return r(this.__data__,e)>-1}},28815:(e,t,n)=>{var r=n(6993);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},11320:(e,t,n)=>{var r=n(7653),o=n(935),i=n(37815);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new 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}},23097:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).get(e)}},78453:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).has(e)}},24381:(e,t,n)=>{var r=n(85651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},96741:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},89157:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},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}},57578:(e,t,n)=>{var r=n(92470)(Object,"create");e.exports=r},54074:(e,t,n)=>{var r=n(64503)(Object.keys,Object);e.exports=r},71325:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},73073:(e,t,n)=>{e=n.nmd(e);var r=n(54528),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},85406:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},64503:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},39069:(e,t,n)=>{var r=n(34657),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},4133:(e,t,n)=>{var r=n(54528),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},76614:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},67596:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},78475:e=>{e.exports=function(e){return this.__data__.has(e)}},80303:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},72633:(e,t,n)=>{var r=n(47018),o=n(29355)(r);e.exports=o},29355:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4212:(e,t,n)=>{var r=n(935);e.exports=function(){this.__data__=new r,this.size=0}},64898:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},42589:e=>{e.exports=function(e){return this.__data__.get(e)}},98545:e=>{e.exports=function(e){return this.__data__.has(e)}},26905:(e,t,n)=>{var r=n(935),o=n(37815),i=n(97269);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},68055:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},12880:(e,t,n)=>{var r=n(63786),o=n(9434),i=n(20878);e.exports=function(e){return o(e)?i(e):r(e)}},35554:(e,t,n)=>{var r=n(18408),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},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}},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""}},73712:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},20878:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*"),d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},98816:(e,t,n)=>{var r=n(68814),o=n(58120);e.exports=function(e){return o(r(e).toLowerCase())}},58671:(e,t,n)=>{var r=n(35367);e.exports=function(e){return r(e,5)}},80222:e=>{e.exports=function(e){return function(){return e}}},43781:(e,t,n)=>{var r=n(38469),o=n(65236),i=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=o();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=o(),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=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(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(o())},_}},22735:(e,t,n)=>{e.exports=n(54386)},61872:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},54386:(e,t,n)=>{var r=n(12249),o=n(75125),i=n(37530),a=n(19305);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},87924:(e,t,n)=>{var r=n(43238);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},1167:(e,t,n)=>{var r=n(16133),o=n(78326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},9112:e=>{e.exports=function(e){return e}},52964:(e,t,n)=>{var r=n(19750),o=n(59698),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},19305:e=>{var t=Array.isArray;e.exports=t},88118:(e,t,n)=>{var r=n(36738),o=n(72078);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},59653:(e,t,n)=>{var r=n(88118),o=n(59698);e.exports=function(e){return o(e)&&r(e)}},20368:(e,t,n)=>{e=n.nmd(e);var r=n(4133),o=n(84711),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},905:(e,t,n)=>{var r=n(71824),o=n(43261),i=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)||i(e)))return!e.length;var t=o(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}},62060:(e,t,n)=>{var r=n(31926);e.exports=function(e,t){return r(e,t)}},36738:(e,t,n)=>{var r=n(16320),o=n(38469);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},72078:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},50490:(e,t,n)=>{var r=n(72220),o=n(57741),i=n(73073),a=i&&i.isMap,s=a?o(a):r;e.exports=s},38469:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},59698:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},20011:(e,t,n)=>{var r=n(16320),o=n(22807),i=n(59698),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(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}},87232:(e,t,n)=>{var r=n(68414),o=n(57741),i=n(73073),a=i&&i.isSet,s=a?o(a):r;e.exports=s},60242:(e,t,n)=>{var r=n(16320),o=n(59698);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},91159:(e,t,n)=>{var r=n(54573),o=n(57741),i=n(73073),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},96294:(e,t,n)=>{var r=n(20943),o=n(71824),i=n(88118);e.exports=function(e){return i(e)?r(e):o(e)}},6737:(e,t,n)=>{var r=n(20943),o=n(24447),i=n(88118);e.exports=function(e){return i(e)?r(e,!0):o(e)}},45296:(e,t,n)=>{var r=n(97269);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},17148:(e,t,n)=>{var r=n(634),o=n(35647)((function(e,t,n){r(e,t,n)}));e.exports=o},94454:e=>{e.exports=function(){}},65236:(e,t,n)=>{var r=n(4133);e.exports=function(){return r.Date.now()}},35535:(e,t,n)=>{var r=n(73885),o=n(49535),i=n(46626),a=n(92061);e.exports=function(e){return i(e)?r(a(e)):o(e)}},36613:(e,t,n)=>{var r=n(73148)();e.exports=r},6104:(e,t,n)=>{var r=n(64205)("round");e.exports=r},38896:(e,t,n)=>{var r=n(63546);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},82121:e=>{e.exports=function(){return[]}},84711:e=>{e.exports=function(){return!1}},61758:(e,t,n)=>{var r=n(43781),o=n(38469);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},29776:(e,t,n)=>{var r=n(150),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},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}},150:(e,t,n)=>{var r=n(15464),o=n(38469),i=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(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(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}},26180:(e,t,n)=>{var r=n(62871),o=n(6737);e.exports=function(e){return r(e,o(e))}},68814:(e,t,n)=>{var r=n(85532);e.exports=function(e){return null==e?"":r(e)}},11078:(e,t,n)=>{var r=n(28293),o=n(62509);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},58120:(e,t,n)=>{var r=n(78195)("toUpperCase");e.exports=r},51682:e=>{"use strict";e.exports=Math.abs},45904:e=>{"use strict";e.exports=Math.floor},58899:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},73620:e=>{"use strict";e.exports=Math.max},40538:e=>{"use strict";e.exports=Math.min},7328:e=>{"use strict";e.exports=Math.pow},54:e=>{"use strict";e.exports=Math.round},75869:(e,t,n)=>{"use strict";var r=n(58899);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},77995:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}const i=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}}},97650:function(e,t,n){var r,o,i;o=[n(7139)],void 0===(i="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,o=e>=100?100:null;return t[n]||t[r]||t[o]},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,o):r)||(e.exports=i)},7139:function(e,t,n){var r,o;r=function(){var e,t,n="2.0.6",r={},o={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var o,i,l,c;if(e.isNumeral(n))o=n.value();else if(0===n||"undefined"===typeof n)o=0;else if(null===n||t.isNaN(n))o=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)o=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)o=null;else{for(i in r)if((c="function"===typeof r[i].regexps.unformat?r[i].regexps.unformat():r[i].regexps.unformat)&&n.match(c)){l=r[i].unformat;break}o=(l=l||e._.stringToNumber)(n)}else o=Number(n)||null;return new s(n,o)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var i,a,s,l,c,u,d,f=o[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")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=v):a<v&&a>=y&&!i||"b"===i?(g+=f.abbreviations.billion,t/=y):a<y&&a>=b&&!i||"m"===i?(g+=f.abbreviations.million,t/=b):(a<b&&a>=w&&!i||"k"===i)&&(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&&!i&&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,i=o[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,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.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),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,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 o,i,a,s,l=e.toString().split("."),c=t-(r||0);return o=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,o),s=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},e.options=a,e.formats=r,e.locales=o,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return o[a.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in i)a[e]=i[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,o,i,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 i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===i))&&(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(o+"{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 o,i,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)i=a.zeroFormat;else if(null===l&&null!==a.nullFormat)i=a.nullFormat;else{for(o in r)if(c.match(r[o].regexps.format)){s=r[o].format;break}i=(s=s||e._.numberToFormat)(l,c,n)}return i},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,o){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,o){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,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)}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 o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},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,o,i){var a,s,l,c=e._.includes(o,"ib")?n:t,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.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,o,i)+u},unformat:function(r){var o,i,a=e._.stringToNumber(r);if(a){for(o=t.suffixes.length-1;o>=0;o--){if(e._.includes(r,t.suffixes[o])){i=Math.pow(t.base,o);break}if(e._.includes(r,n.suffixes[o])){i=Math.pow(n.base,o);break}}a*=i||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=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),i=0;i<s.before.length;i++)switch(s.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=s.after.length-1;i>=0;i--)switch(s.after[i]){case"$":o=i===s.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(s.after.length-(1+i)));break;case" ":o=i===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);function i(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)}return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],i,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},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),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},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===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o)},69123:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.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,k=Array.prototype.slice,C=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,D=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(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?-C(-e):C(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([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,o=z[r];return o+e+o}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,o,s){var l=r||{};if(V(l,"quoteStyle")&&!V(z,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(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=!V(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(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(V(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?R(t,_):_}if("bigint"===typeof t){var C=String(t)+"n";return w?R(t,C):C}var N="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=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,o);if("undefined"===typeof s)s=[];else if(G(s,t)>=0)return"[Circular]";function F(t,n,r){if(n&&(s=k.call(s)).push(n),r){var i={depth:l.depth};return V(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"===typeof t&&!$(t)){var W=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),Z=te(t,F);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(Z.length>0?" { "+S.call(Z,", ")+" }":"")}if(H(t)){var ne=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==typeof t||A?ne:Q(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)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)re+=" "+oe[ie].name+"="+B(U(oe[ie].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-o});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.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",i.call(t),le,M)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.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 Q(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 Q(F(O.call(t)));if(function(e){return"[object Boolean]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Q(h.call(t));if(function(e){return"[object String]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Q(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=D?D(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 W=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return W.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 o=F[t.quoteStyle||"single"];return o.lastIndex=0,B(b.call(b.call(e,o,"\\$1"),/[\x00-\x1f]/g,Z),"single",t)}function Z(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 Q(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 o=0;o<e.length;o++)r[o]=V(e,o)?t(e[o],e):""}var i,a="function"===typeof N?N(e):[];if(A){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)V(e,l)&&(n&&String(Number(l))===l&&l<e.length||A&&i["$"+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}},95166:e=>{e.exports=d,e.exports.match=function(e,t){var n=[];return i(d(e,n,t),n)},e.exports.regexpToFunction=i,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 i,a=[],s=0,c=0,u="",d=r&&r.delimiter||t,f=r&&r.whitelist||void 0,p=!1;null!==(i=n.exec(e));){var h=i[0],m=i[1],g=i.index;if(u+=e.slice(c,g),c=g+h.length,m)u+=m[1],p=!0;else{var v="",y=i[2],b=i[3],w=i[4],x=i[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,k="?"===x||"*"===x,C=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:k,repeat:S,pattern:C?l(C):o(O,d,N)})}}return(u||c<e.length)&&a.push(u+e.substr(c)),a}function o(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 i(e,t){return function(n,r){var o=e.exec(n);if(!o)return!1;for(var i=o[0],a=o.index,s={},l=r&&r.decode||decodeURIComponent,c=1;c<o.length;c++)if(void 0!==o[c]){var u=t[c-1];u.repeat?s[u.name]=o[c].split(u.delimiter).map((function(e){return l(e,u)})):s[u.name]=l(o[c],u)}return{path:i,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 o="",i=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=i(u[d],l),a&&!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');o+=(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=i(String(u),l),a&&!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+c+'"');o+=l.prefix+c}}else o+=l}return o}}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 o=(r=r||{}).strict,i=!1!==r.start,a=!1!==r.end,l=r.delimiter||t,u=[].concat(r.endsWith||[]).map(s).concat("$").join("|"),d=i?"^":"",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)o||(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;o||(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=[],o=0;o<e.length;o++)r.push(d(e[o],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)}},77390:(e,t,n)=>{"use strict";var r=n(31445);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,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:i,resetWarningCache:o};return n.PropTypes=n,n}},13260:(e,t,n)=>{e.exports=n(77390)()},31445:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7445:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},74309:(e,t,n)=>{"use strict";var r=n(93780),o=n(77146),i=n(7445);e.exports={formats:i,parse:o,stringify:r}},77146:(e,t,n)=>{"use strict";var r=n(73888),o=Object.prototype.hasOwnProperty,i=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 i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.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("["+i.slice(s.index)+"]")}return function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);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]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(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=i(g)?[g]:g);var w=o.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)}},93780:(e,t,n)=>{"use strict";var r=n(3584),o=n(73888),i=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=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,a,s,c,d,f,m,g,v,y,b,w,x,_,E,S){for(var k,C=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?C=g(n,C):C instanceof Date?C=b(C):"comma"===i&&l(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?b(e):e}))),null===C){if(c)return m&&!_?m(n,p.encoder,E,"key",w):n;C=""}if("string"===typeof(k=C)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||o.isBuffer(C))return m?[x(_?n:m(n,p.encoder,E,"key",w))+"="+x(m(C,p.encoder,E,"value",w))]:[x(n)+"="+x(String(C))];var I,P=[];if("undefined"===typeof C)return P;if("comma"===i&&l(C))_&&m&&(C=o.maybeMap(C,m)),I=[{value:C.length>0?C.join(",")||null:void 0}];else if(l(g))I=g;else{var D=Object.keys(C);I=v?D.sort(v):D}var R=f?String(n).replace(/\./g,"%2E"):String(n),j=a&&l(C)&&1===C.length?R+"[]":R;if(s&&l(C)&&0===C.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:C[L];if(!d||null!==z){var F=y&&f?String(L).replace(/\./g,"%2E"):String(L),B=l(C)?"function"===typeof i?i(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(P,e(z,B,i,a,s,c,d,f,"comma"===i&&_&&l(C)?null:m,g,v,y,b,w,x,_,E,U))}}return P};e.exports=function(e,t){var n,o=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=i.default;if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.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:o,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?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d=[];if("object"!==typeof o||null===o)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v],b=o[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:""}},73888:(e,t,n)=>{"use strict";var r=n(7445),o=Object.prototype.hasOwnProperty,i=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 o=t[r],a=o.obj[o.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(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);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(o){return r}},encode:function(e,t,n,o,i){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||i===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(i(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(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"===typeof a&&n&&"object"===typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},53202:(e,t,n)=>{"use strict";n.d(t,{JY:()=>bo,sx:()=>ti,gL:()=>ii});var r=n(59284),o=n(25540),i=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 o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),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,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,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,o=e.children,i=(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=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||s;return r.createElement(l.Provider,{value:i},o)};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,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function k(e,t,n,r,o,i,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,o.current)}catch(p){n=p,d=p}n||(d=null),e===i.current?a.current||l():(i.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 C=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,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,D=(0,h.A)(n,y),R=P;return function(t){var n=t.displayName||t.name||"Component",o=a(n),s=(0,i.A)({},D,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=D.pure;var u=l?r.useMemo:function(e){return e()};function p(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,h.A)(n,b);return[n.context,e,t]}),[n]),a=o[0],l=o[1],c=o[2],f=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,v.isContextConsumer)(r.createElement(a.Consumer,null))?a:R}),[a,R]),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,i.A)({},p,{subscription:T})}),[g,p,T]),P=(0,r.useReducer)(_,w,C),D=P[0][0],j=P[1];if(D&&D.error)throw D.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,D,c]);E(S,[L,M,F,c,B,z,A]),E(k,[m,y,T,O,L,M,F,z,A,j],[y,T,O]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,i.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=o,A){var O=r.forwardRef((function(e,t){return r.createElement(y,(0,i.A)({},e,{reactReduxForwardedRef:t}))}));return O.displayName=o,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 o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!N(e[n[o]],t[n[o]]))return!1;return!0}function A(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}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 o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=I(o),o=r(t,n)),o},r}}const D=[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 o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];const R=[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,i.A)({},n,e,t)}const M=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(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(o,i){return n(e(o,i),t(r,i),i)}}function F(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;function h(o,p){var h=!d(p,a),m=!u(o,i,p,a);return i=o,a=p,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(i,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return p?h(o,u):(s=e(i=o,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,o=t.initMergeProps,i=(0,h.A)(t,L),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?F:z)(a,s,l,e,i)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function q(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}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,o=t.mapStateToPropsFactories,a=void 0===o?R:o,s=t.mapDispatchToPropsFactories,l=void 0===s?D:s,c=t.mergePropsFactories,u=void 0===c?M:c,d=t.selectorFactory,f=void 0===d?B:d;return function(e,t,n,o){void 0===o&&(o={});var s=o,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"),k=q(n,u,"mergeProps");return r(f,(0,i.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:k,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},_))}}const W=H();var V,K=n(48681);function G(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.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,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}V=K.unstable_batchedUpdates,l=V;var Y=G,Z=function(e,t){return G((function(){return e}),t)},Q=n(68643),J=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/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,o=e.border,i=void 0===o?te:o,a=e.padding,s=void 0===a?te:a,l=J(X(t,r)),c=J(ee(t,i)),u=J(ee(c,s));return{marginBox:l,borderBox:J(t),paddingBox:c,contentBox:u,margin:r,border:i,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,Q.A)(!1),n},oe=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ne({borderBox:l,border:i,margin:a,padding:s})},ie=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),oe(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)},o={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:o})},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,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,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,i.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),o=0;o<n;o++)r[o]=arguments[o];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,o.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),o=ye(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\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}},ke=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Ce=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}},De=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}]},Re=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,o=e.frame,a=function(e,t){return t?Pe(e,t.scroll.diff.displacement):e}(t.marginBox,o),s=function(e,t,n){var r;return n&&n.increasedBy?(0,i.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Re(s,o)}},Me=function(e,t){e.frame||ge(!1);var n=e.frame,r=ke(t,n.scroll.initial),o=Oe(r),a=(0,i.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),s=je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,i.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)})),We=(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 Ve(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},Ze={point:Ee,value:0},Qe={invisible:{},visible:{},all:[]},Je={displaced:Qe,displacedBy:Ze,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 o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)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&&i||s&&o)}},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"},ot=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?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,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},it=function(e){return ot((0,i.A)({},e,{isVisibleThroughFrameFn:et}))},at=function(e){return ot((0,i.A)({},e,{isVisibleThroughFrameFn:tt}))};function st(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=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),!it({target:s,destination:n,viewport:o,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,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(l,a,i),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,o=e.destination,i=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:Qe,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function ct(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=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:i,destination:r});var u=Fe(n,(function(e){return e.descriptor.index===s}));if(!u)return lt({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=Ge(t,n),f=n.indexOf(u);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,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,o=e.draggables,i=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,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-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:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return ut(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:ct({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Ke(n);o||ge(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return ut(r,n)?i?Ee:Oe(o.point):i?o.point:Ee}({displaced:n.displaced,afterCritical:t,combineWith:i,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,o=e.droppable,i=e.afterCritical,a=We(o.descriptor.id,r),s=n.page,l=o.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:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(ut(d,i))return gt({axis:l,moveRelativeTo:f.page,isMoving:s});var p=oe(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,i)){var m=oe(h.page,Oe(i.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,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?vt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):ft({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?yt(n,t):t},wt=function(e,t){var n=ke(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),o=ke(r,n.page.borderBox.center);return Se(n.client.borderBox.center,o)},Et=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,c=ke(r,t.page.borderBox.center),u={target:Pe(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return ot((0,i.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,o=e.draggables,a=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=We(r.descriptor.id,o),f=Ye(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Ve(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,i.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,o);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:o,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:u});if(!p)return null;var h=bt({impact:p,draggable:n,droppable:r,draggables:o,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=ke(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=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,o),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=st({afterDragging:xt(c.all,o),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,i.A)({},t,{displaced:{all:c.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},kt=function(e){var t=e.subject.active;return t||ge(!1),t},Ct=function(e,t){var n=e.page.borderBox.center;return ut(e.descriptor.id,t)?ke(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,i.A)({},e,{scroll:(0,i.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 o=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 o=e.subject.page.contentBox[r.size],i=We(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Ne(r.line,i)}(e,o,n),s={placeholderSize:o,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,i.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,i.A)({},e,{subject:d,frame:u})},It=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=Xe(a[s.start],a[s.end]),c=$e(o).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(i.frame)(kt(e))})).filter((function(e){var n=kt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=kt(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=kt(e)[s.crossAxisStart],o=kt(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return kt(e)[s.crossAxisStart]===kt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Xe(kt(e)[s.start],kt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return kt(e)[s.start]-kt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ae(n,De(kt(e))),o=Ae(n,De(kt(t)));return r!==o?r-o:kt(e)[s.start]-kt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!c)return null;var u=We(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return at({target:Ot(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Te(t,yt(r,Ct(e,i))),a=Te(t,yt(r,Ct(n,i)));return o<a?-1:a<o?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,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Qe,displacedBy:Ze,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=bt({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=Ye(o,a)?a:At(a,o,i);return Et({draggable:o,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===o.descriptor.id||f?e:e+1}(),h=Nt(a.axis,o.displaceBy);return ct({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:Qe,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=bt({impact:f,draggable:r,droppable:c,draggables:i,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},Dt=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),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)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 Rt(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,o=$e(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(jt(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=Xe(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=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(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):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,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Lt(n.page.borderBox,t),c=Mt({pageBorderBox:l,draggable:n,droppables:o});if(!c)return Je;var u=o[c],d=We(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,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Nt(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Fe(Ge(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=ut(t,a),l=zt({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&d<n[s.end]-o:u>n[s.start]-c+o&&u<n[s.end]-c-o:l?d>n[s.start]+c+o&&d<n[s.end]+c-o:u>n[s.start]+o&&u<n[s.end]-o}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=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,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=ut(t,s),o=zt({displaced:i,id:t});return r?o?f<=n:d<n-u:o?f<=n+u:d<n})),inHomeList:Ye(n,r)});return ct({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},Bt=function(e,t){var n;return(0,i.A)({},e,((n={})[t.descriptor.id]=t,n))},Ut=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Pt(t),a=Pt(n);if(!o)return r;if(o===a)return r;var s=r[o];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,i.A)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||ge(!1);var a=Tt(n,o),s=je({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,i.A)({},e,{subject:s,frame:a})}(s);return Bt(r,l)},qt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,s=e.scrollJumpRequest,l=o||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=ke(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,i.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,o=e.previousImpact,i=e.impact,a=Ut({previousImpact:o,impact:i,droppables:r}),s=Pt(i);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,i.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,o=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:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,i.A)({},t,{displaced:c})},Ht=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=bt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return _t({pageBorderBoxCenter:s,draggable:n,viewport:i})},Wt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ge(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Pt(o);u||ge(!1);var d=l[u],f=$t({impact:o,viewport:i,destination:d,draggables:s}),p=Ht({impact:f,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return qt({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},Vt=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Nt(n.axis,t.displaceBy),a=We(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:i,effected:u};return{impact:{displaced:st({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,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,o=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,o=oe(t.client,n),a=ie(o,r);return(0,i.A)({},t,{placeholder:(0,i.A)({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:Se(o,s),initialWindowScroll:r.scroll.initial});return l}))},Zt=function(e){return"SNAP"===e.movementMode},Qt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Bt(e.droppables,t)}}(e.dimensions,t);return!Zt(e)||n?qt({state:e,dimensions:r}):Wt({state:e,dimensions:r})};function Jt(e){return e.isDragging&&"SNAP"===e.movementMode?(0,i.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,i.A)({},Xt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ge(!1);var n=t.payload,r=n.critical,o=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:o,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=Vt({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,i.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)})),o=(0,i.A)({},t.dimensions.droppables,{},Ue(r)),a=qe(Yt({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),s=(0,i.A)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var l={droppables:o,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=Vt({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,i.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:(0,i.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;Rt(e)||ge(!1);var g=t.payload.client;return Ce(g,e.current.client.selection)?e:qt({state:e,clientSelection:g,impact:Zt(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);Rt(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 Qt(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var _=t.payload,E=_.id,S=_.isEnabled,k=e.dimensions.droppables[E];k||ge(!1),k.isEnabled===S&&ge(!1);var C=(0,i.A)({},k,{isEnabled:S});return Qt(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(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,i.A)({},A,{isCombineEnabled:T});return Qt(e,I,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Rt(e)||ge(!1),e.isWindowScrollAllowed||ge(!1);var P=t.payload.newScroll;if(Ce(e.viewport.scroll.current,P))return Jt(e);var D=wt(e.viewport,P);return Zt(e)?Wt({state:e,viewport:D}):qt({state:e,viewport:D})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Rt(e))return e;var R=t.payload.maxScroll;if(Ce(R,e.viewport.scroll.max))return e;var j=(0,i.A)({},e.viewport,{scroll:(0,i.A)({},e.viewport.scroll,{max:R})});return(0,i.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=Dt({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,i.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 Ce(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},kn=.33,Cn=.55,On=Cn-kn,Nn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&ge(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ge(!1);var s=o.critical,l=o.dimensions,c=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,i.A)({},r,{displaced:Qe}),didDropInsideDroppable:!0}:{impact:$t({draggables:t,impact:s,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,p=f?Ve(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:o.movementMode,destination:p,combine:h},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=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:i,droppable:c||u,viewport:o});return ke(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),y={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:d};if(!Ce(o.current.client.offset,v)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=Te(t,n);if(o<=0)return kn;if(o>=1500)return Cn;var i=kn+On*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.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),o=de;function i(){return o!==de}return{start:function(){i()&&ge(!1),o=fe(window,[r])},stop:function(){i()||ge(!1),n.cancel(),o(),o=de},isActive:i}}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()}))}}}},Dn=function(e,t){Kt(),t(),Gt()},Rn=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 o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Mn=function(e,t){var n=function(e,t){var n=Pn(),r=null,o=function(n){r||ge(!1),r=null,Dn(0,(function(){return jn(e().onDragEnd,n,t,_e.onDragEnd)}))};return{beforeCapture:function(t,n){r&&ge(!1),Dn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ge(!1),Dn(0,(function(){var r=e().onBeforeDragStart;r&&r(Rn(t,n))}))},start:function(o,i){r&&ge(!1);var a=Rn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Dn(0,(function(){return jn(e().onDragStart,a,t,_e.onDragStart)}))}))},update:function(o,a){var s=Ve(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}(o,r.lastCritical);c&&(r.lastCritical=o);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,i.A)({},Rn(o,r.mode),{combine:l,destination:s});n.add((function(){Dn(0,(function(){return jn(e().onDragUpdate,h,t,_e.onDragUpdate)}))}))}},flush:function(){r||ge(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,i.A)({},Rn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}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(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={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,[i])}))}}}},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,o=e.styleMarshal,i=e.getResponders,s=e.announce,l=e.autoScroller;return(0,a.y$)(en,Bn((0,a.Tw)((t=o,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(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.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(o)}}}}(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 o=t.getState();return"DRAGGING"!==o.phase&&ge(!1),void e.start(o)}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 o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Mn(i,s))))};var qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=ke({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.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})},Wn=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Kt();var o=function(){var e=Tn(),t=Hn(),n=e.y,r=e.x,o=$n(),i=o.clientWidth,a=o.clientHeight;return{frame:J({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ee,displacement:Ee}}}}(),i=o.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),c={draggables:qe(l),droppables:Ue(s)};return Gt(),{dimensions:c,critical:t,viewport:o}};function Vn(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:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,Kt();var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).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],i()},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],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||ge(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Vn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Vn(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||ge(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&ge(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},Wn({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 i},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)},Zn=(0,le.A)((function(e){return $e(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Qn=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=Fe(Zn(t),(function(t){return t.frame||ge(!1),jt(t.frame.pageMarginBox)(e)}));return n}(t,r);return i},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,o=n-t;return 0===o?0:(r-t)/o},or=nr.accelerateAt,ir=nr.stopDampeningAt,ar=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=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===i?0:o?Math.max(function(e,t){var n=t,r=ir,o=Date.now()-n;if(o>=ir)return e;if(o<or)return 1;var i=rr({startOfRange:or,endOfRange:r,current:o}),a=e*tr(i);return Math.ceil(a)}(i,r),1):i},sr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Jn,maxScrollValueAt:e[t.size]*Xn}}(t,o);return n[o.end]<n[o.start]?ar({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*ar({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},lr=Ie((function(e){return 0===e?0:e})),cr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:nt,shouldUseTimeDampening:i}),l=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:rt,shouldUseTimeDampening:i}),c=lr({x:l,y:s});if(Ce(c,Ee))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?Ce(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,o=t.change,i=Se(n,o),a={x:e(i.x,r.x),y:e(i.y,r.y)};return Ce(a,Ee)?null:a}}(),fr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=ur(r),a=dr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.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,o=e.scrollWindow,i=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,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=cr({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var c=Qn({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,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=cr({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&hr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},gr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=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 o=ke(t,r);return n(e.descriptor.id,o),ke(t,o)},i=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var o=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(!o)return r(n),null;var i=ke(n,o);return r(i),ke(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Pt(e.impact);r||ge(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=i(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,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),o=ce(n),i=null,a=function(e){i||ge(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;mr({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Kt(),i&&ge(!1);var t=Date.now(),n=!1,r=function(){n=!0};mr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Gt(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=gr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.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}}}(),o=[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(o,"always"),resting:Er(o,"resting"),dragging:Er(o,"dragging"),dropAnimating:Er(o,"dropAnimating"),userCancel:Er(o,"userCancel")}},kr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,Cr=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 o=Fe(r,(function(e){return e.getAttribute(br.draggableId)===t}));return o&&Tr(o)?o: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 o(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 o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],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=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||ge(!1),t},findById:o,exists:function(e){return Boolean(o(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),Dr=function(){var e=document.body;return e||ge(!1),e},Rr={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),Wr=function(e){Hr[e.keyCode]&&e.preventDefault()},Vr=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,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},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);o({type:"DRAGGING",actions:l})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.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 Wr(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:Vr,fn:t}]}function Zr(){}var Qr=((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(Qr[r.keyCode]?r.preventDefault():Wr(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:Vr,fn:n}]}var Xr={type:"IDLE"};var eo={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function to(e,t){if(null==t)return!1;if(Boolean(eo[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&to(e,t.parentElement)}function no(e,t){var n=t.target;return!!Tr(n)&&to(e,n)}var ro=function(e){return J(e.getBoundingClientRect()).center};var oo=function(){var e="matches";return"undefined"===typeof document?e:Fe([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function io(e,t){return null==e?null:e[oo](t)?e:io(e.parentElement,t)}function ao(e,t){return e.closest?e.closest(t):io(e,t)}function so(e,t){var n,r=t.target;if(!((n=r)instanceof Nr(n).Element))return null;var o=function(e){return"["+br.contextId+'="'+e+'"]'}(e),i=ao(r,o);return i&&Tr(i)?i:null}function lo(e){e.preventDefault()}function co(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function uo(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Gn(n.getState(),o))}function fo(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!uo({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var c=o.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&&no(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){co({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=fe(window,[{eventName:"click",fn:lo,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(mn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ge(!1)),r.dispatch(tn(e.liftActionArgs)),f="DRAGGING",(0,i.A)({isActive:function(){return co({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return co({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,i.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:ro(u),movementMode:"SNAP"},cleanup:de,actions:e})},abort:function(){co({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var po=[function(e){var t=(0,r.useRef)(Gr),n=(0,r.useRef)(de),o=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 o=e.tryGetLock(r,s,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),i=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=Z((function(){n.current=fe(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=Z((function(){"IDLE"!==t.current.type&&(t.current=Gr,n.current(),a())}),[a]),l=Z((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Z((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=Z((function(e,n){"IDLE"!==t.current.type&&ge(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);kr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(Zr),n=Y((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=fe(window,Jr(s,l),{capture:!0,passive:!1})}}}function l(){a||ge(!1),a=!1,t.current(),o()}}}}),[e]),o=Z((function(){t.current=fe(window,[n],{passive:!1,capture:!0})}),[n]);kr((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(Xr),n=(0,r.useRef)(de),o=Z((function(){return t.current}),[]),i=Z((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 o=e.tryGetLock(r,l,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),f(o,a)}}}}}}),[e]),s=Z((function(){n.current=fe(window,[a],{capture:!0,passive:!1})}),[a]),l=Z((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Xr),n.current(),s())}),[s,i]),c=Z((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Z((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},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 o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.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 o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Vr,fn:t}]}(t),e),i=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:Vr,fn:t}]}(t),e);n.current=function(){r(),i()}}),[c,o,l]),d=Z((function(){var e=o();"PENDING"!==e.type&&ge(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=Z((function(e,t){"IDLE"!==o().type&&ge(!1);var n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,i,d]);kr((function(){return s(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Xr))}}),[o,s,i]),kr((function(){return fe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function ho(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?po:[],i||[]),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=Z((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);kr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),kr((function(){return l.tryAbandon}),[l.tryAbandon]);var u=Z((function(e){return uo({lockAPI:l,registry:o,store:n,draggableId:e})}),[l,o,n]),d=Z((function(e,r,i){return fo({lockAPI:l,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,l,o,n]),f=Z((function(e){return function(e,t){var n=so(e,t);return n?n.getAttribute(br.draggableId):null}(t,e)}),[t]),p=Z((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=Z((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(pn()))}),[l,n]),m=Z(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 mo=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function go(e){return e.current||ge(!1),e.current}function vo(e){var t=e.contextId,n=e.setCallbacks,o=e.sensors,s=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);Ur();var u=qr(e),d=Z((function(){return mo(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,i.A)(e.style,Rr),Dr().appendChild(e),function(){setTimeout((function(){var t=Dr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Z((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,o=zr("hidden-text",{separator:"-"}),i=Y((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Dr().appendChild(e),function(){var t=Dr();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:l}),m=function(e,t){var n=Y((function(){return Sr(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=Z((0,le.A)((function(e){var t=i.current;t||ge(!1),t.textContent=e})),[]),s=Z((function(e){var t=o.current;t||ge(!1),t.textContent=e}),[]);kr((function(){(o.current||i.current)&&ge(!1);var r=Or(t),l=Or(t);return o.current=r,i.current=l,r.setAttribute(yr+"-always",e),l.setAttribute(yr+"-dynamic",e),Cr().appendChild(r),Cr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ge(!1),Cr().removeChild(t),e.current=null};e(o),e(i)}}),[t,s,a,n.always,n.resting,e]);var l=Z((function(){return a(n.dragging)}),[a,n.dragging]),c=Z((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=Z((function(){i.current&&a(n.resting)}),[a,n.resting]);return Y((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=Z((function(e){go(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,i.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),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=Z((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=Z((function(t){var n=Ar(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=Z((function(e,t){n.current===e&&(n.current=t)}),[]),c=Z((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&s(e)})))}),[s]),u=Z((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(br.draggableId)===e&&(n.current=e)}),[]);return kr((function(){return i.current=!0,function(){i.current=!1;var e=o.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=Z((function(){var e=go(c);"IDLE"!==e.getState().phase&&e.dispatch(pn())}),[]),S=Z((function(){var e=go(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Y((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var k=Z((function(e){return Gn(go(c).getState(),e)}),[]),C=Z((function(){return Rt(go(c).getState())}),[]),O=Y((function(){return{marshal:b,focus:x,contextId:t,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,x,k,C,y]);return ho({contextId:t,store:_,registry:y,customSensors:o,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 yo=0;function bo(e){var t=Y((function(){return""+yo++}),[]),n=e.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return r.createElement(ve,null,(function(o){return r.createElement(vo,{nonce:e.nonce,contextId:t,setCallbacks:o,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 wo=function(e){return function(t){return e===t}},xo=wo("scroll"),_o=wo("auto"),Eo=(wo("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),So=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Eo(n,xo)||Eo(n,_o)},ko=function e(t){return null==t||t===document.body||t===document.documentElement?null:So(t)?t:e(t.parentElement)},Co=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Oo=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},No=function(e){return{closestScrollable:ko(e),isFixedOnPage:Oo(e)}},To=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=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,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=X({top:r,right:a,bottom:i,left:o},n.border);return ne({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=ie(u,o),f=function(){if(!c)return null;var e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:ie(e,o),scroll:Co(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=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"===i?nt:rt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,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:i,client:u,page:d,closest:f});return p},Ao={passive:!1},Io={passive:!0},Po=function(e){return e.shouldPublishImmediately?Ao:Io};function Do(e){var t=(0,r.useContext)(e);return t||ge(!1),t}var Ro=function(e){return e&&e.env.closestScrollable||null};function jo(){}var Mo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Lo=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Mo:{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:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?xn.placeholder:null}};var zo=r.memo((function(e){var t=(0,r.useRef)(null),n=Z((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),o=e.animate,i=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"!==o?(n(),u(!1),jo):t.current?jo:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):jo}),[o,c,n]);var d=Z((function(e){"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),f=Lo({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})})),Fo=r.createContext(null);var Bo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];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,o.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),Uo=5e3,qo=4500,$o=function(e,t){return t?xn.drop(t.duration):e?xn.snap:xn.fluid},Ho=function(e,t){return e?t?yn.drop:yn.combining:null};function Wo(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(o),l=s?Sn(n,i):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:$o(a,o),transform:l,opacity:Ho(i,s),zIndex:s?qo:Uo,pointerEvents:"none"}}(e):{transform:En((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Vo(e){var t=zr("draggable"),n=e.descriptor,o=e.registry,i=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=Z((function(e){var t=i();return t||ge(!1),function(e,t,n){void 0===n&&(n=Ee);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ae(o,r),a=ie(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),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);kr((function(){return o.draggable.register(f.current),function(){return o.draggable.unregister(f.current)}}),[o.draggable]),kr((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,o.draggable.update(d,e)}}),[d,o.draggable])}function Ko(e,t,n){Ur()}function Go(e){e.preventDefault()}var Yo=function(e,t){return e===t},Zo=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Qo(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Jo={mapped:{type:"SECONDARY",offset:Ee,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Qo(null)}};var Xo=W((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,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,le.A)((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}}));return function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.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(i.x,i.y),r.movementMode,a,o.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var f=o.isClone,p=r.dimensions.draggables[o.draggableId],h=d.result,m=h.mode,g=Zo(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)(Qo),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},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=Ke(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(i.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=i.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:o(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:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||Jo}}),{dropAnimationFinished:gn},null,{context:Pr,pure:!0,areStatePropsEqual:Yo})((function(e){var t=(0,r.useRef)(null),n=Z((function(e){t.current=e}),[]),o=Z((function(){return t.current}),[]),i=Do(Fr),a=i.contextId,s=i.dragHandleUsageInstructionsId,l=i.registry,c=Do(Fo),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;Ko(),Br(),y||Vo(Y((function(){return{descriptor:f,registry:l,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,o,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:Go}:null}),[a,s,h,m]),_=Z((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),E=Y((function(){var e=Wo(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 ei(e){return Do(Fo).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(Xo,e):null}function ti(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(ei,(0,i.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var ni=function(e,t){return e===t.droppable.type},ri=function(e,t){return t.draggables[e.draggable.id]};var oi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ge(!1),document.body}},ii=W((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,i.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,o,i,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:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var f={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var c=n.critical;if(!ni(a,c))return t;var u=ri(c,n.dimensions),d=Pt(n.impact)===i;return r(i,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!ni(a,f.critical))return t;var p=ri(f.critical,n.dimensions);return r(i,s,Zo(f.result)===i,Pt(f.impact)===i,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!ni(a,h.critical))return t;var m=Pt(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;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:Yo})((function(e){var t=(0,r.useContext)(Fr);t||ge(!1);var n=t.contextId,o=t.isMovementAllowed,i=(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=Z((function(){return i.current}),[]),w=Z((function(e){i.current=e}),[]),x=(Z((function(){return a.current}),[]),Z((function(e){a.current=e}),[]));Ur();var _=Z((function(){o()&&v({maxScroll:Hn()})}),[o,v]);!function(e){var t=(0,r.useRef)(null),n=Do(Fr),o=zr("droppable"),i=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=Z((function(){var e=t.current;return e&&e.env.closestScrollable?Co(e.env.closestScrollable):Ee}),[]),f=Z((function(){var e=d();u(e.x,e.y)}),[d,u]),p=Y((function(){return ce(f)}),[f]),h=Z((function(){var e=t.current,n=Ro(e);e&&n||ge(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Z((function(e,r){t.current&&ge(!1);var o=s.current,i=o.getDroppableRef();i||ge(!1);var a=No(i),c={ref:i,descriptor:l,env:a,scrollOptions:r};t.current=c;var u=To({ref:i,descriptor:l,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(_r.contextId,n.contextId),d.addEventListener("scroll",h,Po(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=Z((function(){var e=t.current,n=Ro(e);return e&&n||ge(!1),Co(n)}),[]),v=Z((function(){var e=t.current;e||ge(!1);var n=Ro(e);t.current=null,n&&(p.cancel(),n.removeAttribute(_r.contextId),n.removeEventListener("scroll",h,Po(e.scrollOptions)))}),[h,p]),y=Z((function(e){var n=t.current;n||ge(!1);var r=Ro(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:o,descriptor:l,callbacks:b}}),[b,l,o]);kr((function(){return c.current=w.descriptor,i.droppable.register(w),function(){t.current&&v(),i.droppable.unregister(w)}}),[b,l,v,w,a,i.droppable]),kr((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),kr((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(Bo,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,o=e.data,i=e.animate;return r.createElement(zo,{placeholder:o,onClose:t,innerRef:x,animate:i,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]),k=g?g.dragging.draggableId:null,C=Y((function(){return{droppableId:l,type:c,isUsingCloneFor:k}}),[l,k,c]);return r.createElement(Fo.Provider,{value:C},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(ei,{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())}())}));ii.defaultProps=oi},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 o=s(n(59284)),i=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,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}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,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.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=o.default.Children.only(s),u=(0,i.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=o.default.Children.only(t);return o.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},64255:(e,t,n)=>{"use strict";var r=n(32328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},76575:(e,t,n)=>{"use strict";var r=n(59284),o=n(99158);function i(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,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,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 o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.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,o,r)&&(n=null),r||null===o?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)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!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"),k=Symbol.for("react.profiler"),C=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 D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||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 o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[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 k: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 C: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 W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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=W(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 Z(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 Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(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 o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(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("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}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(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(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 ke(e){if(e=wo(e)){if("function"!==typeof _e)throw Error(i(280));var t=e.stateNode;t&&(t=_o(t),_e(e.stateNode,e.type,t))}}function Ce(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,ke(e),t)for(e=0;e<t.length;e++)ke(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=_o(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(i(231,t,typeof n));return n}var De=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){De=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){De=!1}function je(e,t,n,r,o,i,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,o,i,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(i(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ze=o.unstable_requestPaint,Qe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Xe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=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,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;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),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,_t,Et,St,kt,Ct=!1,Ot=[],Nt=null,Tt=null,At=null,It=new Map,Pt=new Map,Dt=[],Rt="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,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(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 kt(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=wo(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(){Ct=!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,Ct||(Ct=!0,o.unstable_scheduleCallback(o.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<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Dt.shift()}var $t=w.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Vt(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Kt(e,t,n,r){if(Ht){var o=Yt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),jt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,o),!0;case"mouseover":return At=Mt(At,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Mt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Mt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Yt(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=bo(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 Zt(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 Qt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xt=o.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,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.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:kn,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 kn(){return Sn}var Cn=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:kn,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(Cn),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:kn})),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),Dn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!Rn||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.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 Wn(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Kn=null;function Gn(e){zr(e,0)}function Yn(e){if(K(xo(e)))return e}function Zn(e,t){if("change"===e)return t}var Qn=!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;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Kn=Vn=null)}function nr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];Wn(t,Kn,e,xe(e)),Ie(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function ir(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 o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))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 o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>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=Vr(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 kr(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 Cr=kr("animationend"),Or=kr("animationiteration"),Nr=kr("animationstart"),Tr=kr("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 Dr=0;Dr<Ir.length;Dr++){var Rr=Ir[Dr];Pr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Pr(Cr,"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,o,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(i(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],o=r.event;r=r.listeners;e:{var i=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!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=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(Zt(t)){case 1:var o=Wt;break;case 4:o=Vt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=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===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=i,o=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 Cr: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(Wr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),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)||!bo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(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:xo(l),p=null==c?s:xo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((u=new u(f,h+"enter",c,n,o)).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?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Zn;else if(Hn(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Wn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xo(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,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Rn)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(Qt=o)?Qt.value:Qt.textContent,qn=!0)),0<(v=Vr(r,b)).length&&(b=new wn(b,e,null,n,o),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||!Rn&&Bn(e,t)?(e=en(),Xt=Jt=Qt=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=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}zr(a,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(Wr(e,i,o)),null!=(i=Pe(e,t))&&r.push(Wr(e,i,o))),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,o){for(var i=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,o?null!=(l=Pe(n,i))&&a.unshift(Wr(n,l,s)):o||null!=(l=Pe(n,i))&&a.push(Wr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Zr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Xr(){}var eo=null,to=null;function no(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 ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function co(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 uo(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 fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function _o(e){return e[ho]||null}var Eo=[],So=-1;function ko(e){return{current:e}}function Co(e){0>So||(e.current=Eo[So],Eo[So]=null,So--)}function Oo(e,t){So++,Eo[So]=e.current,e.current=t}var No={},To=ko(No),Ao=ko(!1),Io=No;function Po(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ro(){Co(Ao),Co(To)}function jo(e,t,n){if(To.current!==No)throw Error(i(168));Oo(To,t),Oo(Ao,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,$(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,Io=To.current,Oo(To,e),Oo(Ao,Ao.current),!0}function zo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Co(Ao),Co(To),Oo(To,e)):Co(Ao),Oo(Ao,n)}var Fo=null,Bo=!1,Uo=!1;function qo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(o){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ke(Xe,$o),o}finally{bt=t,Uo=!1}}return null}var Ho=[],Wo=0,Vo=null,Ko=0,Go=[],Yo=0,Zo=null,Qo=1,Jo="";function Xo(e,t){Ho[Wo++]=Ko,Ho[Wo++]=Vo,Vo=e,Ko=t}function ei(e,t,n){Go[Yo++]=Qo,Go[Yo++]=Jo,Go[Yo++]=Zo,Zo=e;var r=Qo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Xo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Ho[--Wo],Ho[Wo]=null,Ko=Ho[--Wo],Ho[Wo]=null;for(;e===Zo;)Zo=Go[--Yo],Go[Yo]=null,Jo=Go[--Yo],Go[Yo]=null,Qo=Go[--Yo],Go[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(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 li(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,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(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(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(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 o(e,t){return(e=Dc(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=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===P&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Rc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(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=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=jc(n,e.mode,r,i)).return=e,t):((t=o(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=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(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;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case _:return n.key===o?u(e,t,n,r):null;case P:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||j(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);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,o);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),ii&&Xo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Xo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Xo(o,m),c}function g(o,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(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(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),ii&&Xo(o,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return ii&&Xo(o,g),u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=h(m,o,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(o,e)})),ii&&Xo(o,g),u}return function e(r,i,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=i;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===P&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((i=jc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Rc(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zc(a,r.mode,l)).return=r,r=i}return s(r);case P:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(j(a))return g(r,i,a,l);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Lc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var xi=wi(!0),_i=wi(!1),Ei=ko(null),Si=null,ki=null,Ci=null;function Oi(){Ci=ki=Si=null}function Ni(e){var t=Ei.current;Co(Ei),e._currentValue=t}function Ti(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 Ai(e,t){Si=e,Ci=ki=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Ci!==e)if(e={context:e,memoizedValue:t,next:null},null===ki){if(null===Si)throw Error(i(308));ki=e,Si.dependencies={lanes:0,firstContext:e}}else ki=ki.next=e;return t}var Pi=null;function Di(e){null===Pi?Pi=[e]:Pi.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Di(t)):(n.next=o.next,o.next=n),t.interleaved=n,ji(e,r)}function ji(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 Mi=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(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 Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ji(e,n)}return null===(o=r.interleaved)?(t.next=t,Di(r)):(t.next=o.next,o.next=t),r.interleaved=t,ji(e,n)}function Ui(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 qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=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===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $i(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=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!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){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:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.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=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Wi={},Vi=ko(Wi),Ki=ko(Wi),Gi=ko(Wi);function Yi(e){if(e===Wi)throw Error(i(174));return e}function Zi(e,t){switch(Oo(Gi,t),Oo(Ki,e),Oo(Vi,Wi),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)}Co(Vi),Oo(Vi,t)}function Qi(){Co(Vi),Co(Ki),Co(Gi)}function Ji(e){Yi(Gi.current);var t=Yi(Vi.current),n=le(t,e.type);t!==n&&(Oo(Ki,e),Oo(Vi,n))}function Xi(e){Ki.current===e&&(Co(Vi),Co(Ki))}var ea=ko(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 oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(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,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Xa:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(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(i(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(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.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)){o=e;do{a=o.lane,sa.lanes|=a,Ml|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);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(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,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,Ca.bind(null,n,r,o,t),void 0,null),null===Tl)throw Error(i(349));0!==(30&aa)||ka(n,t,o)}return o}function ka(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 Ca(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=ji(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 Da(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ia(t,n,i,r))}sa.flags|=e,o.memoizedState=Ia(1|t,n,i,r)}function ja(e,t){return Da(8390656,8,e,t)}function Ma(e,t){return Ra(2048,8,e,t)}function La(e,t){return Ra(4,2,e,t)}function za(e,t){return Ra(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,Ra(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 Wa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Va(){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))Za(t,n);else if(null!==(n=Ri(e,t,n,r))){nc(n,e,r,ec()),Qa(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Di(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ri(e,t,o,r))&&(nc(n,e,r,o=ec()),Qa(n,t,r))}}function Ya(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Za(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 Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Ii,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:Ii,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(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=Wa.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Tl)throw Error(i(349));0!==(30&aa)||ka(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,Ca.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-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:Ii,useCallback:qa,useContext:Ii,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:Va,unstable_isNewReconciler:!1},ts={readContext:Ii,useCallback:qa,useContext:Ii,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:Va,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 os={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Fi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nc(t,e,r,n),Ui(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=No,i=t.contextType;return"object"===typeof i&&null!==i?i=Ii(i):(o=Do(t)?Io:To.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Po(e,o):No),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),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&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Li(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ii(i):(i=Do(t)?Io:To.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),$i(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,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=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Wl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Vl?Vl=new Set([this]):Vl.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 o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=kc.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,o){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=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?_i(t,null,n,r):xi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return Ai(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function _s(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Pc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Es(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Dc(i,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!==(131072&e.flags)&&(bs=!0)}}return Cs(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Dl,Pl),Pl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(Dl,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Dl,Pl),Pl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Dl,Pl),Pl|=r;return ws(e,t,o,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Do(n)?Io:To.current;return i=Po(t,i),Ai(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Os(e,t,n,r,o){if(Do(n)){var i=!0;Lo(t)}else i=!1;if(Ai(t,o),null===t.stateNode)$s(e,t),as(t,n,r),ls(t,n,r,o),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=Ii(c):c=Po(t,c=Do(n)?Io:To.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),Mi=!1;var f=t.memoizedState;a.state=f,$i(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ao.current||Mi?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Mi||is(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,zi(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=Ii(l):l=Po(t,l=Do(n)?Io:To.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),Mi=!1,f=t.memoizedState,a.state=f,$i(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Ao.current||Mi?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(c=Mi||is(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,i,o)}function Ns(e,t,n,r,o,i){ks(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Hs(e,t,i);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=xi(t,e.child,null,i),t.child=xi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),Zi(e,t.containerInfo)}function As(e,t,n,r,o){return hi(),mi(o),t.flags|=256,ws(e,t,n,r),t.child}var Is,Ps,Ds,Rs,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,o=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),Oo(ea,1&a),null===e)return ui(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=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,o,0,null),e=jc(e,o,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,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(a=jc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xi(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("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,ji(e,o),nc(r,e,o,-1))}return mc(),Fs(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Yo++]=Qo,Go[Yo++]=Jo,Go[Yo++]=Zo,Qo=e.id,Jo=e.overflow,Zo=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Dc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=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,o}return e=(s=e.child).sibling,o=Dc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}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&&mi(r),xi(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),Ti(e.return,t,n)}function Us(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=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(Oo(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,i);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(i(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!ii)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 Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Do(t.type)&&Ro(),Vs(t),null;case 3:return r=t.stateNode,Qi(),Co(Ao),Co(To),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Ps(e,t),Vs(t),null;case 5:Xi(t);var o=Yi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vs(t),null}if(e=Yi(Vi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=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(o=0;o<jr.length;o++)Fr(jr[o],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":Z(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var l in ye(n,a),o=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),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":V(r),X(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.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[po]=t,e[ho]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<jr.length;o++)Fr(jr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":Z(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in ye(n,o),c=o)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":V(e),X(e,r,!1);break;case"textarea":V(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 o.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 Vs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Yi(Gi.current),Yi(Vi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))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))[po]=t,t.stateNode=r}return Vs(t),null;case 13:if(Co(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),a=!1}else null!==ai&&(ac(ai),ai=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===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Qi(),Ps(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return Ni(t.type._context),Vs(t),null;case 19:if(Co(ea),null===(a=t.memoizedState))return Vs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Ws(a,!1);else{if(0!==Rl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ws(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 Oo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>ql&&(t.flags|=128,r=!0,Ws(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),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Vs(t),null}else 2*Qe()-a.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,r=!0,Ws(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=Qe(),t.sibling=null,n=ea.current,Oo(ea,r?1&n|2:1&n),t):(Vs(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)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Do(t.type)&&Ro(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Co(Ao),Co(To),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xi(t),null;case 13:if(Co(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(ea),null;case 4:return Qi(),null;case 10:return Ni(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(){},Ds=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yi(Vi.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}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!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}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)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Zs=!1,Qs="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 o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==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 ol(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 il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),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(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Zs||Xs(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,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?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),qt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Zs&&(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?(Zs=(r=Zs)||null!==n.memoizedState,fl(e,t,n),Zs=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 Qs),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 o=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(i(160));pl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Sc(o,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 o=e.stateNode;try{fe(o,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(o=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&&Q(o,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(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=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(i(162));o=e.stateNode,a=e.memoizedProps;try{o.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&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Qe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||d,ml(t,e),Zs=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{o=f.stateNode,u?"function"===typeof(a=o.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(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(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 o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ys;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Ys;var c=Zs;if(Ys=a,(Zs=l)&&!c)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?_l(o):null!==l?(l.return=a,Js=l):_l(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Ys=s,Zs=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Js=i):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:Zs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(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}Hi(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(i(163))}Zs||512&t.flags&&ol(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 o=t.return;try{r.componentDidMount()}catch(l){Sc(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Sc(t,i,l)}break;case 5:var a=t.return;try{ol(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,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Al=null,Il=0,Pl=0,Dl=ko(0),Rl=0,jl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Ul=0,ql=1/0,$l=null,Hl=!1,Wl=null,Vl=null,Kl=!1,Gl=null,Yl=0,Zl=0,Ql=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Nl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Il?Il&-Il:null!==gi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function nc(e,t,n,r){if(50<Zl)throw Zl=0,Ql=null,Error(i(185));vt(e,n,r),0!==(2&Nl)&&e===Tl||(e===Tl&&(0===(2&Nl)&&(Ll|=n),4===Rl&&sc(e,Il)),rc(e,r),1===n&&0===Nl&&0===(1&t.mode)&&(ql=Qe()+500,Bo&&$o()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~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){Bo=!0,qo(e)}(lc.bind(null,e)):qo(lc.bind(null,e)),ao((function(){0===(6&Nl)&&$o()})),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,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,Xl=0,0!==(6&Nl))throw Error(i(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 o=Nl;Nl|=2;var a=hc();for(Tl===e&&Il===t||($l=null,ql=Qe()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oi(),kl.current=a,Nl=o,null!==Al?t=0:(Tl=null,Il=0,t=Rl)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ic(e,o))),1===t)throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;if(6===t)sc(e,r);else{if(o=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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))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}(o)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=ic(e,a))),1===t))throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Bl,$l);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(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,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Bl,$l),r);break}xc(e,Bl,$l);break;default:throw Error(i(329))}}}return rc(e,Qe()),e.callbackNode===n?oc.bind(null,e):null}function ic(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(i(327));_c();var t=ft(e,0);if(0===(1&t))return rc(e,Qe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=jl,fc(e,0),sc(e,t),rc(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Bl,$l),rc(e,Qe()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(ql=Qe()+500,Bo&&$o())}}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))&&$o()}}function dc(){Pl=Dl.current,Co(Dl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ro();break;case 3:Qi(),Co(Ao),Co(To),ra();break;case 5:Xi(r);break;case 4:Qi();break;case 13:case 19:Co(ea);break;case 10:Ni(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Al=e=Dc(e.current,null),Il=Pl=t,Rl=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function pc(e,t){for(;;){var n=Al;try{if(Oi(),oa.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,Cl.current=null,null===n||null===n.return){Rl=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(i(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(cs(c,l));break e}}a=c=cs(c,l),4!==Rl&&(Rl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(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===Vl||!Vl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(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=kl.current;return kl.current=Ja,null===e?Ja:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=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(o){pc(e,o)}if(Oi(),Nl=n,kl.current=r,null!==Al)throw Error(i(261));return Tl=null,Il=0,Rl}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,Cl.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 Rl=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===Rl&&(Rl=5)}function xc(e,t,n){var r=bt,o=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gl);if(0!==(6&Nl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(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 o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(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,Cl.current=null,function(e,t){if(eo=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 o=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!==o&&3!==f.nodeType||(l=s+o),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===o&&(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(to={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(i(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(to),Ht=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ze(),Nl=l,bt=s,Ol.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Yl=o),a=e.pendingLanes,0===a&&(Vl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Wl,Wl=null,e;0!==(1&Yl)&&0!==e.tag&&_c(),a=e.pendingLanes,0!==(1&a)?e===Ql?Zl++:(Zl=0,Ql=e):Zl=0,$o()}(e,t,n,r)}finally{Ol.transition=o,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(i(331));var o=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(il(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=o,$o(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(_){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ec(e,t,n){e=Bi(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===Vl||!Vl.has(r))){t=Bi(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 kc(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===Rl||3===Rl&&(130023424&Il)===Il&&500>Qe()-Ul?fc(e,0):zl|=n),rc(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=ji(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Cc(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 Dc(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 Rc(e,t,n,r,o,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,o,a,t);case S:s=8,o|=8;break;case k:return(e=Ic(12,n,t,2|o)).elementType=k,e.lanes=a,e;case T:return(e=Ic(13,n,t,o)).elementType=T,e.lanes=a,e;case A:return(e=Ic(19,n,t,o)).elementType=A,e.lanes=a,e;case D:return Mc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C: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(i(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,o)).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=D,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,o){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=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,i,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ic(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Uc(e){if(!e)return No;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Do(n))return Mo(e,n,t)}return t}function qc(e,t,n,r,o,i,a,s,l){return(e=Bc(n,r,!0,e,0,i,0,s,l)).context=Uc(null),n=e.current,(i=Fi(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function $c(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nc(e,o,a,i),Ui(e,o,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.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),hi();break;case 5:Ji(t);break;case 1:Do(t.type)&&Lo(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(Ei,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Oo(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Oo(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!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(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,ii&&0!==(1048576&t.flags)&&ei(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$s(e,t),e=t.pendingProps;var o=Po(t,To.current);Ai(t,n),o=ga(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($s(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=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),o){case 0:t=Cs(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(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Ts(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,zi(e,t),$i(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,o=cs(Error(i(423)),t));break e}if(r!==o){t=As(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=_i(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),ks(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Ls(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),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,o=t.pendingProps,a=t.memoizedProps,s=o.value,Oo(Ei,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Ao.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=Fi(-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),Ti(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(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ti(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,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ai(t,n),r=r(o=Ii(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),_s(e,t,r,o=ns(r.type,o),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),$s(e,t),t.tag=1,Do(r)?(e=!0,Lo(t)):e=!1,Ai(t,n),as(t,r,o),ls(t,r,o,n),Ns(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(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 Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(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,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=Hc(a);s.call(e)}}$c(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Hc(a);i.call(e)}}var a=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);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[mo]=l.current,qr(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,r)})),l}(n,t,e,o,r);return Hc(a)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(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[mo]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.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,Qe()),0===(6&Nl)&&(ql=Qe()+500,$o()))}break;case 13:uc((function(){var t=ji(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},_t=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=ji(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},St=function(){return bt},kt=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 o=_o(r);if(!o)throw Error(i(90));K(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[wo,xo,_o,Ce,Oe,cc]},tu={findFiberByHostInstance:bo,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=We(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{ot=ru.inject(nu),it=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(!Zc(t))throw Error(i(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(!Zc(e))throw Error(i(299));var n=!1,r="",o=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,o),e[mo]=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(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!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,o,0,a,s),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Xc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5906:(e,t,n)=>{"use strict";var r=n(48681);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},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)},45099:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(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(!i(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(!i(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(o&&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)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},61750:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>W});var r=n(59284),o=n(45099),i=n.n(o),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},k=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},C=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 o=0;o<r.length;o+=1){const i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])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 o={};n.filter((e=>{let n;const i=Object.keys(e);for(let r=0;r<i.length;r+=1){const o=i[r],a=o.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][a]&&(o[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const i=Object.keys(o);for(let t=0;t<i.length;t+=1){const e=i[t],n={...r[e],...o[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:[]},D=(e,t)=>({...e,[t]:void 0}),R=["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 o={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;o.dangerouslySetInnerHTML={__html:e}}else o[n]=t[e]})),r.createElement(e,o)})),F=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const o=L(n,{key:t,[v]:!0});return[r.createElement("title",o,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const o=M(n),i=I(t);return o?`<${e} ${v}="true" ${o}>${j(i,r)}</${e}>`:`<${e} ${v}="true">${j(i,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 o=r,i=Object.keys(o).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof o[t]?t:`${t}="${j(o[t],n)}"`;return e?`${e} ${r}`:r}),""),a=o.innerHTML||o.cssText||"",s=-1===R.indexOf(e);return`${t}<${e} ${v}="true" ${i}${s?"/>":`>${a}</${e}>`}`}),""))(e,t,n)}}},B=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,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 o=P(e,p),i=P(t,d),a=P(n,f);return{priorityMethods:{toComponent:()=>[...z("meta",o.priority),...z("link",i.priority),...z("script",a.priority)],toString:()=>`${F("meta",o.priority,r)} ${F("link",i.priority,r)} ${F("script",a.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:a.default}})(e)),{priority:g,base:F("base",t,r),bodyAttributes:F("bodyAttributes",n,r),htmlAttributes:F("htmlAttributes",o,r),link:F("link",u,r),meta:F("meta",h,r),noscript:F("noscript",i,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({}),W=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)}},V=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${v}]`),o=[].slice.call(r),i=[];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,o="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,o)}n.setAttribute(v,"true"),o.some(((e,t)=>(a=t,n.isEqualNode(e))))?o.splice(a,1):i.push(n)})),o.forEach((e=>e.parentNode?.removeChild(e))),i.forEach((e=>n.appendChild(e))),{oldTags:o,newTags:i}},K=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(v),o=r?r.split(","):[],i=[...o],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===o.indexOf(s)&&o.push(s);const r=i.indexOf(s);-1!==r&&i.splice(r,1)}for(let s=i.length-1;s>=0;s-=1)n.removeAttribute(i[s]);o.length===i.length?n.removeAttribute(v):n.getAttribute(v)!==a.join(",")&&n.setAttribute(v,a.join(","))},G=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;K("body",r),K("html",o),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=I(e)),K("title",t)})(d,f);const p={baseTag:V("base",n),linkTags:V("link",i),metaTags:V("meta",a),noscriptTags:V("noscript",s),scriptTags:V("script",c),styleTags:V("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,Z=e=>{Y&&cancelAnimationFrame(Y),e.defer?Y=requestAnimationFrame((()=>{G(e,(()=>{Y=null}))})):(G(e),Y=null)},Q=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=(o=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:N(["href"],o),bodyAttributes:O("bodyAttributes",o),defer:S(o,b),encode:S(o,w),htmlAttributes:O("htmlAttributes",o),linkTags:T("link",["rel","href"],o),metaTags:T("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:T("noscript",["innerHTML"],o),onChangeClientState:C(o),scriptTags:T("script",["src","innerHTML"],o),styleTags:T("style",["cssText"],o),title:k(o),titleAttributes:O("titleAttributes",o),prioritizeSeoTags:A(o,E)});var o;W.canUseDOM?Z(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!i()(D(this.props,"helmetData"),D(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,...o}=e.props,i=Object.keys(o).reduce(((e,t)=>(e[g[t]||t]=o[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,i,r);break;default:t=this.mapObjectTypeChildren(e,t,i,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:o}=t;if(e&&(n=this.mapChildrenToProps(e,n)),o&&!(o instanceof $)){o=new $(o.context,!0),delete n.helmetData}return o?r.createElement(Q,{...n,context:o.value}):r.createElement(H.Consumer,null,(e=>r.createElement(Q,{...n,context:e})))}}},50711:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=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"),o=b("react.fragment"),i=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 o:case a:case i: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}},94771:(e,t,n)=>{"use strict";e.exports=n(50711)},56993:function(e,t,n){var r,o,i;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,o=[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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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&&i(e.prototype,t),n&&i(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 o=n.call(e,t||"default");if("object"!=r(o))return o;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"},k={x:"scrollWidth",y:"scrollHeight"},C={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},D=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},R=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,o=e.type,i=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=(i="simple"!==o&&i?Math.max(Math.min(i,n-a),0):0)%s)&&(i-=l,a+=l),i===t.from&&a===t.size?t:m(m({},t),{},{from:i,size:a})},M=e.default=function(e){function t(e){var n;return o(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=C[t],r=e===window?document.body[n]||document.documentElement[n]:e[n],o=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),i=Math.max(0,Math.min(r,o)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+i-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[C[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,o=k[this.props.axis];return e===window?Math.max(n[o],r[o]):e[o]}},{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,o=r.itemSize,i=r.itemsPerRow;if(n&&o&&i)return{itemSize:o,itemsPerRow:i};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[_[t]],c=Math.abs(l-o);if((isNaN(c)||c>=1)&&(o=l),!o)return{};for(var u=E[t],d=s[u],f=a[i=1];f&&f[u]===d;f=a[i])++i;return{itemSize:o,itemsPerRow:i}}},{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 o=this.props.axis,i=n[0],a=n[n.length-1];r=this.getOffset(a)+a[_[o]]-this.getOffset(i)}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,o=this.props,i=o.length,a=o.pageSize,s=0,l=0,c=0,u=i-1;l<u;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=i-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 o=this.getStartAndEnd(),i=o.start,a=o.end,s=j(this.props,{from:Math.floor(i/n)*r,size:(Math.ceil((a-i)/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,o=n.itemsPerRow;if(r)return t[e]=Math.floor(e/o)*r;for(var i=e;i>0&&null==t[--i];);for(var a=t[i]||0,s=i;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],o=0,i=n.length;o<i;++o)e[t+o]=n[o][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,o=r.axis,i=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(i)return i(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[_[o]]}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),o=Math.min(r,n),i=Math.max(r,n);return t<=o?this.setScroll(o):t>i?this.setScroll(i):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,o=n.size,i=this.getStartAndEnd(0),a=i.start,s=i.end,l={},c=r;c<r+o;++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,o=this.state,i=o.from,a=o.size,s=[],l=0;l<a;++l)s.push(n(i+l,l));return r(s,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,o=t.length,i=t.type,a=t.useTranslate3d,s=this.state,l=s.from,c=s.itemsPerRow,u=this.renderItems();if("simple"===i)return u;var d={position:"relative"},f={},p=Math.ceil(o/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:D,scrollParentViewportSizeGetter:R,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})},void 0===(i="function"===typeof r?r.apply(t,o):r)||(e.exports=i)},52905:(e,t,n)=>{"use strict";n.d(t,{N_:()=>m});var r=n(10755),o=n(25540),i=n(59284),a=n(45264),s=n(58168),l=n(98587),c=n(68643);i.Component;i.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=i.forwardRef;"undefined"===typeof p&&(p=f);var h=p((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=(0,l.A)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.A)({},a,{onClick:function(e){try{o&&o(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,i.createElement("a",u)}));var m=p((function(e,t){var n=e.component,o=void 0===n?h:n,m=e.replace,g=e.to,v=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return i.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,i.createElement(o,h)}))})),g=function(e){return e},v=i.forwardRef;"undefined"===typeof v&&(v=g);v((function(e,t){var n=e["aria-current"],o=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,k=e.innerRef,C=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.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&&o||null,className:A,style:I,to:a},C);return g!==v?P.ref=t||k:P.innerRef=k,i.createElement(m,P)}))}))},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:()=>k,zy:()=>F});var r=n(25540),o=n(59284),i=n(13260),a=n.n(i),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=o.createContext||function(e,t){var n,i,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),o=0;o<n;o++)r[o]=arguments[o];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 o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},o.render=function(){return this.props.children},n}(o.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),o=0;o<n;o++)r[o]=arguments[o];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 o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},o.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},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((i={})[s]=a().object,i),{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 o.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.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}(o.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 k(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.createElement(y.Consumer,null,(function(e){e||(0,l.A)(!1);var r=e.history,a=e.staticContext,u=i?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):o.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 C={},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,o=n.exact,i=void 0!==o&&o,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=C[n]||(C[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return N<O&&(r[e]=i,N++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),p=e===u;return i&&!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 o.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,i=(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===o.Children.count(e)}(s)&&(s=null),o.createElement(y.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.createElement(u,i):d?d(i):null:"function"===typeof s?s(i):null)}))},t}(o.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 D(e){return"string"===typeof e?e:(0,s.AO)(e)}function R(e){return function(){(0,l.A)(!1)}}function j(){}o.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 o.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,i=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(i.pathname,(0,c.A)({},e.props,{path:a})):t.match}})),r?o.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.Component);var L=o.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}},13489:(e,t,n)=>{var r=n(4786);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=o.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,k=v||y,C=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||i++,prefix:m||"",delimiter:S,optional:E,repeat:_,partial:x,asterisk:!!w,pattern:k?u(k):w?".*":a(S,C)})}}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),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",a=t||{},l=(o||{}).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&&(i+=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)+"`");i+=(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+'"');i+=u.prefix+d}}else i+=u}return i}}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 o=(n=n||{}).strict,i=!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 o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&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=[],o=0;o<e.length;o++)r.push(h(e[o],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(i(e,n),t,n)}(e,t,n)}},29416:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=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 i: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 o:return t}}}function _(e){return x(e)===d}},67076:(e,t,n)=>{"use strict";n(29416)},72630:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(58168),o=n(98587),i=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 o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=p,r.appearStatus=h):o=m:o=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:o},r.nextCallback=null,r}(0,i.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,o=this.props.nodeRef?[r]:[l.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:h},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(i,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 o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,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,o.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),o=0;o<n;o++)r[o]=arguments[o];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),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"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,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"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,o=n.active,i=n.done;this.appliedClasses[t]={},r&&w(e,r),o&&w(e,o),i&&w(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.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},10641:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(59284).createContext(null)},67124:(e,t,n)=>{"use strict";var r=n(59284),o=Symbol.for("react.element"),i=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,i={},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)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},50943:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=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 k(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:E.current}}function C(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,o,i,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=""===i?"."+N(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+N(s=e[c],c);l+=T(s,t,o,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,o,u=i+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=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),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},D={transition:null},R={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:D,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(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,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 o=m({},e.props),i=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&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_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=k,t.createFactory=function(e){var t=k.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=C,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=D.transition;D.transition={};try{e()}finally{D.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"},59284:(e,t,n)=>{"use strict";e.exports=n(50943)},60712:(e,t,n)=>{"use strict";e.exports=n(67124)},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="-"},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[i.RLSCONFIG]&&e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]&&Object.keys(e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]).forEach((function(t){(0,i.overrideAccessors)(t,e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS][t])}));var u={};return{locationMiddleware:function(t){return function(r){return function(o){var a=t.getState(),s=r(o),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,i.isEqual)(m,d)||(h&&!f?n.push(m):n.replace(m))}return s}}},reducersWithLocation:function(n,i){var s=function(n,i){var s=i.type,l=i.payload;if(s!==o.LOCATION_POP||!l)return n;var c=r({},l,{query:(0,a.parseQuery)(e,l)});return t(n,c)}(l(n,i),i);return s!==n?s:n}}};var o=n(49526),i=n(93650),a=n(93694),s=n(92189)},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(),o=e[n];if(function(e){return"undefined"===typeof e||null===e}(o)||Array.isArray(o)&&!o.length)return t;var i=e[n].toString();return[].concat(s(t),[c(r)+"="+c(i)])}),[]);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)),o=a(n(62060)),i=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:i.default,isEqual:o.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("/"),o=[].concat(s(r)),i=0;return r.forEach((function(e,n){"*"===e&&(t.splice(n-i,1),o.splice(n-i,1),i++)})),t.join("/")===o.join("/")}))[0]}},19859:(e,t,n)=>{"use strict";var r=n(57467);Object.defineProperty(t,"zx",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var o=n(56029);Object.defineProperty(t,"BL",{enumerable:!0,get:function(){return o.listenForHistoryChange}});var i=n(93650)},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)},93694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e,t){var n=(0,r.createObjectFromConfig)(e,t),i=e[r.RLSCONFIG]&&e[r.RLSCONFIG].queryParser,a=(0,r.parseParams)(t.search,i);if(!n)return t.search;return Object.keys(n).reduce((function(e,t){var i=n[t],s=i.stateKey,l=i.options,c=void 0===l?{}:l,u=i.initialState,d=i.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?o.typeHandles[d].parse(f,c):f,(0,r.set)(e,s,p),e)}),{})};var r=n(93650),o=n(86540)},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},o=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,i.createObjectFromConfig)(e,n),l=e[i.RLSCONFIG]&&e[i.RLSCONFIG].queryParser,c=(0,i.parseParams)(n.search,l);if(!s)return{location:o({},n)};var u=!1,d=Object.keys(s).reduce((function(e,n){var o=s[n],l=o.stateKey,d=o.options,f=void 0===d?{}:d,p=o.initialState,h=o.type,m=(0,i.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,i.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:o({},n,{search:(0,i.createParamsString)(d)}),shouldPush:u}};var i=n(93650),a=n(86540)},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,o=!1,i=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){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(49526),i=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||o.OBJECT_KEY_DELIMITER)},parse:function(e,t){return(0,i.paramDecoder)(e).split(t.delimiter||o.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(o.OBJECT_KEY_DELIMITER):Object.keys(e).sort().map((function(t,n){return""+t+o.OBJECT_KEY_DELIMITER+e[t]}))},parse:function(e,t){return t.isFlags?e.split(t.delimiter||o.OBJECT_KEY_DELIMITER).reduce((function(e,t){return""===t||(e[t]=!0),e}),{}):(0,i.paramDecoder)(e).split(",").reduce((function(e,t){var n=t.split(o.OBJECT_KEY_DELIMITER),i=r(n,2),a=i[0],s=i[1];return e[a]=s,e}),{})}}}},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,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(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,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(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)o(u);else{if(!(t.startTime<=e))break;o(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,D(_);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(C),C=-1),h=!0;var i=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)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&R(x,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,k=null,C=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function A(){if(null!==k){var e=t.unstable_now();N=e;var n=!0;try{n=k(!0,e)}finally{n?E():(S=!1,k=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 D(e){k=e,S||(S=!0,E())}function R(e,n){C=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,D(_))},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,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=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:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(y(C),C=-1):g=!0,R(x,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,D(_))),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}}}},99158:(e,t,n)=>{"use strict";e.exports=n(91407)},37737:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},93339:(e,t,n)=>{"use strict";var r=n(69123),o=n(39955),i=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.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 o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return i(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=i(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},5635:(e,t,n)=>{"use strict";var r=n(94701),o=n(90308),i=n(69123),a=n(39955),s=r("%Map%",!0),l=o("Map.prototype.get",!0),c=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),f=o("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 "+i(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}},46343:(e,t,n)=>{"use strict";var r=n(94701),o=n(90308),i=n(69123),a=n(5635),s=n(39955),l=r("%WeakMap%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("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 "+i(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},3584:(e,t,n)=>{"use strict";var r=n(39955),o=n(69123),i=n(93339),a=n(5635),s=n(46343)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(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}},83046:(e,t,n)=>{"use strict";n.d(t,{AO:()=>S,Kr:()=>_,nq:()=>E,tp:()=>C,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])"],o=r.join(","),i="undefined"===typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!i&&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 o=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&a.call(e,o)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var i=[],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?i.push.apply(i,d):i.push({scopeParent:c,candidates:d})}else{a.call(c,o)&&r.filter(c)&&(n||!t.includes(c))&&i.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?i.push.apply(i,h):i.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return i},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(i){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",i.message),!1}var o=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!o||o===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 o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"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 i=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=i}if(function(e){var t,n,r,o,i=e&&s(e),a=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==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!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=i=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,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,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,o)&&b(t,e)},k=r.concat("iframe").join(","),C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,k)&&y(t,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()}}},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 o(e){const t=r(e);if(null==t)return t;if(""===t)return null;return+t}function i(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{NumberParam:()=>s,QueryParamProvider:()=>C,StringParam:()=>a,useQueryParam:()=>D,useQueryParams:()=>I});const a={encode:function(e){return null==e?e:String(e)},decode:i},s={encode:function(e){return null==e?e:String(e)},decode:o};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function l(e,t){const n={},r=Object.keys(t);for(const o of r){const r=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=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 o;if(!n||!t.length)return e;let i={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(i,s)||(i[s]=null!=(o=n[s])?o:r,a=!0);return a?i: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,o;if(p(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let s=0;s<i.length;s++){const a=null!=(o=null==(r=null==n?void 0:n[i[s]])?void 0:r.equals)?o:p;if(!f.call(t,i[s])||!a(e[i[s]],t[i[s]]))return!1}return!0}function m(e,t,n){const r={},o=Object.keys(t);for(const i of o){const o=t[i],a=e[i];let s;if(n.has(i,a,o.decode))s=n.get(i);else{if(s=o.decode(a),o.equals&&n.has(i,a)){const e=n.get(i);o.equals(s,e)&&(s=e)}void 0!==s&&n.set(i,a,s,o.decode)}void 0===s&&void 0!==o.default&&(s=o.default),r[i]=s}return r}function g(){let e;return function(t,n,r){const o=m(t,n,r);return null!=e&&h(e,o)?e:(e=o,o)}}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 o=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[i,a]of Object.entries(r)){(null==o?void 0:o[i])&&(delete r[i],i=o[i],r[i]=a);const e=w[i];h(a,e)&&(r[i]=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,o]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,o]of n)if(void 0!==o&&null!==o)if(Array.isArray(o))for(const e of o)t.append(r,null!=e?e:"");else t.append(r,o);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},S=c.createContext(E);function k({children:e,adapter:t,options:n}){const{adapter:r,options:o}=c.useContext(S),i=c.useMemo((()=>({adapter:null!=t?t:r,options:_(o,n)})),[t,n,r,o]);return c.createElement(S.Provider,{value:i},e)}function C({children:e,adapter:t,options:n}){const r=t;return r?c.createElement(r,null,(t=>c.createElement(k,{adapter:t,options:n},e))):c.createElement(k,{options:n},e)}function O({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:o}){const{searchStringToObject:i,objectToSearchString:a}=o;let s;null==t&&(t=o.updateType);const c=x(i,n),f=d(r,Object.keys(e),o.params);let p,h;if("function"===typeof e){p=e(m(c,f,u))}else p=e;return s=l(f,p),o.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 o in e)null!=(null==(n=t[o])?void 0:n.urlName)?r[t[o].urlName]=e[o]:r[o]=e[o];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}(),[o]=(0,c.useState)(g),{paramConfigMap:i,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,o;const i={};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,i[u]=null!=(o=null==(r=t.params)?void 0:r[u])?o:a):i[u]=n}return s?i:e}(i,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=o(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:o}=y.current;null==t&&(t=o.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 o={...t.location,search:e};n&&("string"===typeof r&&r.startsWith("replace")?t.replace(o):t.push(o))}({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:o,adapter:n},{immediate:!o.enableBatching})}));return[h,b]}var P=I;const D=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[o,i]=P(r,n);return[o[e],(0,c.useCallback)(((t,n)=>i("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,i])]}},6032:(e,t,n)=>{"use strict";var r=n(59284);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=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,i=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,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,a=n)}var i,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=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},88730:(e,t,n)=>{"use strict";e.exports=n(6032)},42634:()=>{},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})},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})},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 o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>o})},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})},44992:(e,t,n)=>{"use strict";n.d(t,{RE:()=>s,hT:()=>A,l0:()=>M,m7:()=>G});var r=n(96906),o=n(97091),i=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 o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const a of n)i[a]=c(e[a],t[a]),o&&(o=e[a]===i[a]);return o?e:i}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,o.VP)("__rtkq/focused"),m=(0,o.VP)("__rtkq/unfocused"),g=(0,o.VP)("__rtkq/online"),v=(0,o.VP)("__rtkq/offline");function y(e){return"query"===e.type}function b(e,t,n,r,o,i){return"function"===typeof e?e(t,n,r,o).filter(f).map(w).map(i):Array.isArray(e)?e.map(w).map(i):[]}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,o.sf)(e)?e.payload:void 0,(0,o.WA)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function k(e,t,n){const r=e[t];r&&n(r)}function C(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[C(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,o.VP)(`${e}/resetApiState`);function b(e,t,n,r){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},k(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){k(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:o,arg:a,baseQueryMeta:s,requestId:l}=t;let c=(0,i.jM)(e.data,(e=>r(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:o,requestId:l})));e.data=c}else e.data=n;else e.data=s[t.arg.endpointName].structuralSharing??1?c((0,i.Qx)(e.data)?(0,i.c2)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))}const x=(0,o.Z0)({name:`${e}/queries`,initialState:N,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,o.aA)()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:o}=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:{}},o)}},prepare:e=>({payload:e.map((e=>{const{endpointName:t,arg:n,value:r}=e,o=s[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:a({queryArgs:n,endpointDefinition:o,endpointName:t})},value:r}})),meta:{[o.cN]:!0,requestId:(0,o.Ak)(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){k(e,t,(e=>{e.data=(0,i.$i)(e.data,n.concat())}))},prepare:(0,o.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:o,payload:i})=>{k(e,n.queryCacheKey,(e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(d,((e,t)=>{const{queries:n}=u(t);for(const[r,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||(e[r]=o)}))}}),E=(0,o.Z0)({name:`${e}/mutations`,initialState:N,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=C(t);n in e&&delete e[n]},prepare:(0,o.aA)()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[C(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).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,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||r===o?.requestId||(e[r]=o)}))}}),T=(0,o.Z0)({name:`${e}/invalidation`,initialState:N,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const o of Object.values(e))for(const e of Object.values(o)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:o,id:i}of r){const t=(e[o]??={})[i||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,o.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,o]of Object.entries(n))for(const[t,n]of Object.entries(o)){const o=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){o.includes(e)||o.push(e)}}})).addMatcher((0,o.i0)((0,o.sf)(t),(0,o.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,o.Z0)({name:`${e}/subscriptions`,initialState:N,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),I=(0,o.Z0)({name:`${e}/internalSubscriptions`,initialState:N,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,i.$i)(e,t.payload),prepare:(0,o.aA)()}}}),P=(0,o.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})))}}),D=(0,r.HY)({queries:x.reducer,mutations:E.reducer,provided:T.reducer,subscriptions:I.reducer,config:P.reducer});return{reducer:(e,t)=>D(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,i.jM)(I,(()=>{})),D=(0,i.jM)(I,(()=>{}));var R=WeakMap?new WeakMap:void 0,j=({endpointName:e,queryArgs:t})=>{let n="";const o=R?.get(t);if("string"===typeof o)n=o;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)&&R?.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||[]]},i={endpointDefinitions:{},batch(e){e()},apiUid:(0,o.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 i.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,o.gk)(39))}else{i.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(i.endpointDefinitions[n]):Object.assign(i.endpointDefinitions[n]||{},r);return s}},l=e.map((e=>e.init(s,r,i)));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 o=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(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return o=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:o}=r.payload;return n?.[e]?.[t]&&(n[e][t]=o),!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,o=n[e.queryCacheKey]??={};return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let o=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;o||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:i}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[i]=t.subscriptionOptions??e[i]??{},o=!0}}return o})(n.currentSubscriptions,c);let p=!0;if(f){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=(0,i.vI)(o,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),o=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:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:s,cacheEntriesUpserted:l}=t.internalActions,c=(0,o.i0)(s.match,n.fulfilled,n.rejected,l.match);function u(e){const t=i.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const d={};function f(e,t,n,o){const i=r.endpointDefinitions[t],s=i?.keepUnusedDataFor??o.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,o,i)=>{if(c(n)){const t=o.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,o,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=o.getState()[e],{queries:i}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(i))f(e,n?.endpointName,o,t.config)}}},B=new Error("Promise never resolved before cacheEntryRemoved."),U=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:a})=>{const s=(0,o.$S)(r),l=(0,o.$S)(i),c=(0,o.sf)(r,i),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,o,i,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[o]=c;const p=e.endpoints[t].select("query"===s.type?r:o),h=i.dispatch(((e,t,n)=>n)),m={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?n=>i.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,o,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)?C(t.payload):""}(n);function m(e,n,r,i){const s=a[t].queries[n],l=o.getState()[t].queries[n];!s&&l&&p(e,i,n,o,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:o,queryCacheKey:i}=e;m(r,i,n.meta.requestId,o),d(i,t,{})}else if(i.pending.match(n)){o.getState()[t].mutations[h]&&p(n.meta.arg.endpointName,n.meta.arg.originalArgs,h,o,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:i,api:a,assertTagType:s,refetchQuery:l,internalState:c})=>{const{removeQueryResult:d}=a.internalActions,f=(0,o.i0)((0,o.sf)(r),(0,o.WA)(r)),p=(0,o.i0)((0,o.sf)(r,i),(0,o.TK)(r,i));let h=[];function m(n,r){const o=r.getState(),i=o[e];if(h.push(...n),"delayed"===i.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}(i))return;const s=h;if(h=[],0===s.length)return;const f=a.util.selectInvalidatedBy(o,s);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.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:o})=>{const i={};function a({queryCacheKey:t},n){const s=n.getState()[e],l=s.queries[t],u=o.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=i[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;i[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=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(s);if(!Number.isFinite(u))return void l(t);const d=i[t],f=Date.now()+u;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function l(e){const t=i[e];t?.timeout&&clearTimeout(t.timeout),delete i[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(i))l(e)}()}},W=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=(0,o.mm)(n,r),a=(0,o.TK)(n,r),s=(0,o.sf)(n,r),l={};return(n,r)=>{if(i(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,s=t.endpointDefinitions[i],c=s?.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),l[o]=t;const u=e.endpoints[i].select("query"===s.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(i,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 V(e){const{reducerPath:t,queryThunk:n,api:i,context:a}=e,{apiUid:s}=a,l={invalidateTags:(0,o.VP)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),d=[q,F,$,H,U,W];return{middleware:n=>{let o=!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:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const s=n.getState()[e],l=s.queries,c=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=l[e],o=c[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&s.config[a])&&(0===u(o)?n.dispatch(i({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);o||(o=!0,n.dispatch(i.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:k,invalidationBehavior:O},N){(0,i.YT)();const I=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:g,onOffline:v,onFocus:h,onFocusLost:m},util:{}});const{queryThunk:R,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:i,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:i,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,[o.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,[o.cN]:!0})}catch(m){t=m}}throw console.error(t),t}};function c(t,n){const r=n[e]?.queries?.[t.queryCacheKey],o=n[e]?.config.refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&o);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}const u=(0,o.zD)(`${e}/executeQuery`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.cN]:!0}),condition(t,{getState:r}){const o=r(),i=o[e]?.queries?.[t.queryCacheKey],a=i?.fulfilledTimeStamp,s=t.originalArgs,l=i?.originalArgs,u=n[t.endpointName];return!!_(t)||"pending"!==i?.status&&(!!c(t,o)||!(!y(u)||!u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:i,state:o}))||!a)},dispatchConditionRejection:!0}),d=(0,o.zD)(`${e}/executeMutation`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.cN]:!0})});function f(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:u,mutationThunk:d,prefetch:(e,t,n)=>(r,o)=>{const i=(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)(o());if(i)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)=>(o,s)=>{const l=a.endpoints[e].select(t)(s()),c={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===l.status)return c;let u;if("data"in l)if((0,i.a6)(l.data)){const[e,t,r]=(0,i.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||o(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,o,i)=>(l,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:o})),!i)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,o.f$)((0,o.mm)(e),f(t)),matchFulfilled:(0,o.f$)((0,o.sf)(e),f(t)),matchRejected:(0,o.f$)((0,o.TK)(e),f(t))}}}}({baseQuery:n,reducerPath:a,context:N,api:t,serializeQueryArgs:s,assertTagType:I}),{reducer:q,actions:$}=T({context:N,queryThunk:R,mutationThunk:j,serializeQueryArgs:s,reducerPath:a,assertTagType:I,config:{refetchOnFocus:S,refetchOnReconnect:k,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:W}=V({reducerPath:a,context:N,queryThunk:R,mutationThunk:j,api:t,assertTagType:I});L(t.util,W),L(t,{reducer:q,middleware:H});const{buildQuerySelector:G,buildMutationSelector:Y,selectInvalidatedBy:Z,selectCachedArgsForQuery:Q}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>P,o=e=>D;return{buildQuerySelector:function(t,o){return s=>{if(s===A)return n(r,i);const l=e({queryArgs:s,endpointDefinition:o,endpointName:t});return n((e=>a(e)?.queries?.[l]??P),i)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?C(e)??A:e,n(t===A?o:e=>a(e)?.mutations?.[t]??D,i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=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)o.add(t)}return d(Array.from(o.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 i(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:Z,selectCachedArgsForQuery:Q});const{buildInitiateQuery:J,buildInitiateMutation:X,getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueriesThunk:ne,getRunningQueryThunk:re}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(l,{subscribe:f=!0,forceRefetch:p,subscriptionOptions:h,[x]:m,...g}={})=>(v,y)=>{const b=e({queryArgs:l,endpointDefinition:o,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:k,abort:C}=E,O=S.requestId!==k,N=i.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:k,subscriptionOptions:h,queryCacheKey:b,abort:C,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:k}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,v(c({endpointName:n,requestId:k,queryCacheKey:b,options:e}))}});if(!N&&!O&&!m){const e=(P=v,D={},(I=i).has(P)?I.get(P):I.set(P,D).get(P));e[b]=A,A.then((()=>{delete e[b],u(e)||i.delete(v)}))}var I,P,D;return A};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,s)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),f=i(c);d(i);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:()=>{i(l({requestId:p,fixedCacheKey:o}))}}),b=a.get(i)||{};return a.set(i,b),b[p]=y,y.then((()=>{delete b[p],u(b)||a.delete(i)})),o&&(b[o]=y,y.then((()=>{b[o]===y&&(delete b[o],u(b)||a.delete(i))}))),y}},getRunningQueryThunk:function(t,n){return r=>{const a=o.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:a,endpointName:t});return i.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(f)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(f)}};function d(e){}}({queryThunk:R,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(R,e)):"mutation"===n.type&&L(r.endpoints[e],{name:e,select:Y(),initiate:X(e)},U(j,e))}}}});G()},97091:(e,t,n)=>{"use strict";n.d(t,{cN:()=>m,U1:()=>b,VP:()=>u,zD:()=>M,Z0:()=>q,gk:()=>W,f$:()=>E,i0:()=>_,$S:()=>A,sf:()=>T,mm:()=>C,TK:()=>O,WA:()=>N,Ak:()=>I,aA:()=>g});var r=n(96906);function o(e){return({dispatch:t,getState:n})=>r=>o=>"function"===typeof o?o(t,n,e):r(o)}var i=o(),a=o,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(W(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:o=!0}=e??{};let s=new d;return t&&("boolean"===typeof t?s.push(i):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 o=!0,i=!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,i&&(i=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.[m],i=!o,i&&(a||(a=!0,l(c))),r.dispatch(e)}finally{o=!0}}})})("object"===typeof n?n:void 0)),r};function b(e){const t=h(),{reducer:n,middleware:o,devTools:i=!0,preloadedState:a,enhancers:s}=e||{};let c,u;if("function"===typeof n)c=n;else{if(!(0,r.Qd)(n))throw new Error(W(1));c=(0,r.HY)(n)}u="function"===typeof o?o(t):t();let d=r.Zz;i&&(d=l({trace:!1,..."object"===typeof i&&i}));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 o={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(W(28));if(r in t)throw new Error(W(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[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 k(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function C(...e){return 0===e.length?e=>S(e,["pending"]):k(e)?_(...e.map((e=>e.pending))):C()(e[0])}function O(...e){return 0===e.length?e=>S(e,["rejected"]):k(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||k(e)?E(O(...e),t):N()(e[0])}function T(...e){return 0===e.length?e=>S(e,["fulfilled"]):k(e)?_(...e.map((e=>e.fulfilled))):T()(e[0])}function A(...e){return 0===e.length?e=>S(e,["pending","fulfilled","rejected"]):k(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"],D=class{constructor(e,t){this.payload=e,this.meta=t}_type},R=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"}}))),o=u(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=u(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||j)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,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 i=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=i)&&"object"===typeof m&&"function"===typeof m.then&&(i=await i),!1===i||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(o(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 D(e,t),fulfillWithValue:(e,t)=>new R(e,t)})).then((t=>{if(t instanceof D)throw t;return t instanceof R?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof D?i(null,c,e,g.payload,g.meta):i(g,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(L)})}}),{pending:o,rejected:i,fulfilled:r,settled:_(i,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(W(11));const o=("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)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(W(12));if(n in a.sliceCaseReducersByType)throw new Error(W(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],o={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,o,i]=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],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[i]),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 o)e.addCase(t,o[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)}))}i.forEach((r=>{const i=o[r],a={reducerName:r,type:F(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(W(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?u(e,a):u(e))}(a,i,l):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(W(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=o(e,i,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,i,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 o(t=d){const r=p(h,n,(()=>new WeakMap));return p(r,t,(()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=U(i,t,v,n);return r}))}return{reducerPath:t,getSelectors:o,get selectors(){return o(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 o=t??r;return e.inject({reducerPath:o,reducer:g},n),{...b,...y(o,!0)}}};return b}}function U(e,t,n,r){function o(o,...i){let a=t(o);return"undefined"===typeof a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var q=B();function $(){}var{assign:H}=Object;Symbol.for("rtk-state-proxy-original");function W(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. `}},90754:(e,t,n)=>{"use strict";n.d(t,{$i:()=>Q,Qx:()=>l,YT:()=>K,a6:()=>c,c2:()=>f,jM:()=>Y,vI:()=>Z});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=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[i]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||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[i].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[i];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[i];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}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 k,C={};function O(e){const t=C[e];return t||a(0),t}function N(e,t){C[e]||(C[e]=t)}function T(){return k}function A(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function I(e){P(e),e.drafts_.forEach(R),e.drafts_=null}function P(e){e===k&&(k=e.parent_)}function D(e){return k={drafts_:[],parent_:k,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function R(e){const t=e[i];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[i].modified_&&(I(t),a(4)),c(e)&&(e=M(t,e),t.parent_||z(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[i].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[i];if(!r)return p(t,((o,i)=>L(e,r,t,o,i,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 o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),p(o,((o,a)=>L(e,r,t,o,a,n,i))),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,o,i,a){if(l(o)){const a=M(e,o,i&&t&&3!==t.type_&&!m(t.assigned_,r)?i.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(c(o)&&!S(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,o),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||z(e,o)}}function z(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,n)}var F={get(e,t){if(t===i)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]=W(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?.[i];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(a=r)?0!==o||1/o===1/a:o!==o&&a!==a)&&(void 0!==n||m(e.base_,t)))return!0;H(e),$(e)}var o,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[i];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 W(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 o=r,i=F;n&&(o=[r],i=B);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:T()).drafts_.push(n),n}function V(e){if(!c(e)||S(e))return e;const t=e[i];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,V(t))})),t&&(t.finalized_=!1),n}function K(){const e="replace",t="add",n="remove";function i(e){if(!c(e))return e;if(Array.isArray(e))return e.map(i);if(y(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,i(t)])));if(b(e))return new Set(Array.from(e).map(i));const t=Object.create(s(e));for(const n in e)t[n]=i(e[n]);return m(e,o)&&(t[o]=e[o]),t}function u(e){return l(e)?i(e):e}N("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:s,op:l}=o;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=i(o.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(o.value);default:return delete c[f]}default:a(17)}})),r},generatePatches_:function(r,o,i,a){switch(r.type_){case 0:case 2:return function(r,o,i,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=o.concat(r);i.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,o,i,a);case 1:return function(r,o,i,a){let{base_:s,assigned_:l}=r,c=r.copy_;c.length<s.length&&([s,c]=[c,s],[i,a]=[a,i]);for(let t=0;t<s.length;t++)if(l[t]&&c[t]!==s[t]){const n=o.concat([t]);i.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=o.concat([e]);i.push({op:t,path:n,value:u(c[e])})}for(let e=c.length-1;s.length<=e;--e){const t=o.concat([e]);a.push({op:n,path:t})}}(r,o,i,a);case 3:return function(e,r,o,i){let{base_:a,copy_:s}=e,l=0;a.forEach((e=>{if(!s.has(e)){const a=r.concat([l]);o.push({op:n,path:a,value:e}),i.unshift({op:t,path:a,value:e})}l++})),l=0,s.forEach((e=>{if(!a.has(e)){const a=r.concat([l]);o.push({op:t,path:a,value:e}),i.unshift({op:n,path:a,value:e})}l++}))}(r,o,i,a)}},generateReplacementPatches_:function(t,n,o,i){o.push({op:e,path:[],value:n===r?void 0:n}),i.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,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let o;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),c(e)){const r=D(this),i=W(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?I(r):P(r)}return A(r,n),j(o,r)}if(!e||"object"!==typeof e){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&_(o,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,o,t,r),n(t,r)}return o}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 V(e)}(e));const t=D(this),n=W(e,void 0);return n[i].isManual_=!0,P(t),n}finishDraft(e,t){const n=e&&e[i];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,Z=G.produceWithPatches.bind(G),Q=(G.setAutoFreeze.bind(G),G.setUseStrictShallowCopy.bind(G),G.applyPatches.bind(G));G.createDraft.bind(G),G.finishDraft.bind(G)},97434:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,Pj:()=>ie,bN:()=>R,d4:()=>ue,vA:()=>de,wA:()=>se});var r=n(59284),o=n(88730),i=r.version.startsWith("19"),a=Symbol.for(i?"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:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,c,u,d,f=!1;function p(f,p){const h=!i(p,l),m=!o(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(o,i){return f?p(o,i):(s=o,l=i,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 o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=E(o),o=r(t,n)),o},r}}function k(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function C(e,t,n){return{...n,...e,...t}}function O(e){e()}var N={notify(){},get:()=>[]};function T(e,t){let n,r=N,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,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 o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(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 i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!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 D(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function R(e,t){if(D(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 o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!D(e[n[o]],t[n[o]]))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,W=Object.prototype;function V(e,t){if("string"!==typeof t){if(W){const n=H(t);n&&n!==W&&V(e,n)}let r=U(t);q&&(r=r.concat(q(t)));const o=F(e),i=F(t);for(let a=0;a<r.length;++a){const s=r[a];if(!M[s]&&(!i||!i[s])&&(!o||!o[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 Z=Y(),Q=[null,null];function J(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function X(e,t){return e===t}var ee=function(e,t,n,{pure:o,areStatesEqual:i=X,areOwnPropsEqual:a=R,areStatePropsEqual:s=R,areMergedPropsEqual:l=R,forwardRef:c=!1,context:u=Z}={}){const d=u,f=function(e){return e?"function"===typeof e?S(e):k(e,"mapStateToProps"):_((()=>({})))}(e),p=function(e){return e&&"object"===typeof e?_((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"===typeof e?S(e):k(e,"mapDispatchToProps"):_((e=>({dispatch:e})))}(t),h=function(e){return e?"function"===typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):k(e,"mergeProps"):()=>C}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function u(t){const[n,i,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,...o}){return x(t(e,o),n(e,o),r(e,o),e,o)}(f.dispatch,o)),[f]),[g,v]=r.useMemo((()=>{if(!m)return Q;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),k=r.useRef(void 0);P((()=>(S.current=!0,()=>{S.current=!1})),[]);const C=r.useMemo((()=>()=>_.current&&a===w.current?_.current:h(f.getState(),a)),[f,a]),O=r.useMemo((()=>e=>g?function(e,t,n,r,o,i,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,o.current)}catch(h){p=h,f=h}p||(f=null),n===i.current?a.current||c():(i.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 D;N=J,A=[w,b,E,a,_,v],P((()=>N(...A)),I);try{D=r.useSyncExternalStore(O,C,p?()=>h(p(),a):C)}catch(j){throw k.current&&(j.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),j}P((()=>{k.current=void 0,_.current=void 0,b.current=D}));const R=r.useMemo((()=>r.createElement(e,{...D,ref:i})),[i,e,D]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:y},R):R),[s,R,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,V(t,e)}return V(g,e)}};var te=function(e){const{children:t,context:n,serverState:o,store:i}=e,a=r.useMemo((()=>{const e=T(i);return{store:i,subscription:e,getServerState:o?()=>o:void 0}}),[i,o]),s=r.useMemo((()=>i.getState()),[i]);P((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,s]);const l=n||Z;return r.createElement(l.Provider,{value:a},t)};function ne(e=Z){return function(){return r.useContext(e)}}var re=ne();function oe(e=Z){const t=e===Z?re:ne(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var ie=oe();function ae(e=Z){const t=e===Z?ie:oe(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var se=ae(),le=(e,t)=>e===t;function ce(e=Z){const t=e===Z?re:ne(e),n=(e,n={})=>{const{equalityFn:i=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,o.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,c||s.getState,u,i);return r.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var ue=ce(),de=O},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 o=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};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 i=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=i(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));i=e,v({type:a.REPLACE})},[o]: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)}},[o](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;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){i=s}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],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||o.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 o=e[r];"function"===typeof o&&(n[r]=u(o,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,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map((e=>e(s)));return a=f(...l)(i.dispatch),{...i,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"===typeof e.type}},53850:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>g,X4:()=>h,i5:()=>c});var r=Symbol("NOT_FOUND");function o(e,t="expected a function, instead received "+typeof e){if("function"!==typeof e)throw new TypeError(t)}var i=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 o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}function c(e,t){const n="object"===typeof t?t:{equalityCheck:t},{equalityCheck:o=s,maxSize:i=1,resultEqualityCheck:a}=n,c=l(o);let u=0;const d=i<=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 o(e){const o=n.findIndex((n=>t(e,n.key)));if(o>-1){const e=n[o];return o>0&&(n.splice(o,1),n.unshift(e)),e.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(i,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 o,i=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),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--);o="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=()=>i,a.resetResultsCount=()=>{i=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()),o(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=i(f),y=i(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 o=0;o<r;o++)n.push(e[o].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})},68643:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"===typeof t?t():t,i=n?"".concat(o,": ").concat(n):o;throw new Error(i)}}},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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},370:(e,t,n)=>{"use strict";var r,o;n.d(t,{z:()=>kt}),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})}(o||(o={}));const i=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 i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":return Array.isArray(e)?i.array:null===e?i.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?i.promise:"undefined"!==typeof Map&&e instanceof Map?i.map:"undefined"!==typeof Set&&e instanceof Set?i.set:"undefined"!==typeof Date&&e instanceof Date?i.date:i.object;default:return i.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 o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):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===i.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:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.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{...o,path:i,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:o}=r;if("aborted"===t.status)return m;if("aborted"===o.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof o.value&&!r.alwaysSet||(n[t.value]=o.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,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}var S,k,C;"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:o}=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:o};return{errorMap:(t,o)=>{var i,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:o.defaultError}:"undefined"===typeof o.data?{message:null!==(i=null!==s&&void 0!==s?s:r)&&void 0!==i?i:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(a=null!==s&&void 0!==s?s:n)&&void 0!==a?a:o.defaultError}},description:o}}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)},o=this._parseSync({data:e,path:r.path,parent:r});return N(r,o)}"~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(o){(null===(n=null===(t=null===o||void 0===o?void 0:o.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}),o=await(x(r)?r:Promise.resolve(r));return N(n,o)}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 o=e(t),i=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!==typeof Promise&&o instanceof Promise?o.then((e=>!!e||(i(),!1))):!!o||(i(),!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 De({...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 Re({...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]+$/,D=/^[0-9A-HJKMNP-TV-Z]{26}$/i,R=/^[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}=))?$/,W=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,V="((\\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(`^${V}$`);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=`${V}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 Z(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,"="),o=JSON.parse(atob(r));return"object"===typeof o&&null!==o&&(!(!o.typ||!o.alg)&&(!t||o.alg===t))}catch(n){return!1}}function Q(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)!==i.string){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.string,received:t.parsedType}),m}const t=new h;let n;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const r=e.data.length>i.value,o=e.data.length<i.value;(r||o)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:s.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.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:i.message}),t.dirty());else if("uuid"===i.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:s.invalid_string,message:i.message}),t.dirty());else if("nanoid"===i.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)I.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:s.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:s.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(l){n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:s.invalid_string,message:i.message}),t.dirty()}else if("regex"===i.kind){i.regex.lastIndex=0;i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:s.invalid_string,message:i.message}),t.dirty())}else if("trim"===i.kind)e.data=e.data.trim();else if("includes"===i.kind)e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty());else if("toLowerCase"===i.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===i.kind)e.data=e.data.toUpperCase();else if("startsWith"===i.kind)e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty());else if("endsWith"===i.kind)e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty());else if("datetime"===i.kind){Y(i).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"datetime",message:i.message}),t.dirty())}else if("date"===i.kind){K.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"date",message:i.message}),t.dirty())}else if("time"===i.kind){new RegExp(`^${G(i)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"time",message:i.message}),t.dirty())}else"duration"===i.kind?L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:s.invalid_string,message:i.message}),t.dirty()):"ip"===i.kind?(o=e.data,("v4"!==(a=i.version)&&a||!B.test(o))&&("v6"!==a&&a||!q.test(o))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:s.invalid_string,message:i.message}),t.dirty())):"jwt"===i.kind?Z(e.data,i.alg)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"jwt",code:s.invalid_string,message:i.message}),t.dirty()):"cidr"===i.kind?Q(e.data,i.version)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cidr",code:s.invalid_string,message:i.message}),t.dirty()):"base64"===i.kind?H.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:s.invalid_string,message:i.message}),t.dirty()):"base64url"===i.kind?W.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64url",code:s.invalid_string,message:i.message}),t.dirty()):r.assertNever(i);var o,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,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}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)!==i.number){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.number,received:t.parsedType}),m}let t;const n=new h;for(const o of this._def.checks)if("int"===o.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty());else 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,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,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,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty())}else"multipleOf"===o.kind?0!==X(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_finite,message:o.message}),n.dirty()):r.assertNever(o);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(o){return this._getInvalidInput(e)}if(this._getType(e)!==i.bigint)return this._getInvalidInput(e);let t;const n=new h;for(const i of this._def.checks)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,type:"bigint",minimum:i.value,inclusive:i.inclusive,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,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty())}else"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):r.assertNever(i);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.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)!==i.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.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)!==i.date){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.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 o of this._def.checks)"min"===o.kind?e.data.getTime()<o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),t.dirty()):"max"===o.kind?e.data.getTime()>o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):r.assertNever(o);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 oe extends A{_parse(e){if(this._getType(e)!==i.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.symbol,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:qe.ZodSymbol,...T(e)});class ie extends A{_parse(e){if(this._getType(e)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.undefined,received:t.parsedType}),m}return v(e.data)}}ie.create=e=>new ie({typeName:qe.ZodUndefined,...T(e)});class ae extends A{_parse(e){if(this._getType(e)!==i.null){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.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:i.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)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.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!==i.array)return p(t,{code:s.invalid_type,expected:i.array,received:t.parsedType}),m;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(e||o)&&(p(t,{code:e?s.too_big:s.too_small,minimum:o?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 o=[...t.data].map(((e,n)=>r.type._parseSync(new O(t,e,t.path,n))));return h.mergeArray(n,o)}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)!==i.object){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ce&&"strip"===this._def.unknownKeys))for(const i in n.data)o.includes(i)||a.push(i);const l=[];for(const i of o){const e=r[i],t=n.data[i];l.push({key:{status:"valid",value:i},value:e._parse(new O(n,t,n.path,i)),alwaysSet:i 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,o,i,a;const s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i: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 Ce(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 i of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,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 o=r.map((e=>new l(e)));return p(t,{code:s.invalid_union,unionErrors:o}),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 ke?[e.value]:e instanceof Oe?e.options:e instanceof Ne?r.objectValues(e.enum):e instanceof De?me(e._def.innerType):e instanceof ie?[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 Re?me(e._def.innerType):[];class ge extends A{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._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 o of t){const t=me(o.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,o)}}return new ge({typeName:qe.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...T(n)})}}function ve(e,t){const n=a(e),o=a(t);if(e===t)return{valid:!0,data:e};if(n===i.object&&o===i.object){const n=r.objectKeys(t),o=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const r of o){const n=ve(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(n===i.array&&o===i.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const o=ve(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===i.date&&o===i.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 o=ve(e.value,r.value);return o.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:o.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!==i.array)return p(n,{code:s.invalid_type,expected:i.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!==i.object)return p(n,{code:s.invalid_type,expected:i.object,received:n.parsedType}),m;const r=[],o=this._def.keyType,a=this._def.valueType;for(const i in n.data)r.push({key:o._parse(new O(n,i,n.path,i)),value:a._parse(new O(n,n.data[i],n.path,i)),alwaysSet:i 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!==i.map)return p(n,{code:s.invalid_type,expected:i.map,received:n.parsedType}),m;const r=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map((([e,t],i)=>({key:r._parse(new O(n,e,n.path,[i,"key"])),value:o._parse(new O(n,t,n.path,[i,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.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!==i.set)return p(n,{code:s.invalid_type,expected:i.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 o=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)=>o._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!==i.function)return p(t,{code:s.invalid_type,expected:i.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 o={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Te){const e=this;return v((async function(...t){const i=new l([]),s=await e._def.args.parseAsync(t,o).catch((e=>{throw i.addIssue(n(t,e)),i})),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,o).catch((e=>{throw i.addIssue(r(c,e)),i}))}))}{const e=this;return v((function(...t){const i=e._def.args.safeParse(t,o);if(!i.success)throw new l([n(t,i.error)]);const s=Reflect.apply(a,this,i.data),c=e._def.returns.safeParse(s,o);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 ke 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 Ce(e,t){return new Oe({values:e,typeName:qe.ZodEnum,...T(t)})}ke.create=(e,t)=>new ke({value:e,typeName:qe.ZodLiteral,...T(t)});class Oe extends A{constructor(){super(...arguments),k.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,k,"f")||E(this,k,new Set(this._def.values),"f"),!_(this,k,"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})}}k=new WeakMap,Oe.create=Ce;class Ne extends A{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==i.string&&n.parsedType!==i.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:s.invalid_type}),m}if(_(this,C,"f")||E(this,C,new Set(r.getValidEnumValues(this._def.values)),"f"),!_(this,C,"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}}C=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!==i.promise&&!1===t.common.async)return p(t,{code:s.invalid_type,expected:i.promise,received:t.parsedType}),m;const n=t.parsedType===i.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),o=this._def.effect||null,i={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===o.type){const e=o.transform(n.data,i);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"===o.type){const e=e=>{const t=o.refinement(e,i);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"===o.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=o.transform(e.value,i);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(o.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(o)}}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)===i.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)===i.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 De extends A{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===i.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:qe.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...T(t)});class Re 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}}Re.create=(e,t)=>new Re({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)!==i.nan){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.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,o)=>{var i,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;o.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,We=je.create,Ve=te.create,Ke=ne.create,Ge=re.create,Ye=oe.create,Ze=ie.create,Qe=ae.create,Je=se.create,Xe=le.create,et=ce.create,tt=ue.create,nt=de.create,rt=pe.create,ot=pe.strictCreate,it=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=ke.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 kt=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 o},ZodParsedType:i,getParsedType:a,ZodType:A,datetimeRegex:Y,ZodString:J,ZodNumber:ee,ZodBigInt:te,ZodBoolean:ne,ZodDate:re,ZodSymbol:oe,ZodUndefined:ie,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:ke,ZodEnum:Oe,ZodNativeEnum:Ne,ZodPromise:Te,ZodEffects:Ae,ZodTransformer:Ae,ZodOptional:Ie,ZodNullable:Pe,ZodDefault:De,ZodCatch:Re,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:Ve,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:We,nativeEnum:gt,never:et,null:Qe,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:ot,string:$e,symbol:Ye,transformer:yt,tuple:lt,undefined:Ze,union:it,unknown:Xe,void:tt,NEVER:St,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.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,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&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(i,a),i}})(),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:"dd803d0d",108:"d2d9c180",110:"2c798565",118:"112f7e2f",132:"cf00f1e7",221:"b740df48",225:"cf362439",246:"13bb9db2",290:"b4f1e118",310:"b23bf6b2",371:"adb771f2",513:"46a664ad",523:"17013d4e",535:"ee345954",628:"70d08de9",654:"863ea445",684:"7c31509b",710:"87e9f2e0",730:"a22f6f5f",734:"3fe325e9",811:"a0c1e1ce",856:"78147a4f",902:"a1b90b1b",921:"0402e36c",949:"12b4714d",957:"08a1c505",985:"86fef64d",1053:"f976b474",1088:"40c16ea2",1094:"b5bb2475",1187:"c5435886",1237:"328d0241",1278:"d5c24e15",1299:"aaedb42e",1321:"401aa9b8",1329:"de2ec2cf",1414:"4cfda0bc",1486:"8a488ae4",1496:"18b1eb19",1606:"0041ed7d",1627:"80c94ebf",1657:"d6f0b340",1696:"6120f4a8",1747:"f01c9fd8",1756:"b612458a",1836:"f49bfd4f",1865:"72c933c8",1917:"e3ac9c6d",1956:"c11f9b8a",1975:"e3066826",2016:"397296b7",2042:"81e83eeb",2053:"b4294b46",2161:"865bcd48",2162:"cca3e026",2166:"e382ccb1",2182:"1e53f745",2286:"e992ffd4",2308:"9e3a980c",2350:"a7af0a2e",2372:"880a31f6",2466:"b8b05e16",2512:"732a0e0c",2518:"ac97d255",2568:"5bec7af3",2612:"55127fa0",2626:"a5b0d58c",2726:"e753cb7c",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:"9f31a4d0",3812:"325f3251",3822:"00ab6aaa",3872:"a25d87b5",3879:"17f211ad",3902:"973b73c6",3940:"f5079e40",3952:"ce1b4fad",3977:"4c33ec16",4024:"021c61dd",4096:"33f702a0",4130:"e9433987",4169:"f2243012",4180:"1de6c8ba",4187:"ab11fc96",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:"2eea7e0a",4891:"c441be74",5027:"9e6325ef",5047:"ebc9f1b2",5050:"ffa3921f",5161:"20e37d15",5252:"991dcab8",5382:"3a2e6ac6",5401:"dfb63825",5418:"00d0c5d1",5438:"179dc201",5453:"921caa82",5454:"e8f64f1a",5475:"20ce4f75",5542:"7c13d444",5579:"a2c9515c",5634:"0a0bddae",5636:"da9c4c85",5647:"0920ef73",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:"95d317e6",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:"73ff230e",6833:"584b7806",6879:"2965a366",6881:"7e6434c9",6990:"70257b9b",7118:"ce0cd05f",7148:"ef54cd41",7206:"6b7278f5",7240:"a674bc94",7329:"514640a4",7341:"6e678529",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",8452:"551c16c8",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",9174:"ae7682da",9176:"3f08336f",9220:"a9f48eb9",9222:"a1913f85",9243:"cb95c73b",9300:"277e4f3f",9312:"5eb8d4b1",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:"7afb9492",9801:"b9143d43",9842:"b8ba19ad",9872:"65a6fae7",9882:"b983931a",9908:"4bd3acb1",9922:"367b63b0"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{99:"7cffb936",371:"01f04f12",535:"c6fb8cd9",684:"90fbb646",985:"8e5e0423",2512:"19e3e12f",3779:"66c0ef83",3812:"440ff245",3940:"0971684f",4187:"cac9847e",5438:"615bd68a",6030:"fd13e90a",8593:"95df9723",9796:"828f7385"}[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,o,i,a)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)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+i){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+i),s.src=r),e[r]=[o];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.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 o=n.miniCssF(e),i=n.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var a;if((o=(a=i[r]).getAttribute("data-href"))===e||o===t)return a}})(o,i))return t();((e,t,r,o,i)=>{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)o();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),i(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,i,null,t,r)})),t={8792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{99:1,371:1,535:1,684:1,985:1,2512:1,3779:1,3812:1,3940:1,4187:1,5438:1,6030:1,8593:1,9796: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 o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(8593!=t){var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var o,i,[a,s,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=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(11310),r=n(42566),o=n(54878);const{store:i,history:a}=(0,o.U1)();var s=n(60712);!async function(){let r;r=await Promise.resolve().then(n.bind(n,11310)).then((({SingleClusterApp:e})=>e));const o=document.getElementById("root");if(!o)throw new Error("Can't find root element");e.createRoot(o).render((0,s.jsx)(t.ErrorBoundary,{children:(0,s.jsx)(r,{store:i,history:a})}))}(),(0,r.A)()})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js b/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js new file mode 100644 index 0000000000..319bc0e7c6 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js @@ -0,0 +1,2 @@ +/*! For license information please see main.9d6586d0.js.LICENSE.txt */ +(()=>{var e={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})})}},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)}},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)},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})},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}},88632:(e,t,n)=>{"use strict";n.d(t,{tH:()=>L,jt:()=>F,lQ:()=>z});var r=n(59284),i=n(41668),o=n(90826);const a=r.createContext(void 0),s=r.createContext(void 0);function l(e){const{size:t,disabled:n,defaultExpanded:i,arrowPosition:l,summary:c,keepMounted:u,onUpdate:d,expanded:f}=e,[p,h]=r.useState((()=>Boolean(i))),m=void 0!==f,g=(0,o.u)(),v=`disclosure${g}`;return r.createElement(a.Provider,{value:{size:t,disabled:n,summary:c,arrowPosition:l,keepMounted:u,expanded:m?f:p,ariaControls:g,ariaLabelledby:v}},r.createElement(s.Provider,{value:()=>{h((e=>!e));d(m?!f:!p)}},e.children))}function c(){const e=r.useContext(a);if(void 0===e)throw new Error("useDisclosureAttributes must be used within DisclosureProvider");return e}var u=n(72630),d=n(6826);const f=(0,n(69220).om)("disclosure"),p="disclosure-summary",h="disclosure-details";function m({children:e}){const t=r.useRef(null),{ariaControls:n,ariaLabelledby:i,keepMounted:o,expanded:a}=c();return r.createElement(u.A,{nodeRef:t,in:a,addEndListener:e=>{var n;return null===(n=t.current)||void 0===n?void 0:n.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!o,unmountOnExit:!o,appear:!0},r.createElement("div",{ref:t,id:n,role:"region","aria-labelledby":i,className:f("content",{visible:a}),"data-qa":h},e))}m.displayName="DisclosureDetails";var g=n(33705),v=n(27629);const y={m:14,l:16,xl:20};function b(){(0,v.m)('[Disclosure] Physical values (left, right) of "arrowPosition" property are deprecated. Use logical values (start, end) instead.')}function w({children:e}){const t=function(){const e=r.useContext(s);if(void 0===e)throw new Error("useToggleDisclosure must be used within DisclosureProvider");return e}(),{ariaControls:n,ariaLabelledby:i,expanded:o,disabled:a}=c(),l={onClick:t,ariaControls:n,id:i,expanded:o,disabled:a};return e(l,r.createElement(x,Object.assign({},l)))}function x({onClick:e,ariaControls:t,id:n,expanded:i,disabled:o}){const{size:a,summary:s,arrowPosition:l}=c();let u=l;return"left"===u&&(b(),u="start"),"right"===u&&(b(),u="end"),r.createElement("button",{type:"button","aria-expanded":i,className:f("trigger",{disabled:o,arrow:u}),"aria-controls":t,id:n,onClick:e,disabled:o,"data-qa":p},r.createElement(g.I,{size:y[a],direction:i?"top":"bottom"}),s)}w.displayName="DisclosureSummary";const _=(0,i.g)(w),E=r.forwardRef((function(e,t){const{size:n="m",disabled:i=!1,defaultExpanded:o=!1,arrowPosition:a="start",summary:s="",className:c,keepMounted:u=!0,children:d,onUpdate:p=()=>{},expanded:h,qa:g}=e,[v,y]=function(e){const t=r.Children.toArray(e);let n,i;const o=[];for(const r of t){if(_(r)){if(n)throw new Error("Only one <Disclosure.Summary> component is allowed");n=r}else o.push(r)}o.length>0&&(i=r.createElement(m,null,o));n||(n=r.createElement(w,null,(e=>r.createElement(x,Object.assign({},e)))));return[n,i]}(d);return r.createElement(l,{disabled:i,defaultExpanded:o,expanded:h,keepMounted:u,size:n,summary:s,arrowPosition:a,onUpdate:p},r.createElement("section",{ref:t,className:f({size:n},c),"data-qa":g},v,y))}));E.Summary=w,E.displayName="Disclosure";var S=n(84476);const k=(0,r.createContext)(null),C={didCatch:!1,error:null};class O extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=C}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(C)}}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(C))}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)(k.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var N=n(77506);var T=n(34271),A=n(78524),I=n(48372);const D=JSON.parse('{"error-title":"Something went wrong","error-description":"We have something broken, but don\'t worry, it won\'t last long","show-details":"Show details","report-problem":"Report a problem","button-reset":"Try again"}'),P=JSON.parse('{"error-title":"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a","error-description":"\u0423 \u043d\u0430\u0441 \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u043d\u0435\u043d\u0430\u0434\u043e\u043b\u0433\u043e","show-details":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438","report-problem":"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435","button-reset":"\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u043e\u0432\u0430"}'),R=(0,I.g4)("ydb-error-boundary",{ru:P,en:D});var j=n(60712);const M=(0,N.cn)("ydb-error-boundary");function L({children:e}){const t=(0,T.x)("ErrorBoundary");return(0,j.jsx)(t,{children:e})}function z({children:e,useRetry:t=!0,onReportProblem:n}){return(0,j.jsx)(O,{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,resetErrorBoundary:r})=>(0,j.jsx)(F,{error:e,useRetry:t,resetErrorBoundary:r,onReportProblem:n}),children:e})}function F({error:e,resetErrorBoundary:t,useRetry:n,onReportProblem:r}){return(0,j.jsxs)("div",{className:M(),children:[(0,j.jsx)(A.v,{name:"error",className:M("illustration")}),(0,j.jsxs)("div",{className:M("content"),children:[(0,j.jsx)("h2",{className:M("error-title"),children:R("error-title")}),(0,j.jsx)("div",{className:M("error-description"),children:R("error-description")}),(0,j.jsx)(E,{summary:R("show-details"),className:M("show-details"),size:"m",children:(0,j.jsx)("pre",{className:M("error-details"),children:e.stack})}),(0,j.jsxs)("div",{className:M("actions"),children:[n&&(0,j.jsx)(S.$,{view:"outlined",onClick:t,children:R("button-reset")}),r&&(0,j.jsx)(S.$,{view:"outlined",onClick:()=>r(e),children:R("report-problem")})]})]})]})}},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})},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})}},79553:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(31062),i=n(60712);const o=({error:e,className:t,defaultMessage:n=(0,r.A)("responseError.defaultMessage")})=>{let o="";return e&&"string"===typeof e&&(o=e),e&&"object"===typeof e&&("data"in e&&"string"===typeof e.data?o=e.data:"statusText"in e&&"string"===typeof e.statusText?o=e.statusText:"message"in e&&"string"===typeof e.message&&(o=e.message)),(0,i.jsx)("div",{className:`error ${t}`,children:o||n})}},44508:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o});var r=n(79553)},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})},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}},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})})},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})},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)},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))):[]},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})},44294:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.E});var r=n(82015)},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})}},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}},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}},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"})}},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}},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)},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)}},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})},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)},48873:(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:()=>So,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:()=>Vo,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,SAVED_QUERIES_KEY:()=>Le.ld,SECOND_IN_MS:()=>Le.KF,SHOW_DOMAIN_DATABASE_KEY:()=>Le.Xm,SingleClusterApp:()=>No,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:()=>Ko.i,appRoutes:()=>de.Ay,cn:()=>pe.cn,componentsRegistry:()=>ko,configureStore:()=>Wo.U1,createApi:()=>Ko.x,getMonitoringClusterLink:()=>Ao,getMonitoringLink:()=>To,getSettingValue:()=>Go.CN,getTabletLabel:()=>Le.bk,getUserSettings:()=>st,i18n:()=>me.Ru,parseMonitoringData:()=>Io,registerKeysets:()=>me.g4,reportWebVitals:()=>Qo.A,rootReducer:()=>Wo.d$,setSettingValue:()=>Go.gc,settingsManager:()=>yo.f,toaster:()=>Yo.X,useSetting:()=>u.iK,useTypedSelector:()=>u.N4});var r={};n.r(r),n.d(r,{ClusterSlot:()=>_n,ClustersSlot:()=>xn,NodeSlot:()=>Sn,PDiskPageSlot:()=>kn,RedirectSlot:()=>An,RoutesSlot:()=>Tn,StorageGroupSlot:()=>On,TabletSlot:()=>Nn,TenantSlot:()=>En,VDiskPageSlot:()=>Cn});var i=n(59284),o=n(61750),a=n(97434),s=n(88632),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"},k={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var C=(0,w.N)({en:S,ru:k},`${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=C("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 D(e,"",new RegExp(n,"i"))}function D(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}=D(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}=D(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]=P(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 P(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}=P(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}=R(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 R(e,t){let n=!0;const r=[];return i.Children.forEach(e,(e=>{if(i.isValidElement(e))if(e.type===i.Fragment){const i=R(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,k]=i.useState(E||(e&&_.includes(e)?e:void 0)),C=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 D=e=>{k((t=>(t!==e&&(null===u||void 0===u||u(e)),e)))};i.useEffect((()=>{A!==S&&D(A)})),i.useEffect((()=>{E&&k(E)}),[E]),i.useEffect((()=>{var e;(null===(e=x.selectedRef)||void 0===e?void 0:e.current)&&x.selectedRef.current.scrollIntoView()}),[x.selectedRef]);const P=(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:C,className:Q("search"),initialValue:t,onChange:y,autoFocus:!1,inputSize:"xl"}),i.createElement(H,{items:b,onChange:D,activeItemId:A,className:Q("tabs")})):i.createElement("div",{className:Q("menu"),onClick:()=>{C.current&&C.current.focus()},onKeyDown:e=>{O.current&&O.current.handleKeyDown(e)&&e.preventDefault()}},i.createElement(N,null,a),i.createElement(Y,{inputRef:C,className:Q("search"),initialValue:t,onChange:y,placeholder:s,autoFocus:!0}),i.createElement(B,{ref:O,items:b,onChange:D,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=>P(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 ke=(0,pe.cn)("node-tootltip"),Ce=e=>{const{data:t}=e;return t&&(0,oe.jsx)("div",{className:ke(),children:(0,oe.jsx)("table",{children:(0,oe.jsxs)("tbody",{children:[(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:ke("label"),children:"ID"}),(0,oe.jsx)("td",{className:ke("value"),children:t.nodeId||"?"})]}),(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:ke("label"),children:"Rack"}),(0,oe.jsx)("td",{className:ke("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,oe.jsxs)("tr",{children:[(0,oe.jsx)("td",{className:ke("label"),children:"Net"}),(0,oe.jsx)("td",{className:ke("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)(Ce,{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)})})),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",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"})),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",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"})),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:"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}),Be=[{value:"system",content:Fe("settings.theme.option-system")},{value:"light",content:Fe("settings.theme.option-light")},{value:"dark",content:Fe("settings.theme.option-dark")}],Ue={settingKey:Le.k4,title:Fe("settings.theme.title"),type:"radio",options:Be},$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")}),qe={settingKey:Le.TJ,title:Fe("settings.invertedDisks.title")},He={settingKey:Le.g5,title:Fe("settings.enableNetworkTable.title")},Ve={settingKey:Le.lr,title:Fe("settings.useShowPlanToSvg.title"),description:Fe("settings.useShowPlanToSvg.description")},We={settingKey:Le.Xm,title:Fe("settings.showDomainDatabase.title")},Ke={settingKey:Le.s2,title:Fe("settings.useClusterBalancerAsBackend.title"),description:Fe("settings.useClusterBalancerAsBackend.description")},Ge={settingKey:Le.LK,title:Fe("settings.editor.autocomplete.title"),description:Fe("settings.editor.autocomplete.description")},Ye={settingKey:Le.bz,title:Fe("settings.editor.codeAssistant.title"),description:Fe("settings.editor.codeAssistant.description")},Qe={settingKey:Le.kO,title:Fe("settings.editor.queryStreaming.title"),description:Fe("settings.editor.queryStreaming.description")},Ze={settingKey:Le.IO,title:Fe("settings.editor.autocomplete-on-enter.title"),description:Fe("settings.editor.autocomplete-on-enter.description")},Je={title:Fe("settings.about.interfaceVersionInfoField.title"),type:"info",content:"8.12.0"},Xe={id:"appearanceSection",title:Fe("section.appearance"),settings:[Ue,qe,$e,We]},et={id:"experimentsSection",title:Fe("section.experiments"),settings:[He,Ve,Qe]},tt={id:"devSettingsSection",title:Fe("section.dev-setting"),settings:[Ge,Ze]},nt={id:"aboutSettingsSection",title:Fe("section.about"),settings:[Je]},rt={id:"generalPage",title:Fe("page.general"),icon:{data:De,height:14,width:14},sections:[Xe],showTitle:!1},it={id:"experimentsPage",title:Fe("page.experiments"),icon:{data:Pe},sections:[et],showTitle:!1},ot={id:"editorPage",title:Fe("page.editor"),icon:{data:Re},sections:[tt]},at={id:"aboutPage",title:Fe("page.about"),icon:{data:je.A},sections:[nt],showTitle:!1};function st({singleClusterMode:e,codeAssistantConfigured:t}){const n=e?it:(0,Me.jM)(it,(e=>{e.sections[0].settings.push(Ke)})),r=t?(0,Me.jM)(ot,(e=>{e.sections[0].settings.push(Ye)})):ot;return[rt,r,n,at]}var lt=n(59109),ct=n(64689),ut=n(98167);function dt(e="unknown"){const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function ft(e){return"function"===typeof e&&"__slotName"in e}class pt{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)&&ft(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(!ft(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var ht=n(24600),mt=n(99006);const gt=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"})),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:"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 yt,bt,wt=n(67884);function xt(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 _t(){return _t=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},_t.apply(null,arguments)}const Et=function(e){return i.createElement("svg",_t({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),yt||(yt=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"})),bt||(bt=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"})))},St=(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(""),[k,C]=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 xt(e)&&e.data.error.includes("user")})(e)&&w(e.data.error),function(e){return xt(e)&&e.data.error.includes("password")}(e)&&S(e.data.error),function(e){return xt(e)&&e.data.error.includes("database")}(e)&&C(e.data.error)}))},A=e=>{13===e.keyCode&&T()};return(0,oe.jsxs)("section",{className:St(),children:[(0,oe.jsxs)("form",{className:St("form-wrapper"),children:[(0,oe.jsxs)("div",{className:St("header"),children:[(0,oe.jsxs)("div",{className:St("logo"),children:[(0,oe.jsx)(f.I,{data:Et,size:24}),"YDB"]}),(0,oe.jsx)(wt.N,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,oe.jsx)("h2",{className:St("title"),children:"Sign in"}),(0,oe.jsx)("div",{className:St("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:St("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:St("show-password-button"),children:(0,oe.jsx)(f.I,{data:O?gt:vt,size:16})})]}),o&&(0,oe.jsx)("div",{className:St("field-wrapper"),children:(0,oe.jsx)(h.k,{value:m,onUpdate:e=>{g(e),C("")},placeholder:"Database",error:k,onKeyDown:A,size:"l"})}),(0,oe.jsx)(E.$,{view:"action",onClick:T,width:"max",size:"l",disabled:Boolean(!d||b||_),loading:s,className:St("button-sign-in"),children:"Sign in"})]}),e&&n.length>1&&(0,oe.jsx)(E.$,{onClick:()=>{n.go(-1)},className:St("close"),children:(0,oe.jsx)(f.I,{data:x.A,size:24})})]})};var Ct=n(87842),Ot=n(49917),Nt=n(112),Tt=n(69220);const At=(0,Tt.om)("divider"),It=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:At({orientation:n,align:l},r),ref:t,style:o,"data-qa":a,role:"separator","aria-orientation":"vertical"===n?"vertical":void 0},s)}));var Dt=n(61758),Pt=n.n(Dt);const Rt=(0,Tt.om)("breadcrumbs");function jt(e){return i.createElement("button",Object.assign({},e,{type:"button",className:Rt("switcher",{more:!0})}))}const Mt=(0,Tt.om)("breadcrumbs");const Lt=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(wt.N,{key:e.text,view:"secondary",href:e.href,title:s,onClick:e.action,className:Mt("item",{"prev-current":n})},a):i.createElement(jt,{key:e.text,title:s,onClick:e.action},a):i.createElement("div",{title:s,className:Mt("item",{current:!0})},a)}));Lt.displayName="Breadcrumbs.Item";var zt=n(40569);const Ft=JSON.parse('{"label_more":"Show more"}'),Bt=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),Ut=(0,w.N)({en:Ft,ru:Bt},"Breadcrumbs"),$t=(0,Tt.om)("breadcrumbs");function qt({popupStyle:e,popupPlacement:t,items:n}){return i.createElement(zt.r,{items:n,popupProps:{className:$t("popup",{staircase:"staircase"===e}),placement:t},renderSwitcher:({onClick:e})=>i.createElement(jt,{title:Ut("label_more"),onClick:e},"...")})}qt.displayName="Breadcrumbs.More";const Ht=(0,Tt.om)("breadcrumbs");function Vt({renderItemDivider:e}){return i.createElement("div",{"aria-hidden":!0,className:Ht("divider")},e?e():"/")}Vt.displayName="Breadcrumbs.Separator";const Wt=(0,Tt.om)("breadcrumbs");var Kt,Gt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Kt||(Kt={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Gt||(Gt={}));class Yt 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?Yt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Yt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=Pt()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=i.createRef(),this.state=Yt.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:Wt({calculated:n?"yes":"no"},e),"data-qa":t},i.createElement("div",{className:Wt("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return i.createElement(Lt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return i.createElement(Vt,{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(Vt,{renderItemDivider:r}),i.createElement(qt,{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(`.${Wt("divider")}`)),o=[...Array.from(this.container.current.querySelectorAll(`.${Wt("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${Wt("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===Kt.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))})}}}Yt.defaultProps={popupPlacement:["bottom","top"]};var Qt=n(1064),Zt=n(44294),Jt=n(67157),Xt=n(31684),en=n(12888);const tn=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"})),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.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"})),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:"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"})),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:"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"})),an=(0,pe.cn)("tablet-icon"),sn=({text:e,className:t})=>(0,oe.jsx)("div",{className:an(null,t),children:(0,oe.jsx)("div",{className:an("type"),children:e||"T"})});var ln=n(52531),cn=n(29819),un=n(54309);const dn=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"}'),fn=(0,me.g4)("ydb-header",{en:dn}),pn=(e,t={})=>{const{clusterName:n,clusterTab:r}=e;return[{text:n||Le.QM,link:(0,Ct.a)(r,t),icon:(0,oe.jsx)(tn,{})}]},hn=(e,t={})=>{const{tenantName:n}=e,r=pn(e,t),i=n?(e=>e.startsWith("/")?e.slice(1):e)(n):fn("breadcrumbs.tenant"),o={text:i,link:n?(0,un.YL)({...t,database:n}):void 0,icon:(0,oe.jsx)(nn,{})};return r.push(o),r},mn=(e,t={})=>{const{nodeId:n,nodeRole:r,nodeActiveTab:i,tenantName:o}=e,a=(s="tablets"===i?"tablets":"nodes",{[ln.Dt]:ln.Dg.diagnostics,[un.vh.diagnosticsTab]:ln.iJ[s]});var s;const l=o?hn(e,{...t,...a}):pn(e,t);let c=fn("breadcrumbs.node");n&&(c+=` ${n}`);const u={text:c,link:n?(0,cn.vI)(n,{database:o,...t},i):void 0,icon:gn(r)};return l.push(u),l};function gn(e){switch(e){case"Storage":return(0,oe.jsx)(rn,{});case"Compute":return(0,oe.jsx)(on,{});default:return}}const vn=(e,t={})=>{const{nodeId:n,pDiskId:r,nodeRole:i}=e,o=mn({...e,nodeRole:null!==i&&void 0!==i?i:"Storage"});let a=fn("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},yn={cluster:pn,node:mn,pDisk:vn,tablet:(e,t={})=>{const{tabletId:n,tabletType:r,tenantName:i}=e,o=i?hn(e,t):pn(e,t),a={text:n||fn("breadcrumbs.tablet"),icon:(0,oe.jsx)(sn,{text:(0,Le.bk)(r)})};return o.push(a),o},tenant:hn,vDisk:(e,t={})=>{const{vDiskSlotId:n}=e,r=vn(e,t);let i=fn("breadcrumbs.vDisk");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r},storageGroup:(e,t={})=>{const{groupId:n}=e,r=pn(e,t);let i=fn("breadcrumbs.storageGroup");n&&(i+=` ${n}`);const o={text:i};return r.push(o),r}},bn=(0,pe.cn)("header");const wn=function({mainPage:e}){const{page:t,pageBreadcrumbsOptions:n}=(0,u.N4)((e=>e.header)),r=(0,en.X)(),o=(0,Jt.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,yn[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,Qt.S)({database:a}),children:[(0,oe.jsx)(f.I,{data:Ot.A}),fn("connect")]})),r&&e.push((0,oe.jsxs)(E.$,{view:"flat",href:(0,Xt.Un)(),target:"_blank",children:[Le.T5,(0,oe.jsx)(f.I,{data:Nt.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)(It,{orientation:"vertical"})]},n)))}):null};return(0,oe.jsxs)("header",{className:bn(),children:[(0,oe.jsx)(Yt,{items:c,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:bn("breadcrumbs"),renderItem:({item:e,isCurrent:t})=>{const{icon:n,text:r,link:i}=e;return(0,oe.jsxs)(Zt.E,{className:bn("breadcrumbs-item",{active:t,link:!t}),to:t?void 0:i,children:[n?(0,oe.jsx)("span",{className:bn("breadcrumbs-icon"),children:n}):null,(0,oe.jsx)("span",{children:r})]})}}),d()]})},xn=dt("clusters"),_n=dt("cluster"),En=dt("tenant"),Sn=dt("node"),kn=dt("pDisk"),Cn=dt("vDisk"),On=dt("storageGroup"),Nn=dt("tablet"),Tn=dt("routes"),An=dt("redirect"),In=JSON.parse('{"pages.clusters":"All clusters"}'),Dn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Pn=(0,me.g4)("ydb-app-content",{ru:Dn,en:In}),Rn=(0,pe.cn)("app"),jn=[{path:de.Ay.cluster,slot:_n,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(856),n.e(9796),n.e(1434),n.e(5652)]).then(n.bind(n,5252))),"Cluster"),wrapper:Fn},{path:de.Ay.tenant,slot:En,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(7341),n.e(6820),n.e(114),n.e(9796),n.e(1434),n.e(3456)]).then(n.bind(n,85469))),"Tenant"),wrapper:Fn},{path:de.Ay.node,slot:Sn,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(5168),n.e(4905)]).then(n.bind(n,13758))),"Node"),wrapper:Fn},{path:de.Ay.pDisk,slot:kn,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(5168),n.e(7145)]).then(n.bind(n,69134))),"PDiskPage"),wrapper:Fn},{path:de.Ay.vDisk,slot:Cn,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(5168),n.e(8155)]).then(n.bind(n,80208))),"VDiskPage"),wrapper:Fn},{path:de.Ay.storageGroup,slot:On,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(3812)]).then(n.bind(n,75510))),"StorageGroupPage"),wrapper:Fn},{path:de.Ay.tablet,slot:Nn,component:(0,mt._)((()=>Promise.all([n.e(3940),n.e(7341),n.e(535)]).then(n.bind(n,47584))),"Tablet"),wrapper:Fn}],Mn=(0,mt._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(3779)]).then(n.bind(n,48288))),"Clusters");function Ln(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:Rn("main"),children:(0,oe.jsx)(s,{children:a})})}},t.path)}function zn(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return i.useMemo((()=>new pt(t)),[t])}(e),o=r.get(Tn),a=r.get(An),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Ct.a)()}:{to:de.Ay.clusters};let l;return n||(l={text:Pn("pages.clusters"),link:de.Ay.clusters}),(0,oe.jsxs)(ue.dO,{children:[n?null:Ln(r,{path:de.Ay.clusters,exact:!0,component:Mn,slot:xn}),null===o||void 0===o?void 0:o.rendered,(0,oe.jsxs)(ue.qh,{children:[(0,oe.jsx)(wn,{mainPage:l}),(0,oe.jsxs)(ue.dO,{children:[jn.map((e=>Ln(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 Fn({children:e}){return(0,oe.jsx)($n,{children:(0,oe.jsxs)(Bn,{children:[(0,oe.jsx)(Un,{}),(0,oe.jsx)($n,{children:e})]})})}function Bn({children:e}){const t=(0,he.J)(),{isLoading:n,error:r}=c.D_.useWhoamiQuery({database:t});return(0,oe.jsx)(ut.r,{loading:n,size:"l",children:(0,oe.jsx)(ct.A,{error:r,children:e})})}function Un(){return ht.m.useGetNodesListQuery(void 0),null}function $n({children:e}){(0,fe.e5)();const t=(0,fe.Pm)();return(0,oe.jsx)(ut.r,{loading:!t,size:"l",children:e})}const qn=(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:Rn({embedded:t}),children:n?e.children:r?(0,oe.jsx)(lt.O,{}):(0,oe.jsx)(kt,{})})})]})}));var Hn=n(16332),Vn=n(69118),Wn=n(67087);const Kn=({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}})},Gn=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 Yn=n(73633),Qn=n(27738),Zn=n(98392),Jn=n(18650),Xn=n(40091);const er=i.createContext(void 0);er.displayName="AsideHeaderInnerContext";const tr=er.Provider,nr=()=>{const e=i.useContext(er);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},rr=i.createContext({compact:!1,size:0});rr.displayName="AsideHeaderContext";const ir=rr.Provider,or=()=>{const e=i.useContext(rr);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 ar=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 sr=(0,v.b)("composite-bar-highlighted-item"),lr=({iconRef:e,iconNode:t,onClick:n,onClickCapture:r})=>{const{openModalSubscriber:o}=nr(),[{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(Zn.Z,null,i.createElement("div",{className:sr(),style:{left:s,top:a,width:l,height:c},onClick:n,onClickCapture:r,"data-toast":!0},i.createElement("div",{className:sr("icon")},t))):null};lr.displayName="HighlightedItem";const cr="collapse-item-id",ur=["right-start","right-end","right"];function dr(e){if(!hr(e))return 40;switch(e.type){case"action":return 50;case"divider":return 15;default:return 40}}function fr(e){return e.reduce(((e,t)=>e+dr(t)),0)}function pr(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function hr(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 mr=(0,v.b)("composite-bar-item");function gr(e){let t=i.createElement("div",{className:mr("title-text")},e.title);return e.rightAdornment&&(t=i.createElement(i.Fragment,null,t,i.createElement("div",{className:mr("title-adornment")},e.rightAdornment))),t}const vr=["right-end"],yr=[-20,8],br=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:o,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=vr,popupOffset:d=yr,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,onCollapseItemClick:b,bringForward:w}=e,{compact:x}=or(),[_,E]=i.useState(!1),S=i.useRef(null),k=c||S,C=i.useRef(null),O=t.type||"regular",N=t.current||!1,T=t.tooltipText||t.title,A=t.icon,I=t.iconSize||18,D=t.iconQa,P=t.id===cr,R=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:mr("menu-divider")});const M=e=>x?i.createElement(Jn.m,{title:"",description:T,disabled:!s||P&&_||l,placement:"right",className:mr("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:mr("btn-icon")},e)):e,L=({icon:e,title:r})=>{const s=i.createElement(i.Fragment,null,i.createElement("div",{className:mr({type:O,current:N,compact:x},n),ref:S,"data-qa":t.qa,onClick:e=>{P?(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:mr("icon-place"),ref:C},M(e)),i.createElement("div",{className:mr("title"),title:"string"===typeof t.title?t.title:void 0},r)),m&&Boolean(null===k||void 0===k?void 0:k.current)&&i.createElement(_e.z,{contentClassName:mr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:k,onClose:j,modifiers:R},m()));return t.link?i.createElement("a",{href:t.link,className:mr("link")},s):s},z=A?i.createElement(f.I,{qa:D,data:A,size:I,className:mr("icon")}):null,F={icon:z,title:gr(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(lr,{iconNode:U,iconRef:C,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),B,_&&P&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===k||void 0===k?void 0:k.current)&&i.createElement(wr,Object.assign({},e,{anchorRef:S,onClose:()=>E(!1)})))};function wr({onItemClick:e,collapseItems:t,anchorRef:n,onClose:r}){const{compact:o}=or();return(null===t||void 0===t?void 0:t.length)?i.createElement(_e.z,{placement:ur,open:!0,anchorRef:n,onClose:r},i.createElement("div",{className:mr("collapse-items-popup-content")},i.createElement(Xn.B,{itemClassName:mr("root-collapse-item"),items:t,selectedItemIndex:pr(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:mr("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:mr("link")},o):o},a={title:gr(t),icon:t.icon&&i.createElement(f.I,{data:t.icon,size:14,className:mr("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}br.displayName="Item";n(82435);y(".gn-footer-item{height:40px;width:100%}");const xr=(0,v.b)("footer-item"),_r=e=>{var{item:t}=e,n=d(e,["item"]);return i.createElement(br,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:xr({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},Er=i.memo((({renderContent:e,size:t})=>i.createElement(i.Fragment,null,e({size:t}))));Er.displayName="RenderContent";const Sr=({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(Er,{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 Cr=i.lazy((()=>n.e(99).then(n.bind(n,90099)).then((e=>({default:e.TopPanel}))))),Or=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(ir,{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(Cr,{topAlert:r})),i.createElement("div",{className:(0,kr.b)("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=or();return i.createElement(Sr,{size:n,className:(0,kr.b)("content"),renderContent:t},e)}});var Nr=n(42793);const Tr=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"})),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-.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 Ir;function Dr(){return Dr=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},Dr.apply(null,arguments)}var Pr=function(e){return i.createElement("svg",Dr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Ir||(Ir=i.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},Rr=n(32084),jr=n(14794),Mr=n(48681);function Lr(){return Lr=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},Lr.apply(null,arguments)}function zr(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 Fr(e,t){return Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fr(e,t)}function Br(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fr(e,t)}var Ur,$r,qr,Hr;function Vr(){if($r)return Ur;$r=1;return Ur="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Wr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Hr)return qr;Hr=1;var e=Vr();function t(){}function n(){}return n.resetWarningCache=t,qr=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 Kr=!1,Gr=i.createContext(null),Yr=function(e){return e.scrollTop},Qr="unmounted",Zr="exited",Jr="entering",Xr="entered",ei="exiting",ti=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=Zr,r.appearStatus=Jr):i=Xr:i=t.unmountOnExit||t.mountOnEnter?Qr:Zr,r.state={status:i},r.nextCallback=null,r}Br(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Qr?{status:Zr}: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!==Jr&&n!==Xr&&(t=Jr):n!==Jr&&n!==Xr||(t=ei)}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===Jr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Mr.findDOMNode(this);n&&Yr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zr&&this.setState({status:Qr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Mr.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Kr?this.safeSetState({status:Xr},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Jr},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Xr},(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:Mr.findDOMNode(this);t&&!Kr?(this.props.onExit(r),this.safeSetState({status:ei},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Zr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Zr},(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:Mr.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===Qr)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=zr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.createElement(Gr.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function ni(){}ti.contextType=Gr,ti.propTypes={},ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ni,onEntering:ni,onEntered:ni,onExit:ni,onExiting:ni,onExited:ni},ti.UNMOUNTED=Qr,ti.EXITED=Zr,ti.ENTERING=Jr,ti.ENTERED=Xr,ti.EXITING=ei;var ri=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}))},ii=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=Wr(n.className,r):n.setAttribute("class",Wr(n.className&&n.className.baseVal||"",r)));var n,r}))},oi=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}Br(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&&Yr(e),r&&(this.appliedClasses[t][n]=r,ri(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&&ii(e,r),i&&ii(e,i),o&&ii(e,o)},n.render=function(){var e=this.props;e.classNames;var t=zr(e,["classNames"]);return i.createElement(ti,Lr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.Component);function ai(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 si(e,t,n){return null!=n[t]?n[t]:e.props[t]}function li(e,t,n){var r=ai(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:si(s,"exit",e),enter:si(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:si(s,"exit",e),enter:si(s,"enter",e)})}})),o}oi.defaultProps={classNames:""},oi.propTypes={};var ci,ui,di=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},fi=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}Br(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,ai(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:si(e,"appear",n),enter:si(e,"enter",n),exit:si(e,"exit",n)})}))):li(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=ai(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Lr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=zr(e,["component","childFactory"]),o=this.state.contextValue,a=di(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(Gr.Provider,{value:o},a):i.createElement(Gr.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);fi.propTypes={},fi.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}Br(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:Mr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=zr(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(fi,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 pi="out-in",hi="in-out",mi=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},gi=((ci={})[pi]=function(e){var t=e.current,n=e.changeState;return i.cloneElement(t,{in:!1,onExited:mi(t,"onExited",(function(){n(Jr,null)}))})},ci[hi]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,i.cloneElement(r,{in:!0,onEntered:mi(r,"onEntered",(function(){n(Jr)}))})]},ci),vi=((ui={})[pi]=function(e){var t=e.children,n=e.changeState;return i.cloneElement(t,{in:!0,onEntered:mi(t,"onEntered",(function(){n(Xr,i.cloneElement(t,{in:!0}))}))})},ui[hi]=function(e){var t=e.current,n=e.children,r=e.changeState;return[i.cloneElement(t,{in:!1,onExited:mi(t,"onExited",(function(){r(Xr,i.cloneElement(n,{in:!0}))}))}),i.cloneElement(n,{in:!0})]},ui),yi=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:Xr,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Br(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===Jr&&e.mode===hi?{status:Jr}:!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:ei};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 Jr:e=vi[r](l);break;case ei:e=gi[r](l);break;case Xr:e=s}return i.createElement(Gr.Provider,{value:{isMounting:!this.appeared}},e)},t}(i.Component);yi.propTypes={},yi.defaultProps={mode:pi};const bi=200,wi=800;function xi(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 _i(e){const{direction:t,width:n,minResizeWidth:r=bi,maxResizeWidth:o=wi,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=xi(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=xi(e),i=r.current-t;n(i)}),[a,n]),l=i.useCallback((t=>{const n=xi(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 Ei=(0,v.b)("drawer"),Si=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,Rr.N)(t,v),b="left"===a?void 0:a,{resizedWidth:w,resizerHandlers:x}=_i({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:Ei("resizer",{direction:a})},x),i.createElement("div",{className:Ei("resizer-handle")})):null;return i.createElement(oi,{in:n,timeout:300,mountOnEnter:!h,unmountOnExit:!h,classNames:Ei("item-transition",{direction:b}),nodeRef:v,onEnter:()=>g(!1),onExit:()=>g(!1)},i.createElement("div",{ref:y,className:Ei("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===Si){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,jr.y)({enabled:s&&d});const f=i.useRef(null),p=i.useRef(null),h=i.createElement(ti,{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:Ei({hideVeil:l},e),style:r},i.createElement(oi,{in:s,timeout:300,unmountOnExit:!0,classNames:Ei("veil-transition"),nodeRef:p},i.createElement("div",{ref:p,className:Ei("veil",{hidden:l},t),onClick:o})),i.Children.map(n,(e=>{if(i.isValidElement(e)&&e.type===Si){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(Zn.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 Ci=(0,v.b)("all-pages-list-item"),Oi=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:Ci(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?i.createElement(f.I,{className:Ci("icon"),data:t.icon,size:t.iconSize}):null,i.createElement("span",{className:Ci("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(Tr,null):i.createElement(Ar,null))))};var Ni=(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 Ti="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 Ai=(0,v.b)("all-pages-panel"),Ii=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:o,onMenuItemsChanged:a,editMenuProps:s}=nr(),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!==Ti));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||Ni("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!==Ti));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(Oi,{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!==Ti));a(t.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a,s]);return i.createElement(g.s,{className:Ai(null,r),gap:"5",direction:"column"},i.createElement(g.s,{gap:"4",alignItems:"center",justifyContent:"space-between"},i.createElement(_.E,{variant:"subheader-2"},Ni(c?"all-panel.title.editing":"all-panel.title.main")),i.createElement(E.$,{selected:c,view:"normal",onClick:d},t||i.createElement(f.I,{data:Qn.A}))),i.createElement(g.s,{className:Ai("content"),gap:"5",direction:"column"},Object.keys(p).map((e=>i.createElement(g.s,{key:e,direction:"column",gap:"3"},i.createElement(_.E,{className:Ai("category"),variant:"body-1",color:"secondary"},e),i.createElement(Xn.B,{virtualized:!1,filterable:!1,items:p[e],onItemClick:h,renderItem:v}))))),c&&i.createElement(E.$,{onClick:y},Ni("all-panel.resetToDefault")))};let Di;Di="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let Pi=null,Ri=null;const ji=Di.clearTimeout,Mi=Di.setTimeout,Li=Di.cancelAnimationFrame||Di.mozCancelAnimationFrame||Di.webkitCancelAnimationFrame,zi=Di.requestAnimationFrame||Di.mozRequestAnimationFrame||Di.webkitRequestAnimationFrame;function Fi(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__&&Pi(this.__resizeRAF__),this.__resizeRAF__=Ri((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=Di.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==Li||null==zi?(Pi=ji,Ri=function(e){return Mi(e,20)}):(Pi=function([e,t]){Li(e),ji(t)},Ri=function(e){const t=zi((function(){ji(n),e()})),n=Mi((function(){Li(t),e()}),20);return[t,n]});class Bi 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=Fi(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 Ui={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},$i=i.createContext(Ui);class qi extends i.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},Ui),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 Hi=(0,v.b)("multiple-tooltip"),Vi=[-32,4],Wi=[{name:"preventOverflow",enabled:!1}],Ki=({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:Vi,contentClassName:Hi(null),modifiers:Wi,disableLayer:!0},i.createElement("div",{className:Hi("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==cr&&"action"!==e)).map(((e,t)=>"divider"===e.type?i.createElement("div",{className:Hi("item",{divider:!0}),key:t},e.title):i.createElement("div",{className:Hi("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 Gi=(0,v.b)("composite-bar"),Yi=({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}=or();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!==cr&&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(Xn.B,{ref:s,items:t,selectedItemIndex:"menu"===e?pr(t):void 0,itemHeight:dr,itemsHeight:fr,itemClassName:Gi("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const s=hr(e)?{item:e}:e,l=hr(e)?!a:e.enableTooltip;return i.createElement(br,Object.assign({},s,{enableTooltip:l,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),onCollapseItemClick:r,collapseItems:o}))}})),"menu"===e&&a&&i.createElement(Ki,{open:p&&u,anchorRef:l,placement:["right-start"],items:t}))},Qi=({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 fr(t)+fr(n)+(t.length===e.length?0:40)}(t),l=function(e){return{id:cr,title:e,icon:ar.A,iconSize:18}}(n);s=i.createElement("div",{className:Gi({autosizer:!0}),style:{minHeight:e}},0!==t.length&&i.createElement(Bi,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=fr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=dr(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===cr||e.afterMoreButton||("divider"!==e.type?(f-=dr(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-=dr(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(Yi,{type:"menu",items:c,onItemClick:r,onMoreClick:o,collapseItems:u,multipleTooltip:a}))})))}else s=i.createElement("div",{className:Gi({subheader:!0})},i.createElement(Yi,{type:"subheader",items:t,onItemClick:r}));return i.createElement(qi,null,s)};var Zi={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Ji={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 Xi,eo=(0,w.N)({en:Zi,ru:Ji},`${v.N}AsideHeader`);function to(){return to=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},to.apply(null,arguments)}var no=function(e){return i.createElement("svg",to({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Xi||(Xi=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 ro=(0,v.b)("collapse-button"),io=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:r,collapseTitle:o}=nr(),a=(0,i.useCallback)((()=>{null===t||void 0===t||t(!n)}),[n,t]),s=n?r||eo("button_expand"):o||eo("button_collapse");return i.createElement("button",{className:ro({compact:n},e),onClick:a,title:s},i.createElement(f.I,{data:no,className:ro("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 oo=(0,v.b)("logo"),ao=({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:oo("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:oo("logo"),style:{fontSize:a}},e),i.createElement("div",{className:oo(null,p)},i.createElement("div",{className:oo("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:oo("logo-link"),onClick:u},x)))},so=[],lo=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:o}=nr(),{compact:a}=or(),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(ao,Object.assign({},e,{onClick:s,compact:a,buttonWrapperClassName:(0,kr.b)("logo-button-wrapper"),buttonClassName:(0,kr.b)("logo-button")})),i.createElement(Qi,{type:"subheader",items:o||so,onItemClick:t}),r&&i.createElement(f.I,{data:Pr,className:(0,kr.b)("header-divider"),width:56,height:29}))},co=()=>{const{panelItems:e,onClosePanel:t,size:n}=nr();return e?i.createElement(ki,{className:(0,kr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>i.createElement(Si,Object.assign({key:e.id},e))))):null},uo=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}=nr(),g=(()=>{const{menuItems:e,allPagesIsAvailable:t}=nr();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,Nr.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(lo,null),(null===g||void 0===g?void 0:g.length)?i.createElement(Qi,{type:"menu",items:g,menuMoreTitle:null!==s&&void 0!==s?s:eo("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(io,null))),i.createElement(co,null))}));var fo;uo.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(fo||(fo={}));const po=[],ho=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:o,onMenuItemsChanged:a,onAllPagesClick:s}=e,[l,c]=(0,i.useState)(),u=i.useMemo((()=>({id:Ti,title:Ni("menu-item.all-pages.title"),tooltipText:Ni("menu-item.all-pages.title"),icon:ar.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===fo.AllPages?void 0:fo.AllPages))):f(),null===(i=e.onItemClick)||void 0===i||i.call(e,e,t,r)}),[f,u,n]),h=(0,i.useMemo)((()=>d?[...r||po,Object.assign(Object.assign({},u),{current:l===fo.AllPages,onItemClick:s})]:r||po),[d,r,l,u,s]),m=(0,i.useMemo)((()=>d?[...o||[],{id:fo.AllPages,content:i.createElement(Ii,null),visible:l===fo.AllPages}]:o),[d,o,l]);return Object.assign(Object.assign({},e),{onClosePanel:f,allPagesIsAvailable:d,menuItems:h,panelItems:m,size:t,onItemClick:p})},mo=i.forwardRef(((e,t)=>{const{size:n,compact:r}=or(),o=ho(Object.assign({size:n,compact:r},e));return i.createElement(tr,{value:o},i.createElement(uo,{ref:t}))}));mo.displayName="PageLayoutAside";const go=i.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:o}=e,a=d(e,["compact","className","topAlert"]);return i.createElement(Or,{compact:n,className:r,topAlert:o},i.createElement(mo,Object.assign({ref:t},a)),i.createElement(Or.Content,{renderContent:a.renderContent}))}));go.displayName="AsideHeader";var vo,yo=n(59001);function bo(){return bo=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},bo.apply(null,arguments)}const wo=function(e){return i.createElement("svg",bo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),vo||(vo=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"})))},xo=(0,pe.cn)("kv-navigation");function _o({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:Gn:wo;return(0,oe.jsx)(_r,{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:xo("ydb-user-wrapper"),children:r})})}var Eo=function(e){return e.UserSettings="UserSettings",e}(Eo||{});function So(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)(go,{logo:{text:"YDB",icon:Et,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:o,onChangeCompact:a,className:xo(),renderContent:()=>e.content,renderFooter:({compact:t,asideRef:o})=>(0,oe.jsxs)(i.Fragment,{children:[(0,oe.jsx)(_r,{compact:t,item:{id:"documentation",title:ve("navigation-item.documentation"),icon:Yn.A,onItemClick:()=>{window.open("ru"===yo.f.readUserSettingsValue(Le.jS,navigator.language)?"https://ydb.tech/docs/ru/":"https://ydb.tech/docs/en/","_blank","noreferrer")}}}),(0,oe.jsx)(_r,{item:{id:"user-settings",title:ve("navigation-item.settings"),icon:Qn.A,current:n===Eo.UserSettings,onItemClick:()=>{r(n===Eo.UserSettings?void 0:Eo.UserSettings)}},compact:t}),(0,oe.jsx)(_o,{isCompact:t,popupAnchor:o,user:e.user,children:e.ydbInternalUser})]}),panelItems:[{id:"user-settings",visible:n===Eo.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",So).register("ErrorBoundary",s.lQ);function Co({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)(Wn.QueryParamProvider,{adapter:Kn,children:(0,oe.jsx)(Oo,{children:(0,oe.jsx)(l.I,{registry:n,children:(0,oe.jsx)(Hn.Kq,{children:r})})})})})})})}function Oo({children:e}){const[t]=(0,u.iK)(Le.k4);return(0,oe.jsx)(Vn.N,{theme:t,children:e})}const No=(0,a.Ng)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function({store:e,history:t,singleClusterMode:n,children:r,userSettings:i=st({singleClusterMode:n})}){return(0,oe.jsxs)(Co,{store:e,history:t,children:[(0,oe.jsx)(o.mg,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,oe.jsx)(qn,{children:(0,oe.jsx)(we,{userSettings:i,children:(0,oe.jsxs)(s.tH,{children:[(0,oe.jsx)(zn,{singleClusterMode:n,children:r}),(0,oe.jsx)("div",{id:"fullscreen-root"})]})})}),(0,oe.jsx)(Ie,{})]})}));function To({monitoring:e,dbName:t,dbType:n,clusterName:r}){try{const a=Io(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 Ao(e,t){try{const n=Io(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 Io(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Do=n(96873),Po=n(40537),Ro=n(88655),jo=n(69446),Mo=n(77630),Lo=n(39567);const zo=(0,pe.cn)("extended-cluster"),Fo=e=>{const t=(0,jo.Zd)(e);return{label:"Balancer",value:(0,oe.jsxs)("div",{className:zo("balancer"),children:[t,(0,oe.jsx)(Do.b,{text:t,size:"s",className:zo("clipboard-button")})]})}},Bo=(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=[Fo(n)]),i},Uo=(e=[])=>({getVersionToColorMap:()=>(0,Po.Vm)((0,Po.HD)(e))}),$o=(e,t,n,r,i)=>{const o={prepareTenantBackend:e=>{var t;if(n){if(r)return(0,jo.PG)(n);if(e)return"string"===typeof e?(0,Mo.De)(e,n):null!==(t=(0,Mo.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 qo({component:e,getMonitoringLink:t,getMonitoringClusterLink:n}){const r=function(){const[e]=(0,Wn.useQueryParam)("clusterName",Wn.StringParam),{data:t}=Lo.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,Ro.E)(),{name:a,balancer:s,monitoring:l}=(0,Jt.Zd)(),[c]=(0,u.iK)(Le.s2);return(0,oe.jsx)("div",{className:zo(),children:(0,oe.jsx)(e,{additionalClusterProps:Bo(a,l,s,n),additionalVersionsProps:Uo(r),additionalTenantsProps:$o(a,l,s,c,t),additionalNodesProps:o})})}function Ho({component:e,getMonitoringLink:t}){const{monitoring:n}=(0,Jt.Zd)(),r=(0,Ro.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 Vo({store:e,history:t,getMonitoringLink:n=To,getMonitoringClusterLink:r=Ao,userSettings:i,children:o}){return(0,oe.jsxs)(No,{store:e,history:t,userSettings:i,children:[(0,oe.jsx)(_n,{children:({component:e})=>(0,oe.jsx)(qo,{component:e,getMonitoringLink:n,getMonitoringClusterLink:r})}),(0,oe.jsx)(En,{children:({component:e})=>(0,oe.jsx)(Ho,{component:e,getMonitoringLink:n})}),o]})}var Wo=n(58351),Ko=n(28197),Go=n(88610),Yo=n(59625),Qo=n(42566)},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)}))}},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})}},28197:(e,t,n)=>{"use strict";n.d(t,{i:()=>gr,x:()=>vr});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"),k=d("URLSearchParams"),[C,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 D="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,P=e=>!h(e)&&e!==D;const R=(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",$={DIGIT:U,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+U};const q=d("AsyncFunction"),H=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],D.addEventListener("message",(({source:e,data:t})=>{e===D&&t===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),D.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(D.postMessage)),V="undefined"!==typeof queueMicrotask?queueMicrotask.bind(D):"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:C,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:k,isTypedArray:R,isFileList:S,forEach:A,merge:function e(){const{caseless:t}=P(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:D,isContextDefined:P,ALPHABET:$,generateString:(e=16,t=$.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:q,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 ke{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}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(ke.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),W.freezeMethods(ke);const Ce=ke;function Oe(e,t){const n=this||be,r=t||n,i=Ce.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 De=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 Pe=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)]},Re=(e,t,n=3)=>{let r=0;const i=De(50,250);return Pe((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 Ce?{...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 $e=e=>{const t=Ue({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Ce.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},qe="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=$e(e);let i=r.data;const o=Ce.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=Ce.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]=Re(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Re(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:qe,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}=$e(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,Re(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,Re(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:Ce.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=Ce.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=Ce.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=Ce.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=Ce.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=Ce,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:kt,isCancel:Ct,CancelToken:Ot,VERSION:Nt,all:Tt,Cancel:At,isAxiosError:It,spread:Dt,toFormData:Pt,AxiosHeaders:Rt,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 Rt&&(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 $t(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&Bt(e)))}const qt=["get","head","options"],Ht=qt.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 $t(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=$t,Zt.isSafeRequestError=function(e){return!!e.config?.method&&(Vt(e)&&-1!==qt.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 kn=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("; ")}},Cn=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",Dn="accept-language",Pn="accept-ranges",Rn="cache-control",jn="connection",Mn="content-disposition",Ln="content-encoding",zn="content-language",Fn="content-length",Bn="content-type",Un="cookie",$n="date",qn="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(Dn,_n)}set acceptLanguage(e){this.#i(Dn,_n,e)}get acceptRanges(){return this.#o(Pn)}set acceptRanges(e){this.#a(Pn,e)}get age(){return this.#s("age")}set age(e){this.#l("age",e)}get cacheControl(){return this.#r(Rn,En)}set cacheControl(e){this.#i(Rn,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,kn)}set contentType(e){this.#i(Bn,kn,e)}get cookie(){return this.#r(Un,Cn)}set cookie(e){this.#i(Un,Cn,e)}get date(){return this.#c($n)}set date(e){this.#u($n,e)}get etag(){return this.#o(qn)}set etag(e){this.#a(qn,"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;#k;#C;#O=!1;constructor(e,t){this.#S=e,this.#k=t}async arrayBuffer(){return(await this.bytes()).buffer}get body(){return this.#k}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.#k))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.#C||(this.#C=new Xn((new TextDecoder).decode(this.#S))),this.#C}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,signal:n}={}){return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal: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({config:e,webVersion:t}){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,this.auth=new on({config:e}),t&&(this.meta=new cn({config:e}),this.codeAssist=new sn({config:e})),this.operation=new un({config:e}),this.pdisk=new fn({config:e}),this.scheme=new pn({config:e}),this.storage=new hn({config:e}),this.streaming=new fr({config:e}),this.tablets=new pr({config:e}),this.vdisk=new hr({config:e}),this.viewer=new mr({config:e})}}function vr({webVersion:e=!1,withCredentials:t=!1}={}){return new gr({config:{withCredentials:t},webVersion: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.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)}}},54878:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>O,P8:()=>N,SL:()=>T,p2:()=>L,U1:()=>F,In:()=>M,jC:()=>R});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 k={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 C(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)(k,e),a=o&&k[o];p()(m()(a),(e=>{delete i[e]})),p()(m()(k.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 D(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 P(e,t,n,i){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,o.zx)(k,C,e,t,I);return{locationMiddleware:n,reducersWithLocation:D(k,C,t)}}(t,e),l=(0,r.U1)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.oM,"api/sendQuery/rejected"]}}).concat(a,...i)});return(0,u.N8)(l),l}const R=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=(0,a.x)({webVersion:R,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=P(e,r,{singleClusterMode:t},[c.F.middleware]);return(0,o.BL)(u,r),window.api=n,{history:r,store:u}}},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)},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:k,requestId:C}=S.current||{},O=!1;k&&C&&(O=w.current.isRequestSubscribed(k,C));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:k,isSuccess:C,isError:O,error:N}=b;(0,l.useDebugValue)({endpointName:_,data:E,status:S,isLoading:k,isSuccess:C,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()},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"})},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}},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")},67157:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>S,Ay:()=>E,ds:()=>T,zR:()=>N,Yv:()=>_,Zd:()=>k});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 k(){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 C=(0,i.Mz)((e=>e),(e=>S.endpoints.getClusterInfo.select(e))),O=(0,i.Mz)((e=>e),((e,t)=>C(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:[]}))},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"})},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"})},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}}},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},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"})},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)({..._})},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)))},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"})},73289:(e,t,n)=>{"use strict";n.d(t,{iZ:()=>S,Ay:()=>E,tS:()=>T,JK:()=>N,JO:()=>U,nO:()=>C,py:()=>L,Kz:()=>M,jY:()=>j,wf:()=>F,yJ:()=>z,Wp:()=>B,Ni:()=>I,Id:()=>A});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}}const v=(e,t)=>{const n=Date.now();if(e.recentChunks.push({timestamp:n,rowCount:t}),e.recentChunks=e.recentChunks.filter((e=>n-e.timestamp<=5e3)),e.recentChunks.length>0){const t=e.recentChunks[0].timestamp,r=(n-t)/1e3,i=e.recentChunks.reduce(((e,t)=>e+t.rowCount),0);e.rowsPerSecond=r>0?i/r:0}e.lastUpdateTime=n};var y=n(80971);const b=i.f.readUserSettingsValue(s.MB,[]),w=b.length-20,x={input:"",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},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),r=t.payload.reduce(((e,t)=>{var n;return e+((null===(n=t.result.rows)||void 0===n?void 0:n.length)||0)}),0);for(const[a,s]of n.entries()){var i;const{columns:t,rows:n}=s.result,l=e.result.data.resultSets;l[a]||(l[a]={columns:[],result:[],truncated:!1,streamMetrics:{rowsPerSecond:0,lastUpdateTime:Date.now(),recentChunks:[]}});const c=l[a];!t||null!==(i=c.columns)&&void 0!==i&&i.length||(c.columns=t);const u=n||[];(0,o.F)(u,c.columns||[]).forEach((e=>{var t;null===(t=c.result)||void 0===t||t.push(e)})),c.truncated=s.result.truncated,c.streamMetrics&&v(c.streamMetrics,r)}},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}}},selectors:{selectQueriesHistoryFilter:e=>e.history.filter||"",selectTenantPath:e=>e.tenantPath,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}}}),E=_.reducer,{changeUserInput:S,setQueryResult:k,saveQueryToHistory:C,updateQueryInHistory:O,goToPreviousQuery:N,goToNextQuery:T,setTenantPath:A,setQueryHistoryFilter:I,addStreamingChunks:D,setStreamQueryResponse:P,setStreamSession:R}=_.actions,{selectQueriesHistoryFilter:j,selectQueriesHistoryCurrentIndex:M,selectQueriesHistory:L,selectTenantPath:z,selectResult:F,selectUserInput:B}=_.selectors,U=c.F.injectEndpoints({endpoints:e=>({useStreamQuery:e.mutation({queryFn:async({query:e,database:t,querySettings:n={},enableTracingLevel:r,queryId:i},{signal:o,dispatch:s,getState:c})=>{s(k({type:"execute",queryId:i,isLoading:!0}));const{action:u,syntax:d}=(0,y.AH)("execute",null===n||void 0===n?void 0:n.queryMode);try{let i=[],c=null;const f=()=>{i.length>0&&(s(D(i)),i=[]),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:o,onQueryResponseChunk:e=>{s(P(e))},onSessionChunk:e=>{s(R(e))},onStreamDataChunk:e=>{i.push(e),c||(c=window.requestAnimationFrame(f))}}),c&&(window.cancelAnimationFrame(c),f()),{data:null}}catch(f){const e=c();return s(k({...e.query.result,type:"execute",error:f,isLoading:!1,queryId:i})),{error:f}}}}),useSendQuery:e.mutation({queryFn:async({actionType:e="execute",query:t,database:n,querySettings:r={},enableTracingLevel:i,queryId:s},{signal:c,dispatch:u})=>{u(k({type:e,queryId:s,isLoading:!0}));const{action:d,syntax:f}=(0,y.AH)(e,null===r||void 0===r?void 0:r.queryMode);try{var p;const h=Date.now(),m=await window.api.viewer.sendQuery({query:t,database:n,action:d,syntax:f,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)(m))return u(k({type:e,error:m,isLoading:!1,queryId:s})),{error:m};const v=g(m);if(v.traceId=null===m||void 0===m||null===(p=m._meta)||void 0===p?void 0:p.traceId,"execute"===e){const e={};if(v.stats){const{DurationUs:t,Executions:[{FinishTimeMs:n}]=[{}]}=v.stats;e.durationUs=t,e.endTime=n}else{const t=Date.now();e.durationUs=1e3*(t-h),e.endTime=t}u(O({stats:e,queryId:s}))}return u(k({type:e,data:v,isLoading:!1,queryId:s})),{data:null}}catch(h){return u(k({type:e,error:h,isLoading:!1,queryId:s})),{error:h}}}})}),overrideExisting:"throw"})},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})},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))}}},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]}))},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},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"})},87747:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=function(e){return e.Immediate="immediate",e.History="history",e}({})},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"}},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"})},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}},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"})},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}},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}}},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})},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}({})},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}({})},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}},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})},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})},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}),[])}},77506:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(82435).withNaming)({e:"__",m:"_"})},76086:(e,t,n)=>{"use strict";n.d(t,{Db:()=>l,Du:()=>p,ED:()=>R,Ed:()=>g,GV:()=>z,Gj:()=>ne,Hh:()=>m,IO:()=>te,J7:()=>s,Jg:()=>d,KF:()=>c,LK:()=>J,LQ:()=>N,MB:()=>T,Mt:()=>K,N3:()=>B,Nz:()=>b,Pd:()=>w,QM:()=>_,RY:()=>A,T5:()=>x,TJ:()=>C,U0:()=>re,Xm:()=>Q,YQ:()=>H,av:()=>I,bk:()=>y,bs:()=>W,bz:()=>X,c4:()=>$,eh:()=>o,fY:()=>F,fr:()=>q,g5:()=>G,hh:()=>L,iD:()=>D,jQ:()=>j,jS:()=>k,jX:()=>M,jp:()=>U,k4:()=>S,kO:()=>ee,l_:()=>P,ld:()=>O,lr:()=>Y,oK:()=>E,pg:()=>a,r0:()=>u,s2:()=>Z,tt:()=>f,zk:()=>V,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",k="language",C="invertedDisks",O="saved_queries",N="asideHeaderCompact",T="queries_history",A="binaryDataInPlainTextDisplay",I="auto-refresh-interval",D="caseSensitiveJsonSearch",P="default-size-result-pane",R="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},$="queryExecutionSettings",q="last_query_execution_settings",H="querySettingsBannerLastClosed",V="last_used_query_action",W="partitionsHiddenColumns",K="saved_tenant_initial_tab",G="enableNetworkTable",Y="useShowPlanToSvg",Q="showDomainDatabase",Z="useClusterBalancerAsBacked",J="enableAutocomplete",X="enableCodeAssistant",ee="enableQueryStreaming",te="autocompleteOnEnter",ne="isHotKeysHelpHidden",re="enable_tracing_for_all_requests"},56839:(e,t,n)=>{"use strict";n.d(t,{tC:()=>v,z3:()=>g,iM:()=>P,r6:()=>R,lr:()=>w,ZV:()=>N,Nd:()=>k,l9:()=>T,Pt:()=>A,j9:()=>S,vX:()=>C,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 k(e,t,n,r,i){return l(f,d,e,t,n,r,i)}const C=(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))},D=e=>{const t=Number(e)/1e6;return I(t,3)},P=e=>{if(void 0!==e)return(0,a.p)(D(e)).format("0.[000]")},R=(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()}},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}`}},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)}),[])}},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}},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}},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))}),[])]}},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)}},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]}},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])]}},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(", ")}`:""}},51533:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=n(97434).wA},75022:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(97434).d4},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})},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)}))}},99006:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(59284),i=n(74417),o=n(34271),a=n(88632),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"})})}},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},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()},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+$/,"")},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)}}},11822:(e,t,n)=>{"use strict";n.d(t,{jU:()=>k,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},k={queryMode:p.query,transactionMode:a.implicit,timeout:60,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.off},C=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:C,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(k.timeout)),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).optional().catch(k.limitRows)),queryMode:C.catch(k.queryMode),transactionMode:O.catch(k.transactionMode),statisticsMode:N.catch(k.statisticsMode),tracingLevel:T.catch(k.tracingLevel)}).catch(k)},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)}},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},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"},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))},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}},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},82435:(e,t,n)=>{"use strict";e.exports=n(31560)},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}},k=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))})))},C=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(k,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(k,null))):r.createElement(C,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()}}}}},22551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},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"}},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)},71165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},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 k=this.weekInfo();if(S){var C=g(this._localeData),O=C.minDaysInFirstWeek,N=C.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:k.weekday)+1,weekNumber:null!==v&&void 0!==v?v:k.weekNumber,weekYear:null!==b&&void 0!==b?b:k.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?k.isoWeekday:E||7,weekNumber:null!==x&&void 0!==x?x:k.isoWeekNumber,weekYear:null!==_&&void 0!==_?_:k.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})}},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)}},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)},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]]}},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"}},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}},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)},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},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}},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})),k=g?Math.floor(E):E;p+=S.format(k)}else{k=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(k<0?"-":"").concat(Math.abs(k).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},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}})},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)}},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}})},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)},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}}},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)},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))}}},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},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)},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))}},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)},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},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}},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}}}},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"}))},13066:(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:"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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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"}))},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:"_"})},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 k=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?_(e):E(e)},C=function(e){return null!=e&&"object"==typeof e};var O=p,N=i,T=function(e){return"symbol"==typeof e||C(e)&&"[object Symbol]"==k(e)},A=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,D=/^0o[0-7]+$/i,P=parseInt;var R=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||D.test(e)?P(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,R(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}},16258:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(92209).b)("aside-header")},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__"},4557:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>P});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 k extends i.Component{constructor(){super(...arguments),this.state={style:{top:k.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})}}k.defaultProps={top:0};class C 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})}}C.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(k,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(C,{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):_,k="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,C="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:k,_getOnClick:O,customStyle:C,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 D 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()}}D.FIXED=l.N2,D.MOVING=l.zQ,D.ASCENDING=l.VU,D.DESCENDING=l.xN,D.LEFT=l.M3,D.CENTER=l.Q7,D.RIGHT=l.NS;const P=D},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),k=(0,a.d)(y,v),C=i.Children.only(l),O=(0,x.Q)(C),N=(0,o.N)(S,O);return i.createElement(i.Fragment,null,i.cloneElement(C,{ref:N}),y?i.createElement(w.z,{id:m,disablePortal:g,role:"tooltip",className:E(null,c),style:p,open:k&&!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)}},33705:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(59284),i=n(13066),o=n(99991);const a=(0,n(69220).om)("arrow-toggle");function s({size:e=16,direction:t="bottom",className:n,qa:s}){return r.createElement("span",{style:{width:e,height:e},className:a({direction:t},n),"data-qa":s},r.createElement(o.I,{data:i.A,size:e}))}},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:k,style:C,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:k,style:C,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]}}},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}))))}},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))}},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"},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)}},40336:(e,t,n)=>{"use strict";n.d(t,{u:()=>k});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 k({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){C(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 C=(0,i.g)(S);k.Item=S,k.displayName="DefinitionList"},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:k,onTransitionExited:C,children:O,style:N,contentOverflow:T="visible",className:A,contentClassName:I,"aria-labelledby":D,"aria-label":P,container:R,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===k||void 0===k||k()},onEntered:()=>{F(!1),null===S||void 0===S||S()},onExited:()=>{F(!1),null===C||void 0===C||C()}},r.createElement(s.Z,{container:R},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":P,"aria-labelledby":D,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 k=n(39238);const C=(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:C("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:C("button",{action:"apply"})},r.createElement(m.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:C("button-apply",{preset:l})},s),o),u&&r.createElement(k.z,{open:d,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},r.createElement("div",{className:C("error")},u)));return r.createElement("div",{className:C(null,p)},r.createElement("div",{className:C("children")},c),r.createElement("div",{className:C("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:k,"aria-label":C,"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:k,className:T("modal",m),"aria-label":C,"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)})}},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},k={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},C=[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,k,{href:c,target:u,rel:d}),C):r.createElement("div",Object.assign({},S,g,k),C),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 k=n(39238);const C=[],O=r.createContext({activeMenuPath:C,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=({anchorRef:e,children:t,disabled:n})=>{const[i,o]=r.useState(C);r.useEffect((()=>{n&&o(C)}),[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 D(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const P=({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]),C=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&&D(d)===D(h),{activeItemIndex:T,setActiveItemIndex:P,reset:R}=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:C,disabled:!N,initialValue:v?0:-1});return r.useEffect((()=>{t||R()}),[t,R]),r.createElement(k.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&&D(e.path)===D(h.slice(0,e.path.length)),u=Object.assign(Object.assign({},e.extraProps),{onMouseEnter:()=>P(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 R(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:R(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:k}=j({items:i,path:h}),C=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),C())}),[n,v,C,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&&k()},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,k]),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(P,{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:C}))};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:k,togglePopup:C,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,!k||!f);const A=r.useMemo((()=>({toggle:C,data:p})),[p,C]),I=r.useMemo((()=>z(e,T)),[e]),D=r.useCallback((e=>{h||(null===w||void 0===w||w(e),C())}),[h,w,C]),{onKeyDown:R}=(0,o.N)(D),j=r.useMemo((()=>({onClick:D,onKeyDown:R})),[D,R]);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:!k},r.createElement(P,{items:I,open:k,size:t,menuProps:x,anchorRef:S,onClose:O,popupProps:_},E)))}),{Item:M})},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=""},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:k}=e,C=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&C,N="copy"===n&&C,T="function"===typeof S,A=Boolean(N&&y),I=(T||A||x)&&!v,{copyIconSize:D,closeIconSize:P}=c[d],R=p&&r.createElement("div",{className:l("addon",{side:C?"start":void 0,type:"icon"})},p),j=C&&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:D})):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:P,data:i.A}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:I,disabled:v},g),title:f,"data-qa":k},R,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()}))},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)}))},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 k=-1;function C(e){if(void 0===e&&(e=!1),-1===k||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),k=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return k}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?C():0:l.scrollHeight>l.clientHeight?C():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(),k=S[0],C=S[1],O=[];if(u>0)for(var N=k;N<=C;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},D=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]},P=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=D(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},R=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&D(e,n,t).offset<r;)n+=o,o*=2;return P(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 D(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=D(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?P(e,t,i,0,n):R(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=D(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=D(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}},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")}))}},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:k,tooltipContentClassName:C,theme:O="info",size:N="s",hasArrow:T=!0,hasClose:A=!1,className:I,children:D,title:P,content:R,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(P),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},k),contentClassName:d("tooltip-popup-content",C),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":P?he:void 0},r.createElement(r.Fragment,null,P&&r.createElement("h3",{id:he,className:d("tooltip-title")},P),r.createElement(h,{secondary:!!pe&&"announcement"!==O,content:R,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},D),me)}));x.displayName="Popover"},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]}},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 k(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function C(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&_(e)?e:C(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=C(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(k(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=k(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",D="bottom",P="right",R="left",j="auto",M=[I,D,P,R],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 D:t={x:s,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:l};break;case R: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=R,S=I,k=window;if(u){var C=A(n),O="clientHeight",N="clientWidth";if(C===s(n)&&"static"!==x(C=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),i===I||(i===R||i===P)&&o===z)S=D,v-=(f&&C===k&&k.visualViewport?k.visualViewport.height:C[O])-r.height,v*=c?1:-1;if(i===R||(i===I||i===D)&&o===z)E=P,m-=(f&&C===k&&k.visualViewport?k.visualViewport.width:C[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=(k.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=[R,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,[R,P].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(k(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),k=g(e.elements.reference),C=X({reference:k,element:_,strategy:"absolute",placement:i}),O=le(Object.assign({},_,C)),N=p===B?O:k,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 R=A[i];Object.keys(T).forEach((function(e){var t=[P,D].indexOf(e)>=0?1:-1,n=[I,D].indexOf(e)>=0?"y":"x";T[e]+=R[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],k=0;k<b.length;k++){var C=b[k],O=Q(C),N=Z(C)===L,T=[I,D].indexOf(O)>=0,A=T?"width":"height",z=pe(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?P:R:N?D: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=C,E=!1;break}_.set(C,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",k=t.modifiersData.popperOffsets,C=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(k){if(o){var z,F="y"===_?I:R,B="y"===_?D:P,U="y"===_?"height":"width",$=k[_],q=$+y[F],H=$-y[B],V=m?-O[U]/2:0,W=w===L?C[U]:O[U],K=w===L?-O[U]:-C[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,C[U],Y[U]),re=x?C[U]/2-V-ne-ee-T.mainAxis:W-ne-ee-T.mainAxis,ie=x?-C[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);k[_]=ce,M[_]=ce-$}if(s){var ue,de="x"===_?I:R,fe="x"===_?D:P,he=k[E],ge="y"===E?"height":"width",ve=he+y[de],ye=he-y[fe],be=-1!==[I,R].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,xe=be?ve:he-C[ge]-O[ge]-we+T.altAxis,_e=be?he+C[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);k[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=[R,P].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:R,p="y"===l?D:P,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,P,D,R].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,ke=[],Ce=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||ke},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),De=n(19225),Pe=n(69220),Re=n(99635),je=n(6826);const Me=(0,Pe.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,Pe.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:k,onTransitionEntered:C,onTransitionExit:O,onTransitionExited:N,disablePortal:T,container:A,strategy:I,qa:D,restoreFocus:P,restoreFocusRef:R,"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,Re.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}=Ce(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,De.N)()),G=(0,Ae.s)({enabled:Boolean(P&&a),restoreFocusRef:R});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===k||void 0===k||k()},onEntered:()=>{null===C||void 0===C||C()},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":D,id:z,role:Y,"aria-label":j,"aria-labelledby":M,"aria-modal":U&&a?U:void 0}),r.createElement(De.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)))))}},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}},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},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)}))},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})},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"},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)},28664:(e,t,n)=>{"use strict";n.d(t,{k:()=>P});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}"`)}},k=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 C=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 D=(0,g.om)("text-input"),P=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:P,tabIndex:R,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&&!P&&!d&&"undefined"===typeof A,fe=(0,s.u)(),pe=ie?P||fe:P,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:R,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:D({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:D("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:D("label"),title:v,htmlFor:pe},`${v}`),r.createElement(I,Object.assign({},e,we,{controlRef:ee})),se&&r.createElement(k,{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:D("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:D("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(T,{placement:"end",onClick:xe},q)),r.createElement(C.o,{note:H,errorMessage:oe?K:null,noteId:ve,errorMessageId:ge}))}))},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},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}}},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)}))},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:k,space:C,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)(),D=e=>"object"===typeof e&&null!==e?A(e):e,P=D(E),R=P?I*Number(P):void 0,j=D(S)||P,M=j?I*Number(j):void 0,L=D(C),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},k),ref:t,style:Object.assign({flexDirection:D(o),flexGrow:!0===u?1:u,flexWrap:!0===x?"wrap":x,flexBasis:d,flexShrink:w,columnGap:R,rowGap:M,alignContent:D(h),alignItems:D(m),alignSelf:D(g),justifyContent:D(v),justifyItems:D(y),justifySelf:D(b)},p)},N),C?i.Children.map(f,(e=>e?i.createElement("div",{className:c("wr")},e):e)):f)}))},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"}}}}}},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"})},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}}},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},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)},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)},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]},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}},42933:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=n(59284).createContext(void 0);r.displayName="ThemeContext"},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 k(){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 C=(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,D=null!==i&&void 0!==i?i:I,P="light"===k()?T:A,R="system"===N?P:N,j=r.useRef("");r.useLayoutEffect((()=>{S||(_({theme:R,nativeScrollbar:o,className:s,prevClassName:j.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(D),j.current=s)}),[S,R,D,o,s]);const M=r.useMemo((()=>({theme:N,themeValue:R,direction:D,scoped:S})),[N,R,D,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:C({theme:R,"native-scrollbar":!1!==o},s),dir:D},l):l)))}O.displayName="ThemeProvider"},54245:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(46878);function i(){return(0,r.w)().direction}},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}},22680:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(46878);function i(){return(0,r.w)().themeValue}},19225:(e,t,n)=>{"use strict";n.d(t,{s:()=>S,N:()=>k});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},k=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()):k(_()))},C=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)})),k(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(),k(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())},D=function(e){var t=v(e);w(t,e)>=0||g(a.clickOutsideDeactivates,e)||g(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},P=function(){if(s.active)return u(o,n),s.delayInitialFocusTimer=a.delayInitialFocus?m((function(){k(_())})):k(_()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",N,{capture:!0,passive:!1}),r.addEventListener("touchstart",N,{capture:!0,passive:!1}),r.addEventListener("click",D,{capture:!0,passive:!1}),r.addEventListener("keydown",A,{capture:!0,passive:!1}),r.addEventListener("keydown",I),n},R=function(){if(s.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",N,!0),r.removeEventListener("touchstart",N,!0),r.removeEventListener("click",D,!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}))}))&&k(_())})):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(),P(),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,R(),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&&k(C(s.nodeFocusedBeforeActivation)),null===i||void 0===i||i()}))};return u&&c?(c(C(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(),R(),M(),null===r||void 0===r||r()}else{var i=b(t,"onUnpause"),o=b(t,"onPostUnpause");null===i||void 0===i||i(),E(),P(),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 k(){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])}},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]}},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)},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},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)},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})},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)}}},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])}},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"}))}}},27629:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const r=new Map;function i(e){!e||r.has(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"}},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 k=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:k,defaultChecked:l,checked:x,"aria-checked":_,ref:S})}}},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)}),[])}},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)}}}},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}},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])}}},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])}},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]}},42793:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},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)}},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])}},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}},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)}))},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]}))},k=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);k.propTypes={},k.defaultProps={component:"div",childFactory:function(e){return e}};const C=k;var O=n(72630),N=n(6826),T=n(43937),A=n(70825),I=n(94420),D=n(27612),P=n(81240);function R({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:D.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=R({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:P.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(C,{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:{}},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)},69426:e=>{"use strict";e.exports=Function.prototype.apply},70084:e=>{"use strict";e.exports=Function.prototype.call},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)}},98599:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},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}},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}},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 C||!(!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 C(n)},k=y;k.l=E,k.i=_,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=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(k.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 k},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 k.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=!!k.u(t)||t,u=k.p(e),p=function(e,t){var i=k.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 k.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=k.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[k.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=k.p(u),m=function(e){var t=S(p);return k.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 k.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=k.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 k.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 k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.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 k.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 k.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 k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.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=k.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return k.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:k.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 k.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=C.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,C,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}()},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)}}}()},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}}}()},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)}}}()},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))}},78599:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},82461:e=>{"use strict";e.exports=EvalError},73759:e=>{"use strict";e.exports=Error},52530:e=>{"use strict";e.exports=RangeError},19770:e=>{"use strict";e.exports=ReferenceError},78236:e=>{"use strict";e.exports=SyntaxError},39955:e=>{"use strict";e.exports=TypeError},22921:e=>{"use strict";e.exports=URIError},30836:e=>{"use strict";e.exports=Object},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}},35711:(e,t,n)=>{"use strict";var r=n(9265);e.exports=Function.prototype.bind||r},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,k=n(27199)(),C=n(91268),O=n(39232),N=n(62384),T=n(69426),A=n(70084),I={},D="undefined"!==typeof Uint8Array&&C?C(Uint8Array):r,P={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&C?C([][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%":k&&C?C(C([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&k&&C?C((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&&k&&C?C((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&C?C(""[Symbol.iterator]()):r,"%Symbol%":k?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":D,"%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(C)try{null.error}catch(K){var R=C(C(K));P["%Error.prototype%"]=R}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&&C&&(n=C(i.prototype))}return P[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(P,r)){var i=P[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(P,o="%"+(r+="."+p)+"%"))a=P[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&&(P[o]=a)}}return a}},39232:(e,t,n)=>{"use strict";var r=n(30836);e.exports=r.getPrototypeOf||null},62384:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},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},55357:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},84363:(e,t,n)=>{"use strict";var r=n(55357);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},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())))}},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}},86173:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(35711);e.exports=o.call(r,i)},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 k(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 C(){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)||D(k(e.state))}function A(){D(k(_()))}var I=!1;function D(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=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(I=!0,M(i))}(e)}))}}var P=k(_()),R=[P.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:P,createHref:j,push:function(e,r){var i="PUSH",o=m(e,r,C(),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=R.indexOf(B.location.key),u=R.slice(0,c+1);u.push(o.key),R=u,N({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=m(e,r,C(),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=R.indexOf(B.location.key);-1!==c&&(R[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",k={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 C(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(C(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=k[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 D=O(),P=g(D);D!==P&&N(P);var R=x(),j=[h(R)];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:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(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}},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}},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},51700:(e,t,n)=>{"use strict";e.exports=n(65144)},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}}},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)},4786:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},36484:(e,t,n)=>{var r=n(92470)(n(4133),"DataView");e.exports=r},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},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},37815:(e,t,n)=>{var r=n(92470)(n(4133),"Map");e.exports=r},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},70364:(e,t,n)=>{var r=n(92470)(n(4133),"Promise");e.exports=r},32361:(e,t,n)=>{var r=n(92470)(n(4133),"Set");e.exports=r},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},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},537:(e,t,n)=>{var r=n(4133).Symbol;e.exports=r},7804:(e,t,n)=>{var r=n(4133).Uint8Array;e.exports=r},41527:(e,t,n)=>{var r=n(92470)(n(4133),"WeakMap");e.exports=r},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)}},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}},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}},82789:(e,t,n)=>{var r=n(11275);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},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}},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}},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}},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}},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}},63786:e=>{e.exports=function(e){return e.split("")}},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)}},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)}},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}},63909:(e,t,n)=>{var r=n(62871),i=n(96294);e.exports=function(e,t){return e&&r(t,i(t),e)}},46710:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e,t){return e&&r(t,i(t),e)}},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}},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),k="[object Arguments]",C="[object Function]",O="[object Object]",N={};N[k]=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[C]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,T,A,I,D){var P,R=1&n,j=2&n,M=4&n;if(T&&(P=I?T(t,A,I,D):T(t)),void 0!==P)return P;if(!x(t))return t;var L=y(t);if(L){if(P=m(t),!R)return c(t,P)}else{var z=h(t),F=z==C||"[object GeneratorFunction]"==z;if(b(t))return l(t,R);if(z==O||z==k||F&&!I){if(P=j||F?{}:v(t),!R)return j?d(t,s(P,t)):u(t,a(P,t))}else{if(!N[z])return I?t:{};P=g(t,z,R)}}D||(D=new r);var B=D.get(t);if(B)return B;D.set(t,P),_(t)?t.forEach((function(r){P.add(e(r,n,T,r,t,D))})):w(t)&&t.forEach((function(r,i){P.set(i,e(r,n,T,i,t,D))}));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(P,i,e(r,n,T,i,t,D))})),P}},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},75125:(e,t,n)=>{var r=n(98137),i=n(94305)(r);e.exports=i},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}},84401:(e,t,n)=>{var r=n(31693)();e.exports=r},98137:(e,t,n)=>{var r=n(84401),i=n(96294);e.exports=function(e,t){return e&&r(e,t,i)}},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}},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))}},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)}},16133:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},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)}},19750:(e,t,n)=>{var r=n(16320),i=n(59698);e.exports=function(e){return i(e)&&"[object Arguments]"==r(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))}},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 k=_&&h.call(e,"__wrapped__"),C=E&&h.call(t,"__wrapped__");if(k||C){var O=k?e.value():e,N=C?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))}},72220:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},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}},21519:e=>{e.exports=function(e){return e!==e}},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))}},68414:(e,t,n)=>{var r=n(43261),i=n(59698);e.exports=function(e){return i(e)&&"[object Set]"==r(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)]}},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)}},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}},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}},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)}}},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)}}},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)}},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 k=w?w(_,E,n+"",e,t,x):void 0,C=void 0===k;if(C){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);k=E,O||N||T?c(_)?k=_:u(_)?k=a(_):N?(C=!1,k=i(E,!0)):T?(C=!1,k=o(E,!0)):k=[]:h(E)||l(E)?(k=_,l(_)?k=v(_):p(_)&&!f(_)||(k=s(E))):C=!1}C&&(x.set(E,k),b(k,E,y,w,x),x.delete(E)),r(e,n,k)}}},73885:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},49535:(e,t,n)=>{var r=n(43238);e.exports=function(e){return function(t){return r(t,e)}}},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}},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+"")}},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}},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},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}},30040:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},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}},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}},57741:e=>{e.exports=function(e){return function(t){return e(t)}}},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}},2859:e=>{e.exports=function(e,t){return e.has(t)}},37530:(e,t,n)=>{var r=n(9112);e.exports=function(e){return"function"==typeof e?e:r}},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))}},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)}},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}},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}},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)}},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}},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)):{}}},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)}},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}},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}},40279:(e,t,n)=>{var r=n(62871),i=n(54736);e.exports=function(e,t){return r(e,i(e),t)}},91644:(e,t,n)=>{var r=n(62871),i=n(12927);e.exports=function(e,t){return r(e,i(e),t)}},31473:(e,t,n)=>{var r=n(4133)["__core-js_shared__"];e.exports=r},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}))}},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}}},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}}},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}}},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)}}},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)}}},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},40691:(e,t,n)=>{var r=n(92470),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=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}},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}},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}},54528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},67530:(e,t,n)=>{var r=n(21551),i=n(54736),o=n(96294);e.exports=function(e){return r(e,o,i)}},35725:(e,t,n)=>{var r=n(21551),i=n(12927),o=n(6737);e.exports=function(e){return r(e,o,i)}},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}},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}},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}},22807:(e,t,n)=>{var r=n(64503)(Object.getPrototypeOf,Object);e.exports=r},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}},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},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},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},98112:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},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))}},9434:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},22984:(e,t,n)=>{var r=n(57578);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},99806:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},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}},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)}},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}},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}},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)}}},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))}},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}},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)}},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))}},19058:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},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}},48303:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},17900:(e,t,n)=>{var r=n(38469);e.exports=function(e){return e===e&&!r(e)}},93454:e=>{e.exports=function(){this.__data__=[],this.size=0}},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)}},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]}},74343:(e,t,n)=>{var r=n(6993);e.exports=function(e){return r(this.__data__,e)>-1}},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}},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}}},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}},23097:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).get(e)}},78453:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).has(e)}},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}},96741:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},89157:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},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}},57578:(e,t,n)=>{var r=n(92470)(Object,"create");e.exports=r},54074:(e,t,n)=>{var r=n(64503)(Object.keys,Object);e.exports=r},71325:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},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},85406:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},64503:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},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)}}},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},76614:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},67596:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},78475:e=>{e.exports=function(e){return this.__data__.has(e)}},80303:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},72633:(e,t,n)=>{var r=n(47018),i=n(29355)(r);e.exports=i},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)}}},4212:(e,t,n)=>{var r=n(935);e.exports=function(){this.__data__=new r,this.size=0}},64898:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},42589:e=>{e.exports=function(e){return this.__data__.get(e)}},98545:e=>{e.exports=function(e){return this.__data__.has(e)}},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}},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}},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)}},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},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}},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""}},73712:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},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)||[]}},98816:(e,t,n)=>{var r=n(68814),i=n(58120);e.exports=function(e){return i(r(e).toLowerCase())}},58671:(e,t,n)=>{var r=n(35367);e.exports=function(e){return r(e,5)}},80222:e=>{e.exports=function(e){return function(){return e}}},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())},_}},22735:(e,t,n)=>{e.exports=n(54386)},61872:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},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))}},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}},1167:(e,t,n)=>{var r=n(16133),i=n(78326);e.exports=function(e,t){return null!=e&&i(e,t,r)}},9112:e=>{e.exports=function(e){return e}},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},19305:e=>{var t=Array.isArray;e.exports=t},88118:(e,t,n)=>{var r=n(36738),i=n(72078);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},59653:(e,t,n)=>{var r=n(88118),i=n(59698);e.exports=function(e){return i(e)&&r(e)}},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},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}},62060:(e,t,n)=>{var r=n(31926);e.exports=function(e,t){return r(e,t)}},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}},72078:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},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},38469:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},59698:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},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}},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},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)}},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},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)}},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)}},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},17148:(e,t,n)=>{var r=n(634),i=n(35647)((function(e,t,n){r(e,t,n)}));e.exports=i},94454:e=>{e.exports=function(){}},65236:(e,t,n)=>{var r=n(4133);e.exports=function(){return r.Date.now()}},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)}},36613:(e,t,n)=>{var r=n(73148)();e.exports=r},6104:(e,t,n)=>{var r=n(64205)("round");e.exports=r},38896:(e,t,n)=>{var r=n(63546);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},82121:e=>{e.exports=function(){return[]}},84711:e=>{e.exports=function(){return!1}},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})}},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}},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}},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}},26180:(e,t,n)=>{var r=n(62871),i=n(6737);e.exports=function(e){return r(e,i(e))}},68814:(e,t,n)=>{var r=n(85532);e.exports=function(e){return null==e?"":r(e)}},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)):[]}},58120:(e,t,n)=>{var r=n(78195)("toUpperCase");e.exports=r},51682:e=>{"use strict";e.exports=Math.abs},45904:e=>{"use strict";e.exports=Math.floor},58899:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},73620:e=>{"use strict";e.exports=Math.max},40538:e=>{"use strict";e.exports=Math.min},7328:e=>{"use strict";e.exports=Math.pow},54:e=>{"use strict";e.exports=Math.round},75869:(e,t,n)=>{"use strict";var r=n(58899);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},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}}},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)},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)},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,k=Array.prototype.slice,C=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,D=Object.prototype.propertyIsEnumerable,P=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(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?-C(-e):C(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?R(t,_):_}if("bigint"===typeof t){var C=String(t)+"n";return w?R(t,C):C}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=k.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)||D.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=P?P(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++)D.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},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,k="?"===x||"*"===x,C=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:k,repeat:S,pattern:C?l(C):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)}},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}},13260:(e,t,n)=>{e.exports=n(77390)()},31445:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},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}},74309:(e,t,n)=>{"use strict";var r=n(93780),i=n(77146),o=n(7445);e.exports={formats:o,parse:i,stringify:r}},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)}},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 k,C=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?C=g(n,C):C instanceof Date?C=b(C):"comma"===o&&l(C)&&(C=i.maybeMap(C,(function(e){return e instanceof Date?b(e):e}))),null===C){if(c)return m&&!_?m(n,p.encoder,E,"key",w):n;C=""}if("string"===typeof(k=C)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||i.isBuffer(C))return m?[x(_?n:m(n,p.encoder,E,"key",w))+"="+x(m(C,p.encoder,E,"value",w))]:[x(n)+"="+x(String(C))];var I,D=[];if("undefined"===typeof C)return D;if("comma"===o&&l(C))_&&m&&(C=i.maybeMap(C,m)),I=[{value:C.length>0?C.join(",")||null:void 0}];else if(l(g))I=g;else{var P=Object.keys(C);I=v?P.sort(v):P}var R=f?String(n).replace(/\./g,"%2E"):String(n),j=a&&l(C)&&1===C.length?R+"[]":R;if(s&&l(C)&&0===C.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:C[L];if(!d||null!==z){var F=y&&f?String(L).replace(/\./g,"%2E"):String(L),B=l(C)?"function"===typeof o?o(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(D,e(z,B,o,a,s,c,d,f,"comma"===o&&_&&l(C)?null:m,g,v,y,b,w,x,_,E,U))}}return D};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:""}},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)}}},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 k(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 C=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,D=void 0===I?s:I,P=(0,h.A)(n,y),R=D;return function(t){var n=t.displayName||t.name||"Component",i=a(n),s=(0,o.A)({},P,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:i,wrappedComponentName:n,WrappedComponent:t}),l=P.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:R}),[a,R]),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]),D=(0,r.useReducer)(_,w,C),P=D[0][0],j=D[1];if(P&&P.error)throw P.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,P,c]);E(S,[L,M,F,c,B,z,A]),E(k,[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 D(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 P=[function(e){return"function"===typeof e?D(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 R=[function(e){return"function"===typeof e?D(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?R:i,s=t.mapDispatchToPropsFactories,l=void 0===s?P: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"),k=$(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:k,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}},ke=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Ce=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)}}},De=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Pe=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}]},Re=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?De(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:Re(s,i)}},Me=function(e,t){e.frame||ge(!1);var n=e.frame,r=ke(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 De(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=ke(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=ke(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=ke(r,t.page.borderBox.center),u={target:De(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=ke(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}},kt=function(e){var t=e.subject.active;return t||ge(!1),t},Ct=function(e,t){var n=e.page.borderBox.center;return ut(e.descriptor.id,t)?ke(n,t.displacedBy.point):n},Ot=function(e,t){var n=e.page.borderBox;return ut(e.descriptor.id,t)?De(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)(kt(e))})).filter((function(e){var n=kt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=kt(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=kt(e)[s.crossAxisStart],i=kt(n)[s.crossAxisStart];return t?r-i:i-r})).filter((function(e,t,n){return kt(e)[s.crossAxisStart]===kt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Xe(kt(e)[s.start],kt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return kt(e)[s.start]-kt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ae(n,Pe(kt(e))),i=Ae(n,Pe(kt(t)));return r!==i?r-i:kt(e)[s.start]-kt(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,Ct(e,o))),a=Te(t,yt(r,Ct(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}},Dt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Pt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Dt(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 Rt(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(De(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=Dt(t),a=Dt(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=ke(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=Dt(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=Dt(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=Dt(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;Rt(e)||ge(!1);var g=t.payload.client;return Ce(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);Rt(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;Rt(e)||ge(!1);var _=t.payload,E=_.id,S=_.isEnabled,k=e.dimensions.droppables[E];k||ge(!1),k.isEnabled===S&&ge(!1);var C=(0,o.A)({},k,{isEnabled:S});return Zt(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(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;Rt(e)||ge(!1),e.isWindowScrollAllowed||ge(!1);var D=t.payload.newScroll;if(Ce(e.viewport.scroll.current,D))return Jt(e);var P=wt(e.viewport,D);return Qt(e)?Vt({state:e,viewport:P}):$t({state:e,viewport:P})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Rt(e))return e;var R=t.payload.maxScroll;if(Ce(R,e.viewport.scroll.max))return e;var j=(0,o.A)({},e.viewport,{scroll:(0,o.A)({},e.viewport.scroll,{max:R})});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=Pt({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 Ce(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},kn=.33,Cn=.55,On=Cn-kn,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=Dt(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 ke(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(!Ce(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 kn;if(i>=1500)return Cn;var o=kn+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)}}},Dn=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()}))}}}},Pn=function(e,t){Kt(),t(),Gt()},Rn=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=Dn(),r=null,i=function(n){r||ge(!1),r=null,Pn(0,(function(){return jn(e().onDragEnd,n,t,_e.onDragEnd)}))};return{beforeCapture:function(t,n){r&&ge(!1),Pn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ge(!1),Pn(0,(function(){var r=e().onBeforeDragStart;r&&r(Rn(t,n))}))},start:function(i,o){r&&ge(!1);var a=Rn(i,o);r={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},n.add((function(){Pn(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)({},Rn(i,r.mode),{combine:l,destination:s});n.add((function(){Pn(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)({},Rn(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=ke({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(Ce(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?Ce(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 Ce(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:Dt(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=ke(t,r);return n(e.descriptor.id,i),ke(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=ke(n,i);return r(o),ke(n,o)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Dt(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")}},kr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,Cr=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 Dr=r.createContext(null),Pr=function(){var e=document.body;return e||ge(!1),e},Rr={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]);kr((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]);kr((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]);kr((function(){return s(),function(){n.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(Xr))}}),[i,s,o]),kr((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]);kr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),kr((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,Rr),Pr().appendChild(e),function(){setTimeout((function(){var t=Pr();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",Pr().appendChild(e),function(){var t=Pr();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}),[]);kr((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),Cr().appendChild(r),Cr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ge(!1),Cr().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 kr((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 k=Q((function(e){return Gn(mi(c).getState(),e)}),[]),C=Q((function(){return Rt(mi(c).getState())}),[]),O=Y((function(){return{marshal:b,focus:x,contextId:t,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,x,k,C,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:Dr,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)},ki=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Ci=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Oi=function(e){return{closestScrollable:Si(e),isFixedOnPage:Ci(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:ki(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 Di(e){var t=(0,r.useContext)(e);return t||ge(!1),t}var Pi=function(e){return e&&e.env.closestScrollable||null};function Ri(){}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),Ri):t.current?Ri:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):Ri}),[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);kr((function(){return i.draggable.register(f.current),function(){return i.draggable.unregister(f.current)}}),[i.draggable]),kr((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=Dt(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:Dr,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=Di(Fr),a=o.contextId,s=o.dragHandleUsageInstructionsId,l=o.registry,c=Di(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 Di(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=Dt(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,Dt(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=Dt(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:Dr,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=Di(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?ki(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=Pi(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=Pi(e);return e&&n||ge(!1),ki(n)}),[]),v=Q((function(){var e=t.current;e||ge(!1);var n=Pi(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=Pi(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]);kr((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]),kr((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),kr((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]),k=g?g.dragging.draggableId:null,C=Y((function(){return{droppableId:l,type:c,isUsingCloneFor:k}}),[l,k,c]);return r.createElement(zi.Provider,{value:C},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},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})},64255:(e,t,n)=>{"use strict";var r=n(32328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},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"),k=Symbol.for("react.profiler"),C=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"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||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 k: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 C: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 D: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 ke(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 Ce(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,ke(e),t)for(e=0;e<t.length;e++)ke(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 De(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 Pe=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){Pe=!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,kt,Ct=!1,Ot=[],Nt=null,Tt=null,At=null,It=new Map,Dt=new Map,Pt=[],Rt="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":Dt.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 kt(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(){Ct=!1,null!==Nt&&zt(Nt)&&(Nt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==At&&zt(At)&&(At=null),It.forEach(Ft),Dt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!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),Dt.forEach(t),n=0;n<Pt.length;n++)(r=Pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Pt.length&&null===(n=Pt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Pt.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,Dt.set(o,Mt(Dt.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<Rt.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:kn,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 kn(){return Sn}var Cn=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:kn,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(Cn),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:kn})),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}),Dn=on(In),Pn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!Rn||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Pn.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){Ce(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 kr(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 Cr=kr("animationend"),Or=kr("animationiteration"),Nr=kr("animationstart"),Tr=kr("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 Dr(e,t){Ar.set(e,t),l(t,[e])}for(var Pr=0;Pr<Ir.length;Pr++){var Rr=Ir[Pr];Dr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Dr(Cr,"onAnimationEnd"),Dr(Or,"onAnimationIteration"),Dr(Nr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(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,!Pe||"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 Cr:case Or:case Nr:l=vn;break;case Tr:l=An;break;case"scroll":l=fn;break;case"wheel":l=Dn;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=De(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(Rn)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||!Rn&&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=De(e,n))&&r.unshift(Vr(e,o,i)),null!=(o=De(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=De(n,o))&&a.unshift(Vr(n,l,s)):i||null!=(l=De(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 ki(e){0>Ei||(e.current=_i[Ei],_i[Ei]=null,Ei--)}function Ci(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 Di(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pi(){ki(Ti),ki(Ni)}function Ri(e,t,n){if(Ni.current!==Oi)throw Error(o(168));Ci(Ni,t),Ci(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,Ci(Ni,e),Ci(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,ki(Ti),ki(Ni),Ci(Ni,e)):ki(Ti),Ci(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=Pc(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===D&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Rc(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=Rc(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 D: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 D: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 D: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===D&&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=Rc(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 D: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,ko=null,Co=null;function Oo(){Co=ko=So=null}function No(e){var t=Eo.current;ki(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,Co=ko=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(Co!==e)if(e={context:e,memoizedValue:t,next:null},null===ko){if(null===So)throw Error(o(308));ko=e,So.dependencies={lanes:0,firstContext:e}}else ko=ko.next=e;return t}var Do=null;function Po(e){null===Do?Do=[e]:Do.push(e)}function Ro(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Po(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,Po(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(Ci(Go,t),Ci(Ko,e),Ci(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)}ki(Wo),Ci(Wo,t)}function Zo(){ki(Wo),ki(Ko),ki(Go)}function Jo(e){Yo(Go.current);var t=Yo(Wo.current),n=le(t,e.type);t!==n&&(Ci(Ko,e),Ci(Wo,n))}function Xo(e){Ko.current===e&&(ki(Wo),ki(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,Ca.bind(null,n,r,i,t),void 0,null),null===Tl)throw Error(o(349));0!==(30&aa)||ka(n,t,i)}return i}function ka(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 Ca(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 Da(){return ba().memoizedState}function Pa(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Ra(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 Pa(8390656,8,e,t)}function Ma(e,t){return Ra(2048,8,e,t)}function La(e,t){return Ra(4,2,e,t)}function za(e,t){return Ra(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,Ra(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=Ro(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,Po(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Ro(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,Pa(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pa(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)||ka(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,Ca.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:Da,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:Da,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=Di(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=Di(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=kc.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||Dc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(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=Pc(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 Cs(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},Ci(Pl,Dl),Dl|=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,Ci(Pl,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ci(Pl,Dl),Dl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ci(Pl,Dl),Dl|=r;return ws(e,t,i,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,i){var o=Di(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(Di(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=Di(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=Di(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){ks(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?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(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,Ds,Ps,Rs,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),Ci(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=Pc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Pc(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=Pc(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(Ci(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=Pc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pc(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 Di(t.type)&&Pi(),Ws(t),null;case 3:return r=t.stateNode,Zo(),ki(Ti),ki(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))),Ds(e,t),Ws(t),null;case 5:Xo(t);var i=Yo(Go.current);if(n=t.type,null!==e&&null!=t.stateNode)Ps(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)Rs(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(ki(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===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Zo(),Ds(e,t),null===e&&$r(t.stateNode.containerInfo),Ws(t),null;case 10:return No(t.type._context),Ws(t),null;case 19:if(ki(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!==Rl||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 Ci(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,Ci(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&Dl)&&(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 Di(t.type)&&Pi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zo(),ki(Ti),ki(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(ki(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 ki(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}},Ds=function(){},Ps=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)}},Rs=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,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Al=null,Il=0,Dl=0,Pl=Si(0),Rl=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===Rl&&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(),kl.current=a,Nl=i,null!==Al?t=0:(Tl=null,Il=0,t=Rl)}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(){Dl=Pl.current,ki(Pl)}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&&Pi();break;case 3:Zo(),ki(Ti),ki(Ni),ra();break;case 5:Xo(r);break;case 4:Zo();break;case 13:case 19:ki(ea);break;case 10:No(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Al=e=Pc(e.current,null),Il=Dl=t,Rl=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Do){for(t=0;t<Do.length;t++)if(null!==(r=(n=Do[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}Do=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,Cl.current=null,null===n||null===n.return){Rl=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!==Rl&&(Rl=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=kl.current;return kl.current=Ja,null===e?Ja:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=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,kl.current=r,null!==Al)throw Error(o(261));return Tl=null,Il=0,Rl}function vc(){for(;null!==Al;)bc(Al)}function yc(){for(;null!==Al&&!Ye();)bc(Al)}function bc(e){var t=El(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,Cl.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,Dl)))return void(Al=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Rl=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===Rl&&(Rl=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,Cl.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 kc(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===Rl||3===Rl&&(130023424&Il)===Il&&500>Ze()-Ul?fc(e,0):zl|=n),rc(e,t)}function Cc(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),Cc(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),Cc(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 Dc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(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 Rc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Dc(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 k:return(e=Ic(12,n,t,2|i)).elementType=k,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 P:return Mc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case O:s=9;break e;case N:s=11;break e;case I:s=14;break e;case D: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=P,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(Di(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(Di(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:Di(t.type)&&Mi(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ci(Eo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Ci(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Ci(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),Ci(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,Di(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 Dc(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=Cs(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,Cs(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),ks(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,Ci(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,Di(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<Pt.length&&0!==t&&t<Pt[n].priority;n++);Pt.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},kt=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,Ce,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"},5906:(e,t,n)=>{"use strict";var r=n(48681);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},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)},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}}},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},k=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},C=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,D=(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:[]},P=(e,t)=>({...e,[t]:void 0}),R=["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===R.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=D(e,p),o=D(t,d),a=D(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:C(i),scriptTags:T("script",["src","innerHTML"],i),styleTags:T("style",["cssText"],i),title:k(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()(P(this.props,"helmetData"),P(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})))}}},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}},94771:(e,t,n)=>{"use strict";e.exports=n(50711)},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"},k={x:"scrollWidth",y:"scrollHeight"},C={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,D=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},P=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},R=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(D(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=C[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[C[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,i=k[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:P,scrollParentViewportSizeGetter:R,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)},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,k=e.innerRef,C=(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 D=(0,s.A)({"aria-current":T&&i||null,className:A,style:I,to:a},C);return g!==v?D.ref=t||k:D.innerRef=k,o.createElement(m,D)}))}))},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:()=>k,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 k(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 C={},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=C[n]||(C[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 D(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 P(e){return"string"===typeof e?e:(0,s.AO)(e)}function R(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}},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,k=v||y,C=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:k?u(k):w?".*":a(S,C)})}}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)}},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}},67076:(e,t,n)=>{"use strict";n(29416)},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},10641:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(59284).createContext(null)},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},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 k(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 C(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&&(C(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 D={current:null},P={transition:null},R={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:P,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(!C(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=R,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=k,t.createFactory=function(e){var t=k.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=C,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=P.transition;P.transition={};try{e()}finally{P.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.3.1"},59284:(e,t,n)=>{"use strict";e.exports=n(50943)},60712:(e,t,n)=>{"use strict";e.exports=n(67124)},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="-"},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)},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]}},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)},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)},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)},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)},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}),{})}}}},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,P(_);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(C),C=-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&&R(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,k=null,C=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function A(){if(null!==k){var e=t.unstable_now();N=e;var n=!0;try{n=k(!0,e)}finally{n?E():(S=!1,k=null)}}else S=!1}if("function"===typeof b)E=function(){b(A)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,D=I.port2;I.port1.onmessage=A,E=function(){D.postMessage(null)}}else E=function(){v(A,0)};function P(e){k=e,S||(S=!0,E())}function R(e,n){C=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,P(_))},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(C),C=-1):g=!0,R(x,o-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,P(_))),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}}}},99158:(e,t,n)=>{"use strict";e.exports=n(91407)},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}},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}},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}},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},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}},83046:(e,t,n)=>{"use strict";n.d(t,{AO:()=>S,Kr:()=>_,nq:()=>E,tp:()=>C,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)},k=r.concat("iframe").join(","),C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,k)&&y(t,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()}}},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:()=>C,StringParam:()=>a,useQueryParam:()=>P,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 k({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 C({children:e,adapter:t,options:n}){const r=t;return r?c.createElement(r,null,(t=>c.createElement(k,{adapter:t,options:n},e))):c.createElement(k,{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 D=I;const P=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[i,o]=D(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])]}},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}},88730:(e,t,n)=>{"use strict";e.exports=n(6032)},42634:()=>{},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})},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})},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})},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})},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 k(e,t,n){const r=e[t];r&&n(r)}function C(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[C(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},k(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){k(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}}){k(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})=>{k(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=C(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[C(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)()}}}),D=(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})))}}),P=(0,r.HY)({queries:x.reducer,mutations:E.reducer,provided:T.reducer,subscriptions:I.reducer,config:D.reducer});return{reducer:(e,t)=>P(y.match(t)?void 0:e,t),actions:{...D.actions,...x.actions,...A.actions,...I.actions,...E.actions,...T.actions,resetApiState:y}}}var A=Symbol.for("RTKQ/skipToken"),I={status:"uninitialized"},D=(0,o.jM)(I,(()=>{})),P=(0,o.jM)(I,(()=>{}));var R=WeakMap?new WeakMap:void 0,j=({endpointName:e,queryArgs:t})=>{let n="";const i=R?.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)&&R?.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)?C(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:k,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:R,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:R,mutationThunk:j,serializeQueryArgs:s,reducerPath:a,assertTagType:I,config:{refetchOnFocus:S,refetchOnReconnect:k,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:R,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=>D,i=e=>P;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]??D),o)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?C(e)??A:e,n(t===A?i:e=>a(e)?.mutations?.[t]??P,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:k,abort:C}=E,O=S.requestId!==k,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:k,subscriptionOptions:h,queryCacheKey:b,abort:C,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:k}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,v(c({endpointName:n,requestId:k,queryCacheKey:b,options:e}))}});if(!N&&!O&&!m){const e=(D=v,P={},(I=o).has(D)?I.get(D):I.set(D,P).get(D));e[b]=A,A.then((()=>{delete e[b],u(e)||o.delete(v)}))}var I,D,P;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:R,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(R,e)):"mutation"===n.type&&L(r.endpoints[e],{name:e,select:Y(),initiate:X(e)},U(j,e))}}}});G()},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:()=>C,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 k(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function C(...e){return 0===e.length?e=>S(e,["pending"]):k(e)?_(...e.map((e=>e.pending))):C()(e[0])}function O(...e){return 0===e.length?e=>S(e,["rejected"]):k(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||k(e)?E(O(...e),t):N()(e[0])}function T(...e){return 0===e.length?e=>S(e,["fulfilled"]):k(e)?_(...e.map((e=>e.fulfilled))):T()(e[0])}function A(...e){return 0===e.length?e=>S(e,["pending","fulfilled","rejected"]):k(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},D=["name","message","stack","code"],P=class{constructor(e,t){this.payload=e,this.meta=t}_type},R=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 D)"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 P(e,t),fulfillWithValue:(e,t)=>new R(e,t)})).then((t=>{if(t instanceof P)throw t;return t instanceof R?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof P?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. `}},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 k,C={};function O(e){const t=C[e];return t||a(0),t}function N(e,t){C[e]||(C[e]=t)}function T(){return k}function A(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function I(e){D(e),e.drafts_.forEach(R),e.drafts_=null}function D(e){e===k&&(k=e.parent_)}function P(e){return k={drafts_:[],parent_:k,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function R(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=P(this),o=V(e,void 0);let a=!0;try{i=t(o),a=!1}finally{a?I(r):D(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=P(this),n=V(e,void 0);return n[o].isManual_=!0,D(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)},97434:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,Pj:()=>oe,bN:()=>R,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 k(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function C(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)(),D=(()=>A||I?r.useLayoutEffect:r.useEffect)();function P(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function R(e,t){if(P(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])||!P(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=R,areStatePropsEqual:s=R,areMergedPropsEqual:l=R,forwardRef:c=!1,context:u=Q}={}){const d=u,f=function(e){return e?"function"===typeof e?S(e):k(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):k(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):k(e,"mergeProps"):()=>C}(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),k=r.useRef(void 0);D((()=>(S.current=!0,()=>{S.current=!1})),[]);const C=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 P;N=J,A=[w,b,E,a,_,v],D((()=>N(...A)),I);try{P=r.useSyncExternalStore(O,C,p?()=>h(p(),a):C)}catch(j){throw k.current&&(j.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),j}D((()=>{k.current=void 0,_.current=void 0,b.current=P}));const R=r.useMemo((()=>r.createElement(e,{...P,ref:o})),[o,e,P]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:y},R):R),[s,R,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]);D((()=>{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},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}},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})},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)}}},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},370:(e,t,n)=>{"use strict";var r,i;n.d(t,{z:()=>kt}),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,k,C;"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 De.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 Pe({...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 Re({...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,D=/^[0-9a-z]+$/,P=/^[0-9A-HJKMNP-TV-Z]{26}$/i,R=/^[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)R.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)D.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)P.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 De?De.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 Ce(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 ke?[e.value]:e instanceof Oe?e.options:e instanceof Ne?r.objectValues(e.enum):e instanceof Pe?me(e._def.innerType):e instanceof oe?[void 0]:e instanceof ae?[null]:e instanceof Ie?[void 0,...me(e.unwrap())]:e instanceof De?[null,...me(e.unwrap())]:e instanceof Le||e instanceof Fe?me(e.unwrap()):e instanceof Re?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 ke 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 Ce(e,t){return new Oe({values:e,typeName:$e.ZodEnum,...T(t)})}ke.create=(e,t)=>new ke({value:e,typeName:$e.ZodLiteral,...T(t)});class Oe extends A{constructor(){super(...arguments),k.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,k,"f")||E(this,k,new Set(this._def.values),"f"),!_(this,k,"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})}}k=new WeakMap,Oe.create=Ce;class Ne extends A{constructor(){super(...arguments),C.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,C,"f")||E(this,C,new Set(r.getValidEnumValues(this._def.values)),"f"),!_(this,C,"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}}C=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 De extends A{_parse(e){return this._getType(e)===o.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:$e.ZodNullable,...T(t)});class Pe 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}}Pe.create=(e,t)=>new Pe({innerType:e,typeName:$e.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...T(t)});class Re 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}}Re.create=(e,t)=>new Re({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=ke.create,mt=Oe.create,gt=Ne.create,vt=Te.create,yt=Ae.create,bt=Ie.create,wt=De.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 kt=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:ke,ZodEnum:Oe,ZodNativeEnum:Ne,ZodPromise:Te,ZodEffects:Ae,ZodTransformer:Ae,ZodOptional:Ie,ZodNullable:De,ZodDefault:Pe,ZodCatch:Re,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})}},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:"dd803d0d",108:"d2d9c180",110:"2c798565",114:"7d7ab57f",118:"112f7e2f",132:"cf00f1e7",221:"b740df48",225:"cf362439",245:"041a06df",246:"13bb9db2",290:"b4f1e118",310:"b23bf6b2",513:"46a664ad",523:"17013d4e",535:"688ceefb",628:"70d08de9",654:"863ea445",710:"87e9f2e0",730:"a22f6f5f",734:"3fe325e9",811:"a0c1e1ce",856:"78147a4f",902:"a1b90b1b",921:"0402e36c",949:"12b4714d",957:"08a1c505",1053:"f976b474",1088:"40c16ea2",1094:"b5bb2475",1187:"c5435886",1237:"328d0241",1278:"d5c24e15",1299:"aaedb42e",1321:"401aa9b8",1414:"4cfda0bc",1434:"b8423300",1486:"8a488ae4",1496:"18b1eb19",1606:"0041ed7d",1627:"80c94ebf",1657:"d6f0b340",1696:"6120f4a8",1747:"f01c9fd8",1756:"b612458a",1836:"f49bfd4f",1865:"72c933c8",1917:"e3ac9c6d",1956:"c11f9b8a",1975:"e3066826",2016:"397296b7",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:"e753cb7c",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",3456:"72251ae0",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:"31972bdb",3812:"368eb751",3822:"00ab6aaa",3872:"a25d87b5",3879:"17f211ad",3902:"973b73c6",3940:"f5079e40",3952:"ce1b4fad",3977:"4c33ec16",4096:"33f702a0",4130:"e9433987",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:"2eea7e0a",4891:"c441be74",4905:"8121426d",5027:"9e6325ef",5047:"ebc9f1b2",5050:"ffa3921f",5161:"20e37d15",5168:"5c3dfc04",5252:"991dcab8",5382:"3a2e6ac6",5401:"dfb63825",5418:"00d0c5d1",5438:"179dc201",5453:"921caa82",5454:"e8f64f1a",5475:"20ce4f75",5542:"7c13d444",5579:"a2c9515c",5634:"0a0bddae",5636:"da9c4c85",5647:"0920ef73",5652:"6c4f054d",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",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:"73ff230e",6833:"584b7806",6879:"2965a366",6881:"7e6434c9",6990:"70257b9b",7118:"ce0cd05f",7145:"7676c06d",7148:"ef54cd41",7206:"6b7278f5",7240:"a674bc94",7329:"514640a4",7341:"6e678529",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",8155:"654c40b5",8234:"7512920e",8256:"a2ce240a",8452:"551c16c8",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",9174:"ae7682da",9176:"3f08336f",9220:"a9f48eb9",9222:"a1913f85",9243:"cb95c73b",9312:"5eb8d4b1",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:"47d2388f",9801:"b9143d43",9842:"b8ba19ad",9872:"65a6fae7",9882:"b983931a",9908:"4bd3acb1",9922:"367b63b0"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{99:"7cffb936",114:"1e565ac5",535:"c6fb8cd9",3456:"a5760e03",3779:"66c0ef83",3812:"440ff245",3940:"0971684f",4905:"028ad14b",5438:"615bd68a",5652:"261c3a7a",7145:"90fbb646",8155:"fd13e90a",8593:"95df9723",9796:"828f7385"}[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,114:1,535:1,3456:1,3779:1,3812:1,3940:1,4905:1,5438:1,5652:1,7145:1,8155:1,8593:1,9796: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(48873),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,48873)).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.390bccbb.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js.LICENSE.txt index ab1d0ae270..ab1d0ae270 100644 --- a/ydb/core/viewer/monitoring/static/js/main.390bccbb.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/main.9d6586d0.js.LICENSE.txt diff --git a/ydb/core/viewer/ya.make b/ydb/core/viewer/ya.make index 2f6a23713c..def2de7c21 100644 --- a/ydb/core/viewer/ya.make +++ b/ydb/core/viewer/ya.make @@ -124,21 +124,21 @@ 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/2512.19e3e12f.chunk.css monitoring/static/css/2512.19e3e12f.chunk.css - monitoring/static/css/371.01f04f12.chunk.css monitoring/static/css/371.01f04f12.chunk.css + monitoring/static/css/114.1e565ac5.chunk.css monitoring/static/css/114.1e565ac5.chunk.css + monitoring/static/css/3456.a5760e03.chunk.css monitoring/static/css/3456.a5760e03.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/3940.0971684f.chunk.css monitoring/static/css/3940.0971684f.chunk.css - monitoring/static/css/4187.cac9847e.chunk.css monitoring/static/css/4187.cac9847e.chunk.css + monitoring/static/css/4905.028ad14b.chunk.css monitoring/static/css/4905.028ad14b.chunk.css monitoring/static/css/535.c6fb8cd9.chunk.css monitoring/static/css/535.c6fb8cd9.chunk.css monitoring/static/css/5438.615bd68a.chunk.css monitoring/static/css/5438.615bd68a.chunk.css - monitoring/static/css/6030.fd13e90a.chunk.css monitoring/static/css/6030.fd13e90a.chunk.css - monitoring/static/css/684.90fbb646.chunk.css monitoring/static/css/684.90fbb646.chunk.css + monitoring/static/css/5652.261c3a7a.chunk.css monitoring/static/css/5652.261c3a7a.chunk.css + monitoring/static/css/7145.90fbb646.chunk.css monitoring/static/css/7145.90fbb646.chunk.css + monitoring/static/css/8155.fd13e90a.chunk.css monitoring/static/css/8155.fd13e90a.chunk.css monitoring/static/css/8593.95df9723.chunk.css monitoring/static/css/8593.95df9723.chunk.css monitoring/static/css/9796.828f7385.chunk.css monitoring/static/css/9796.828f7385.chunk.css - monitoring/static/css/985.8e5e0423.chunk.css monitoring/static/css/985.8e5e0423.chunk.css monitoring/static/css/99.7cffb936.chunk.css monitoring/static/css/99.7cffb936.chunk.css - monitoring/static/css/main.c06e6faa.css monitoring/static/css/main.c06e6faa.css + monitoring/static/css/main.bc1b7571.css monitoring/static/css/main.bc1b7571.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 @@ -147,6 +147,8 @@ IF (NOT EXPORT_CMAKE) 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/114.7d7ab57f.chunk.js monitoring/static/js/114.7d7ab57f.chunk.js + monitoring/static/js/114.7d7ab57f.chunk.js.LICENSE.txt monitoring/static/js/114.7d7ab57f.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/1187.c5435886.chunk.js monitoring/static/js/1187.c5435886.chunk.js @@ -158,9 +160,9 @@ IF (NOT EXPORT_CMAKE) 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.de2ec2cf.chunk.js monitoring/static/js/1329.de2ec2cf.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/1434.b8423300.chunk.js monitoring/static/js/1434.b8423300.chunk.js 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/1606.0041ed7d.chunk.js monitoring/static/js/1606.0041ed7d.chunk.js @@ -195,10 +197,10 @@ IF (NOT EXPORT_CMAKE) 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/2512.732a0e0c.chunk.js monitoring/static/js/2512.732a0e0c.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 @@ -232,6 +234,7 @@ IF (NOT EXPORT_CMAKE) 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/3410.6391755f.chunk.js monitoring/static/js/3410.6391755f.chunk.js + monitoring/static/js/3456.72251ae0.chunk.js monitoring/static/js/3456.72251ae0.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 @@ -247,12 +250,11 @@ IF (NOT EXPORT_CMAKE) 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/371.adb771f2.chunk.js monitoring/static/js/371.adb771f2.chunk.js 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.9f31a4d0.chunk.js monitoring/static/js/3779.9f31a4d0.chunk.js - monitoring/static/js/3812.325f3251.chunk.js monitoring/static/js/3812.325f3251.chunk.js + monitoring/static/js/3779.31972bdb.chunk.js monitoring/static/js/3779.31972bdb.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/3872.a25d87b5.chunk.js monitoring/static/js/3872.a25d87b5.chunk.js @@ -262,12 +264,10 @@ IF (NOT EXPORT_CMAKE) 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/4024.021c61dd.chunk.js monitoring/static/js/4024.021c61dd.chunk.js monitoring/static/js/4096.33f702a0.chunk.js monitoring/static/js/4096.33f702a0.chunk.js monitoring/static/js/4130.e9433987.chunk.js monitoring/static/js/4130.e9433987.chunk.js monitoring/static/js/4169.f2243012.chunk.js monitoring/static/js/4169.f2243012.chunk.js monitoring/static/js/4180.1de6c8ba.chunk.js monitoring/static/js/4180.1de6c8ba.chunk.js - monitoring/static/js/4187.ab11fc96.chunk.js monitoring/static/js/4187.ab11fc96.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 @@ -294,16 +294,18 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/4872.2eea7e0a.chunk.js monitoring/static/js/4872.2eea7e0a.chunk.js monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt monitoring/static/js/4891.c441be74.chunk.js monitoring/static/js/4891.c441be74.chunk.js + monitoring/static/js/4905.8121426d.chunk.js monitoring/static/js/4905.8121426d.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/5168.5c3dfc04.chunk.js monitoring/static/js/5168.5c3dfc04.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/535.ee345954.chunk.js monitoring/static/js/535.ee345954.chunk.js + monitoring/static/js/535.688ceefb.chunk.js monitoring/static/js/535.688ceefb.chunk.js 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 @@ -320,6 +322,7 @@ IF (NOT EXPORT_CMAKE) 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/5647.0920ef73.chunk.js monitoring/static/js/5647.0920ef73.chunk.js + monitoring/static/js/5652.6c4f054d.chunk.js monitoring/static/js/5652.6c4f054d.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 @@ -338,7 +341,6 @@ IF (NOT EXPORT_CMAKE) 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.95d317e6.chunk.js monitoring/static/js/6030.95d317e6.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 @@ -372,13 +374,13 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/6820.73ff230e.chunk.js monitoring/static/js/6820.73ff230e.chunk.js monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt monitoring/static/js/6833.584b7806.chunk.js monitoring/static/js/6833.584b7806.chunk.js - monitoring/static/js/684.7c31509b.chunk.js monitoring/static/js/684.7c31509b.chunk.js monitoring/static/js/6879.2965a366.chunk.js monitoring/static/js/6879.2965a366.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/7145.7676c06d.chunk.js monitoring/static/js/7145.7676c06d.chunk.js 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 @@ -423,6 +425,7 @@ IF (NOT EXPORT_CMAKE) 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/8155.654c40b5.chunk.js monitoring/static/js/8155.654c40b5.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 @@ -454,7 +457,6 @@ IF (NOT EXPORT_CMAKE) 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.277e4f3f.chunk.js monitoring/static/js/9300.277e4f3f.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/9394.ca56f408.chunk.js monitoring/static/js/9394.ca56f408.chunk.js @@ -479,20 +481,18 @@ IF (NOT EXPORT_CMAKE) 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.7afb9492.chunk.js monitoring/static/js/9796.7afb9492.chunk.js + monitoring/static/js/9796.47d2388f.chunk.js monitoring/static/js/9796.47d2388f.chunk.js monitoring/static/js/9801.b9143d43.chunk.js monitoring/static/js/9801.b9143d43.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/985.86fef64d.chunk.js monitoring/static/js/985.86fef64d.chunk.js - monitoring/static/js/985.86fef64d.chunk.js.LICENSE.txt monitoring/static/js/985.86fef64d.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.dd803d0d.chunk.js monitoring/static/js/99.dd803d0d.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.390bccbb.js monitoring/static/js/main.390bccbb.js - monitoring/static/js/main.390bccbb.js.LICENSE.txt monitoring/static/js/main.390bccbb.js.LICENSE.txt + monitoring/static/js/main.9d6586d0.js monitoring/static/js/main.9d6586d0.js + monitoring/static/js/main.9d6586d0.js.LICENSE.txt monitoring/static/js/main.9d6586d0.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 |